squirrelmail-webmail  1.4.22
About: SquirrelMail is a standards-based webmail package with strong MIME support, address books, and folder manipulation (written in PHP4).
  Fossies Dox: squirrelmail-webmail-1.4.22.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

functions.php File Reference

Go to the source code of this file.

Namespaces

 plugins
 

Functions

 validate_mail_fetch_port_number ($requested_port)
 
 validate_mail_fetch_server_address ($requested_address)
 
 hex2bin ( $data)
 
 mf_keyED ( $txt)
 
 encrypt ( $txt)
 
 decrypt ( $txt)
 
 mail_fetch_check_folder ($imap_stream, $imap_folder)
 
 mail_fetch_check_noselect ($imap_stream, $imap_folder)
 

Variables

global $mail_fetch_allow_unsubscribed = false
 

Function Documentation

◆ decrypt()

decrypt (   $txt)

Definition at line 138 of file functions.php.

References hex2bin(), and mf_keyED().

Referenced by mail_fetch_load_pref(), and mail_fetch_login().

◆ encrypt()

encrypt (   $txt)

Definition at line 124 of file functions.php.

References mf_keyED().

◆ hex2bin()

hex2bin (   $data)

Definition at line 95 of file functions.php.

References $data.

Referenced by decrypt().

◆ mail_fetch_check_folder()

mail_fetch_check_folder (   $imap_stream,
  $imap_folder 
)

check mail folder

Parameters
stream$imap_streamimap connection resource
string$imap_folderimap folder name
Returns
boolean true, when folder can be used to store messages.
Since
1.5.1 and 1.4.5

Definition at line 156 of file functions.php.

References $imap_stream, $mail_fetch_allow_unsubscribed, $ret, elseif, mail_fetch_check_noselect(), sqimap_mailbox_exists(), and sqimap_mailbox_is_subscribed().

Referenced by mail_fetch_login().

◆ mail_fetch_check_noselect()

mail_fetch_check_noselect (   $imap_stream,
  $imap_folder 
)

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

Function does not check if folder subscribed.

Parameters
stream$imap_streamimap connection resource
string$imap_folderimap folder name
Returns
boolean true, when folder has noselect flag. false in any other case.
Since
1.5.1 and 1.4.5

Definition at line 185 of file functions.php.

References $boxes, $imap_stream, check_is_noselect(), and sqimap_mailbox_list().

Referenced by mail_fetch_check_folder().

◆ mf_keyED()

mf_keyED (   $txt)

Definition at line 106 of file functions.php.

Referenced by decrypt(), and encrypt().

◆ validate_mail_fetch_port_number()

validate_mail_fetch_port_number (   $requested_port)

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)

Parameters
int$requested_portThe port number given by the user
Returns
string An error string is returned if the port number is not allowable, otherwise an empty string is returned.

Definition at line 44 of file functions.php.

References $mail_fetch_allowable_ports, _(), SM_PATH, and sq_change_text_domain().

◆ validate_mail_fetch_server_address()

validate_mail_fetch_server_address (   $requested_address)

Validate a requested POP3 server address

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

Parameters
int$requested_addressThe server address given by the user
Returns
string An error string is returned if the server address is not allowable, otherwise an empty string is returned.

Definition at line 76 of file functions.php.

References $mail_fetch_block_server_pattern, _(), SM_PATH, and sq_change_text_domain().

Variable Documentation

◆ $mail_fetch_allow_unsubscribed

$mail_fetch_allow_unsubscribed = false

declare plugin globals

Controls use of unsubscribed folders in plugin @global boolean $mail_fetch_allow_unsubscribed

Since
1.5.1 and 1.4.5

Definition at line 20 of file functions.php.

Referenced by mail_fetch_check_folder().