Login   Register  
PHP Classes
elePHPant
Icontem

MIME E-mail message parser

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

  Author  
Picture of Manuel Lemos
Name: Manuel Lemos <e-mail contact>
Packages: 32 Browse all classes by Manuel Lemos Browse all classes by
Country: Portugal Portugal - PHP jobs in Portugal
Age: 44
All time rank: 1
Week rank: 2 Down1 in Portugal Portugal Equal


  Detailed description   Download .zip .tar.gz  
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 .zip .tar.gz  >  Support forum Support forum (169)  >  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.77
PHP version: 4.3
License: BSD License
All time users: 24251 users
All time rank: 18
Week users: 42 users
Week rank: 22 Down
 
  Groups   Screenshots Screenshots   Freshmeat project   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  
Dump of the of the decoded message structure
File Role Description
Accessible without login Image file mimeparser.gif Screen Dump of the of the decoded message structure


  Freshmeat project  
MIME E-mail message parser
Project record: phpmimemaildecoder
Popularity score: 239.35
Vitality score: 18.87

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Good (94.4%)
Good (90.3%)
Sufficient (75.9%)
Sufficient (76.4%)
Sufficient (75.0%)
-
Sufficient (79.0%)
13
Month:
There are not enough user ratings to display for this class.

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

  Trackback links  
Link Description
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...

  Applications that use this class  
Link Description
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  /  Files folder image 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  /  test  /  Files folder image 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  /  test  /  Files folder image 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  /  test  /  Files folder image generated  
File Role Description
  Accessible without login Plain text file .cvsignore Data Dummy file to force the distribution of this directory

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.