Jump to content

read mail file


AV1611

Recommended Posts

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 ;D

 

Can anyone point me in the right direction/

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.