PHP Classes

Saving Full Email Message from MBOX as an eml file

Recommend this page to a friend!

      PHP MIME Email Message Parser  >  All threads  >  Saving Full Email Message from MBOX...  >  (Un) Subscribe thread alerts  
Subject:Saving Full Email Message from MBOX...
Summary:Saving Full Email Message from MBOX as an eml file
Messages:4
Author:Harriet Snodgrass
Date:2012-04-23 05:27:27
Update:2012-04-23 06:21:20
 

  1. Saving Full Email Message from MBOX...   Reply   Report abuse  
Picture of Harriet Snodgrass Harriet Snodgrass - 2012-04-23 05:27:27
Fantastic class - thanks so much! Just starting to use it to parse an MBOX file and in addition to using the decoded fields, I'd also like to save an EML file of each separated email message from the MBOX - is there a variable that contains the entire email message from the MBOX or what is the best way to save each separated EML as an EML file? Thanks again! Take Care... Mike.

  2. Re: Saving Full Email Message from MBOX...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2012-04-23 05:55:54 - In reply to message 1 from Harriet Snodgrass
No, but mbox message archives split messages with a line starting with a From pseudo-header.

  3. Re: Saving Full Email Message from MBOX...   Reply   Report abuse  
Picture of Harriet Snodgrass Harriet Snodgrass - 2012-04-23 06:09:18 - In reply to message 2 from Manuel Lemos
Gotcha Manuel! I just used the PEAR Mail_Mbox class to grab each full email in EML form from the MBOX (for my file save) and then passed this on to your great mime_parser class - Thanks again!

  4. Re: Saving Full Email Message from MBOX...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2012-04-23 06:21:20 - In reply to message 3 from Harriet Snodgrass
Well, this class can already parse messages from files in mbox format. There is no need to split each message in the mbox archive with a separate component.