AV1611 Posted February 19, 2008 Share Posted February 19, 2008 I have a Linux server with Postfix. I use IMAP in maildir format. Each email message is a separate email file. What I want to know is there an already existing set of functions in PHP will allow me to extract the data from the file, determine if it's text mode or html mixed mode, etc.? Or, do I have to write my own functions to parse out the file. I am going to write a program to archive old emails and store the file in an alternate location and parse the to, from, & subject into a database along with the location of the original file. That much I can handle. What I need to do is be able to display the file as a webpage. That's the part I've not figure out yet. You know, your basic mail archival system Can anyone point me in the right direction/ Quote Link to comment Share on other sites More sharing options...
trq Posted February 19, 2008 Share Posted February 19, 2008 Have you looked at the imap extension? Quote Link to comment Share on other sites More sharing options...
AV1611 Posted February 19, 2008 Author Share Posted February 19, 2008 The IMAP extensions seem to work off of an IMAP stream. I at least intend to move the files to a new location first. The files will no longer be IMAP accessible at that point. Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted February 19, 2008 Share Posted February 19, 2008 The IMAP functions work with POP also. Ken Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.