= 0.9.0)
* Figures out the best way of encoding the content read from the given file pointer.
* @link https://php.net/manual/en/function.mailparse-determine-best-xfer-encoding.php
* @param resource $fp
* A valid file pointer, which must be seek-able. *
* @return string Returns one of the character encodings supported by the * {@link https://php.net/manual/en/ref.mbstring.php mbstring} module. */ function mailparse_determine_best_xfer_encoding($fp) {} /** * (PECL mailparse >= 0.9.0)* A valid MIME resource, created with {@link https://php.net/manual/en/function.mailparse-msg-create.php mailparse_msg_create()}. *
* @param mixed $filename* Can be a file name or a valid stream resource. *
* @param callable $callbackfunc [optional]* If set, this must be either a valid callback that will be passed the extracted section, or NULL to make this * function return the extracted section. *
** If not specified, the contents will be sent to "stdout". *
* @return string|bool* If callbackfunc is not NULL returns TRUE on success. *
** If callbackfunc is set to NULL, returns the extracted section as a string. *
** Returns FALSE on error. *
*/ function mailparse_msg_extract_part_file($mimemail, $filename, $callbackfunc) {} /** * (PECL mailparse >= 0.9.0)* A valid MIME resource. *
* @param string $msgbody * @param callable $callbackfunc [optional] * @return void */ function mailparse_msg_extract_part($mimemail, $msgbody, $callbackfunc) {} /** * (PECL mailparse >= 0.9.0)* A valid MIME resource *
* @param string $filename * @param callable $callbackfunc [optional] * @return string */ function mailparse_msg_extract_whole_part_file($mimemail, $filename, $callbackfunc) {} /** * (PECL mailparse >= 0.9.0)* A valid MIME resource allocated by * {@link https://php.net/manual/en/function.mailparse-msg-create.php mailparse_msg_create()} or * {@link https://php.net/manual/en/function.mailparse-msg-parse-file.php mailparse_msg_parse_file()}. *
* @return bool Returns TRUE on success or FALSE on failure. */ function mailparse_msg_free($mimemail) {} /** * (PECL mailparse >= 0.9.0)* A valid MIME resource. *
* @return array */ function mailparse_msg_get_part_data($mimemail) {} /** * (PECL mailparse >= 0.9.0)* A valid MIME resource. *
* @param string $mimesection * @return resource|false */ function mailparse_msg_get_part($mimemail, $mimesection) {} /** * (PECL mailparse >= 0.9.0)* A valid MIME resource. *
* @return array */ function mailparse_msg_get_structure($mimemail) {} /** * (PECL mailparse >= 0.9.0)* Path to the file holding the message. The file is opened and streamed through the parser. *
* @return resource|false Returns a MIME resource representing the structure, or FALSE on error. */ function mailparse_msg_parse_file($filename) {} /** * (PECL mailparse >= 0.9.0)* A valid MIME resource. *
* @param string $data * @return bool Returns TRUE on success or FALSE on failure. */ function mailparse_msg_parse($mimemail, $data) {} /** * (PECL mailparse >= 0.9.0)* A string containing addresses, like in:
Wez Furlong* Note: This string must not include the header name. * * @return array, doe@example.com
* Returns an array of associative arrays with the following keys for each recipient: *
*display | *The recipient name, for display purpose. If this part is not set for a recipient, this key will hold the same value as address. | *
address | *The email address | *
is_group | *TRUE if the recipient is a newsgroup, FALSE otherwise. | *
* A valid file handle. The file is streamed through the parser. *
* @param resource $destfp* The destination file handle in which the encoded data will be written. *
* @param string $encoding* One of the character encodings supported by the {@link https://php.net/manual/en/ref.mbstring.php mbstring} module. *
* @return bool Returns TRUE on success or FALSE on failure. */ function mailparse_stream_encode($sourcefp, $destfp, $encoding) {} /** * (PECL mailparse >= 0.9.0)* A valid file pointer. *
* @return array* Returns an array of associative arrays listing filename information. *
*filename | *Path to the temporary file name created | *
origfilename | *The original filename, for uuencoded parts only | *
* The first filename entry is the message body. The next entries are the decoded uuencoded files. *
*/ function mailparse_uudecode_all($fp) {} define('MAILPARSE_EXTRACT_OUTPUT', 0); define('MAILPARSE_EXTRACT_STREAM', 1); define('MAILPARSE_EXTRACT_RETURN', 2); // End of mailparse v.