hex2bin() only exists since PHP 5.4
void
hex2bin
( $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
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