PHP Mailparse Functions
EditRocket provides the following information on Mailparse functions in the PHP source code builder.
string mailparse_determine_best_xfer_encoding ( resource $fp ) - Figures out the best way of encoding the content read from the given file pointer.
resource mailparse_msg_create ( void ) - Create a MIME mail resource.
void mailparse_msg_extract_part ( resource $mimemail , string $msgbody [, callback $callbackfunc ] ) -
string mailparse_msg_extract_part_file ( resource $mimemail , mixed $filename [, callback $callbackfunc ] ) - Extracts/decodes a message section from the supplied filename.
string mailparse_msg_extract_whole_part_file ( resource $mimemail , string $filename [, callback $callbackfunc ] ) -
bool mailparse_msg_free ( resource $mimemail ) - Frees a MIME resource.
resource mailparse_msg_get_part ( resource $mimemail , string $mimesection ) -
array mailparse_msg_get_part_data ( resource $mimemail ) -
array mailparse_msg_get_structure ( resource $mimemail ) -
bool mailparse_msg_parse ( resource $mimemail , string $data ) - Incrementally parse data into the supplied mime mail resource.
resource mailparse_msg_parse_file ( string $filename ) - Parses a file. This is the optimal way of parsing a mail file that you have on disk.
array mailparse_rfc822_parse_addresses ( string $addresses ) -
bool mailparse_stream_encode ( resource $sourcefp , resource $destfp , string $encoding ) - Streams data from the source file pointer, apply encoding and write to the destination file pointer.
array mailparse_uudecode_all ( resource $fp ) - Scans the data from the given file pointer and extract each embedded uuencoded file into a temporary file.