Cut+paste perl code to parse/create mbox files and mail messages

What is minimail? | Supported Platforms | Documentation | Download

What is minimail?

Minimail is a collection of functions that parse and produce mailbox files and individual mail messages. It is not a module (although uncommenting one line and calling it would turn it into a module). It is intended to be compact enough to cut and paste directly into perl scripts that don't want to require non-standard perl modules. In other words, it is intended to be yet another alternative to MIME-tools. MIME-tools does things that this code doesn't (such as uuencode decoding). And minimail does things that MIME-tools doesn't such as reading and writing mailbox files correctly (repairing incorrectly formatted ones along the way), automatically encoding and decoding mail headers and MIME header parameters, and transparently unravelling winmail.dat attachments (aka MS-TNEF). Minimail is much smaller (about 3% of the size of MIME-tools and the other modules it requires and about 20% of the size of MIME-Lite) and so takes much less time during program startup.

Minimail is freely available under the GNU General Public License.

For more information read the manual entry in the Documentation section.

Supported Platforms

Minimail is written in perl and requires no non-standard modules. It should run on any system with a recent version of perl.


There is a manpage.

minimail(3) - the minimail(3) manpage


Note: There is no tarball. The download is the script itself. Just download it and cut and paste what you need into your code.

minimail [46330 bytes, 2007/8/3] (MD5 1c959ea4ee601150e5e34c423366220e)

What is minimail? | Supported Platforms | Documentation | Download

Last modified by raf at Fri Aug 3 11:42:47 EST 2007