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/ Link to comment https://forums.phpfreaks.com/topic/91818-read-mail-file/ Share on other sites More sharing options...
trq Posted February 19, 2008 Share Posted February 19, 2008 Have you looked at the imap extension? Link to comment https://forums.phpfreaks.com/topic/91818-read-mail-file/#findComment-470230 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. Link to comment https://forums.phpfreaks.com/topic/91818-read-mail-file/#findComment-470235 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 Link to comment https://forums.phpfreaks.com/topic/91818-read-mail-file/#findComment-470245 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.