Use file/other data input stream for imap related functions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
supratik
Forum Newbie
Posts: 2
Joined: Fri Aug 22, 2008 12:16 am

Use file/other data input stream for imap related functions

Post by supratik »

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
Post Reply