Mime4j

Jul 20, 2023

Java parser for e-mail message streams

mime4j provides a parser, MimeStreamParser, for e-mail message streams in plain rfc822 and MIME format. The parser uses a callback mechanism to report parsing events such as the start of an entity header, the start of a body, etc. If you are familiar with the SAX XML parser interface you should have no problem getting started with mime4j.

The parser only deals with the structure of the message stream. It won’t do any decoding of base64 or quoted-printable encoded header fields and bodies.

The parser has been designed to be extremely tolerant against messages violating the standards.

mime4j can also be used to build a tree representation of an e-mail message using the Message class. Using this facility mime4j automatically handles the decoding of fields and bodies and uses temporary files for large attachments.



Checkout these related ports:
  • Xpbiff -
  • Xmailwatcher - Mailbox checker which displays sender and subject lines of mails
  • Xmailbox - Mailbox checker with sound and animation for X Window System
  • Xmail - X-based interface to the Berkeley mail program
  • Xfce4-mailwatch-plugin - Mail notification applet for the Xfce panel
  • Xfaces - Display shaped icons for mail spool contents
  • Xcite - Exciting Cite for any Mail/News reading modes on Emacs
  • Xbuffy - Replacement for xbiff that handles multiple mail files
  • X-face-e21 - X-Face utilities for Emacs
  • Wmmaiload - Incoming mail monitor dockapp with a similar look to wmcpuload
  • Wmbiff -
  • Whoson - Implementation of `WHO iS ONline' protocol
  • Websieve - Web based Cyrus IMAP user admin client
  • Wanderlust - Mail and news system for Emacs
  • Vrfy - Verify mail address