/plugins/mail_fetch/functions.php

Description

mail_fetch/functions.php

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>

Variables
boolean $mail_fetch_allow_unsubscribed (line 27)

Controls use of unsubscribed folders in plugin

  • since: 1.5.1 and 1.4.5
Functions
decrypt (line 143)
void decrypt ( $txt)
  • $txt
encrypt (line 129)
void encrypt ( $txt)
  • $txt
hex2bin (line 99)

hex2bin() only exists since PHP 5.4

void hex2bin ( $data)
  • $data
mail_fetch_check_folder (line 161)

check mail folder

  • return: true, when folder can be used to store messages.
  • since: 1.5.1 and 1.4.5
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 190)

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.
  • since: 1.5.1 and 1.4.5
boolean mail_fetch_check_noselect (stream $imap_stream, string $imap_folder)
  • stream $imap_stream: imap connection resource
  • string $imap_folder: imap folder name
mf_keyED (line 111)
void mf_keyED ( $txt)
  • $txt
validate_mail_fetch_port_number (line 44)

Validate a requested POP3 port number

Allowable port numbers are configured in config.php (see config_example.php for an example and more rules about how the list of allowable port numbers can be specified)

  • return: An error string is returned if the port number is not allowable, otherwise an empty string is returned.
string validate_mail_fetch_port_number (int $requested_port)
  • int $requested_port: The port number given by the user
validate_mail_fetch_server_address (line 76)

Validate a requested POP3 server address

Blocked server addresses are configured in config.php (see config_example.php for more details)

  • return: An error string is returned if the server address is not allowable, otherwise an empty string is returned.
string validate_mail_fetch_server_address (int $requested_address)
  • int $requested_address: The server address given by the user

Documentation generated on Sat, 20 Sep 2014 04:20:55 +0200 by phpDocumentor 1.4.3