Login   Register  
PHP Classes
elePHPant
Icontem

MIME E-mail message parser: Decode MIME e-mail messages

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Manuel Lemos
Name: Manuel Lemos <contact>
Classes: 38 packages by
Country: Portugal Portugal
Age: 45
All time rank: 1
Week rank: 1 Equal


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This class can be used to parse and decode MIME e-mail messages.

It supports decoding single RFC 2822 MIME messages or archives that aggregate multiple messages in the mbox format.

The decoded message data is returned as an array that describes one or more messages found in a message file or data string.

The bodies of multipart messages can be decoded into distinct sub-messages.

The message body data can decoded and saved to separate files, so the class can handle messages larger than the available memory.

The parser can tolerate some syntax errors in malformed messages that are not compliant with RFC 2822.

An auxiliar class is provided to parse and extract e-mail address lists from message headers.

  Classes of Manuel Lemos  >  MIME E-mail message parser  >  Download Download .zip .tar.gz  >  Support forum Support forum (179)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: MIME E-mail message parser
Base name: mimeparser
Description: Decode MIME e-mail messages
Version: 1.78
PHP version: 4.3
License: BSD License
All time users: 26095 users
All time rank: 18
Week users: 42 users
Week rank: 23 Down
 
  Groups   Screenshots Screenshots   Rate classes User ratings  
  Dependents   Trackback   Applications   Files Files  

  Groups  
Group folder image Email Email sending and receiving View top rated classes
Group folder image Text processing Manipulating and validating text data View top rated classes
Group folder image Parsers Programming language interpreters and format parsers View top rated classes

  Files folder image Screenshots  
mimeparser.gif
File Role Description
Accessible without login Image file mimeparser.gif Screen Dump of the of the decoded message structure


  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Good (94%) Good (90%) Sufficient (76%) Sufficient (76%) Sufficient (75%) - Sufficient (79%) 11
Month: Not yet rated by the users

  Other classes that need this package  
Class Why it is needed Dependency
POP3 e-mail client Only needed to run the example that parses and decodes messages Conditional
pop3ml for parsing and decoding e-mail messages Required

  Pages that reference this package  
MIME parsing?
This looks like a nice little library that will do your work for you, on multipart MIME parsing...
Setting up a catch-all email forwarder and parsing emails using php
n one of my ongoing projects i had to set up a “catch-all” email parsing script...

Latest pages that reference packages Latest pages that reference packages


  Applications that use this package  
phpEmailListener
Integrates received e-mail with Alfresco CMS
SaltOS CRM ERP
Used in SaltOS e-mail client to import emails using a simple, safe and efficient method.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Files folder imagetest (1 file, 3 directories)
Accessible without login Plain text file test_message_decoder.php Example Example script to demonstrate how to decode a e-mail message
Accessible without login Plain text file test_parse_addresses.php Example Example to demonstrate how to parse e-mail address lists
Plain text file mime_parser.php Class MIME message parser and decoder class
Accessible without login HTML file mime_parser_class.html Doc. Class documentation
Plain text file rfc822_addresses.php Class Class to parse e-mail address lists from message headers
Accessible without login HTML file rfc822_addresses_class.html Doc. Documentation of the RFC 822 address parser class

  Files folder image Files  /  test  
File Role Description
Files folder imageexpect (7 files)
Files folder imagesample (7 files)
Files folder imagegenerated (1 file)
  Accessible without login Plain text file test.php Test Unit test script to verify different message parsing cases

  Files folder image Files  /  test  /  expect  
File Role Description
  Accessible without login Plain text file longheader.txt Doc. Long header test expected results
  Accessible without login Plain text file mbox.txt Data Expected output of the mbox test
  Accessible without login Plain text file missingheaderseparator.txt Data Expected output of the missingheaderseparator test
  Accessible without login Plain text file mixedlinebreaks.txt Data Mixed line breaks test expected results
  Accessible without login Plain text file normal.txt Data Expected output of the decoder example script when parsing the message.eml file
  Accessible without login Plain text file parse_addresses.txt Data Expected output of the e-mail address parser example script
  Accessible without login Plain text file q-encoding.txt Data Q-encoding test expected results

  Files folder image Files  /  test  /  sample  
File Role Description
  Accessible without login Plain text file longheader.eml Data Long header test sample message
  Accessible without login Plain text file mbox.eml Data Sample mbox message file
  Accessible without login Plain text file message.eml Data Sample MIME message file used by the example script
  Accessible without login Plain text file missingheaderseparator.eml Data Sample MIME message file used by the example script
  Accessible without login Plain text file mixedlinebreaks.eml Data Mixed line breaks test sample message
  Accessible without login Plain text file noendbreak.eml Data Sample MIME message file used by the example script
  Accessible without login Plain text file q-encoding.eml Data Q-encoding test sample message

  Files folder image Files  /  test  /  generated  
File Role Description
  Accessible without login Plain text file .cvsignore Data Dummy file to force the distribution of this directory

Install with Composer Install with Composer - Download Download all files: mimeparser.tar.gz mimeparser.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.