Use file/other data input stream for imap related functions
Posted: Thu Sep 18, 2008 5:06 am
Hi,
I am using imap_headerinfo, imap_fetchstructure, imap_fetchheader api functions, but all these functions requires minimum two parameters like $imap_stream, $message_number. The $imap_stream is an IMAP stream to a mailbox which requires connection to the imap server.
If I save the mail into a file or store the complete mail contents into a database then how can I use this file stream or database contents as an input to the imap_headerinfo, imap_fetchstructure etc, so that It returns the all the structured information for that given message.
Please suggest me how to read the structured information from the mail without using the imap stream
Regards
Supratik
I am using imap_headerinfo, imap_fetchstructure, imap_fetchheader api functions, but all these functions requires minimum two parameters like $imap_stream, $message_number. The $imap_stream is an IMAP stream to a mailbox which requires connection to the imap server.
If I save the mail into a file or store the complete mail contents into a database then how can I use this file stream or database contents as an input to the imap_headerinfo, imap_fetchstructure etc, so that It returns the all the structured information for that given message.
Please suggest me how to read the structured information from the mail without using the imap stream
Regards
Supratik