File/plugins/mail_fetch/functions.php

Description

mail_fetch/functions.php

Copyright (c) 1999-2006 The SquirrelMail Project Team Copyright (c) 2006-2007 The NaSMail Project Licensed under the GNU GPL. For full terms see the file COPYING.

Functions for the mailfetch plugin.

Original code from LexZEUS <lexzeus@mifinca.com> and josh@superfork.com (extracted from php manual) Adapted for MailFetch by Philippe Mingo <mingo@rotedic.com>

  • version: $Id: functions.php 1258 2008-04-07 12:56:59Z tokul $
Includes
 include_once (SM_PATH.'config/mail_fetch_config.php') (line 35)
 include_once (SM_PATH.'plugins/mail_fetch/config.php') (line 37)
 include_once (SM_PATH.'plugins/mail_fetch/constants.php') (line 22)

pop3 class

Variables
boolean $mail_fetch_allow_unsubscribed (line 32)

Controls use of unsubscribed folders in plugin

Functions
decrypt (line 404)
void decrypt ( $txt)
  • $txt
encrypt (line 390)
void encrypt ( $txt)
  • $txt
hex2bin (line 356)
void hex2bin ( $data)
  • $data
mailfetch_optpage_register_block_do (line 100)
void mailfetch_optpage_register_block_do ()
mail_fetch_check_folder (line 421)

check mail folder

  • return: true, when folder can be used to store messages.
boolean mail_fetch_check_folder (stream $imap_stream, string $imap_folder)
  • stream $imap_stream: imap connection resource
  • string $imap_folder: imap folder name
mail_fetch_check_noselect (line 449)

Checks if folder is noselect (can't store messages)

Function does not check if folder subscribed.

  • return: true, when folder has noselect flag. false in any other case.
boolean mail_fetch_check_noselect (stream $imap_stream, string $imap_folder)
  • stream $imap_stream: imap connection resource
  • string $imap_folder: imap folder name
mail_fetch_folderact_do (line 119)

Handles IMAP folder renames and deletions

void mail_fetch_folderact_do (array $args)
  • array $args: Hook arguments
mail_fetch_get_mail (line 158)
  • return: if output is verbose, non-empty string means fatal error.
string mail_fetch_get_mail ( $i_loop, string $mailfetch_pass, boolean $verbose, integer $conn)
  • integer $conn
  • string $mailfetch_pass
  • boolean $verbose
  • $i_loop
mail_fetch_handle_output (line 338)
string mail_fetch_handle_output (string $message, boolean $verbose)
  • string $message
  • boolean $verbose
mail_fetch_link_do (line 41)

Hooked functions

void mail_fetch_link_do ()
mail_fetch_login_do (line 49)
void mail_fetch_login_do ()
mail_fetch_setnew_do (line 92)
void mail_fetch_setnew_do ()
Mail_Fetch_Status (line 347)
void Mail_Fetch_Status ( $msg)
  • $msg
mf_keyED (line 372)

Two way password encryption/decryption

string mf_keyED (string $txt)
  • string $txt

Documentation generated on Sun, 22 Nov 2009 17:36:32 +0200 by phpDocumentor 1.4.3