PHP Classes

mbox headers/body

Recommend this page to a friend!

      PHP MIME Email Message Parser  >  All threads  >  mbox headers/body  >  (Un) Subscribe thread alerts  
Subject:mbox headers/body
Summary:mbox to eml
Messages:3
Author:Alan Fullmer
Date:2020-12-05 00:56:04
 

  1. mbox headers/body   Reply   Report abuse  
Picture of Alan Fullmer Alan Fullmer - 2020-12-05 00:56:04
Is there a way to just retrieve/extract the header and body from a mbox file? I have determined I can get the body from the BodyFile, but can't really figure out how to get the header information separately and cleanly.

Bottom line is I have mbox files and I simply just want to extract each mail file from the mbox format. Perhaps there's a separate class just to do that only?

  2. Re: mbox headers/body   Reply   Report abuse  
Picture of Alan Fullmer Alan Fullmer - 2020-12-05 00:59:00 - In reply to message 1 from Alan Fullmer
Or Something similar to BodyFile but a HeaderFile where I can just append the two together to make a single mail file.

  3. Re: mbox headers/body   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2020-12-06 05:53:38 - In reply to message 1 from Alan Fullmer
Hello Alan,

Sure, just try the test_message_decoder.php example script and set the mbox variable to true, so you can have this class to parser each message in a mbox file separately.

phpclasses.org/package/3169-PHP-Dec ...