mbox2mysql takes mailbox files used by email clients and stores the messages in a MySQL database. Messages can be searched, sorted, and filtered by sending SQL queries to the database. Results are output on the console, so selected messages can be extracted from the database and stored back in mbox format for use with your favourite email client. Email attachments can also be extracted and saved from selected messages.
| Tags | Communications Email Database Archiving |
|---|---|
| Licenses | GPL |
| Operating Systems | POSIX Linux |
| Implementation | C |
Recent releases


Changes: Compiled to use glib 2.x and gmime 1.90.8 (gmime 2.x), code cleanups, and minor bugfixes.


Changes: Messages larger than 16MB are now supported, and there is no need to set the max_allowed_packet variable when starting MySQL. A date/time bug was fixed, and some code cleanups and minor bugfixes were made.


No changes have been submitted for this release.
A shell that lets you restrict the user's environment to limited sets of commands.
- All comments
Recent commentsLittle modifikation
I have added an singly qut masqreding to the script because it fails when in the subject is an single qout:
Original:
if ($header =~ m/<em>Subject<\/em>:(.*)/) { $subject = $1; }
New:
if ($header =~ m/<em>Subject<\/em>:(.*)/) { ($subject = $1) =~ s/'/\\'/g; }
This works fine.
Tiny compile bugfix
I found a tiny bug in the Makefile that would prevent successful compilation on some systems (although everything works fine on mine). It's been fixed, so compilation and installation should run smoothly now.