[clug] verifying mbox format
paulway at mabula.net
Fri Sep 10 05:44:02 MDT 2010
-----BEGIN PGP SIGNED MESSAGE-----
On 09/09/2010 06:16 PM, Brad Hards wrote:
> Inspired by Steve Jenkin's recent post, I wondered about how to validate
> "mbox" format files.
> [Background: I'm turning Microsoft Exchange messages into mbox, as part of the
> openchange work (the command line tool is called "exchange2mbox"). Search for
> MS-OXCMAIL for more information.]
> As I understand it, there is no "one true mbox". In any case, I'm mostly
> interested in "does it work", rather than "is it absolutely conformant".
> My current plan is to build a simple python script that checks that the output
> is roughly consistent from various tools.
> Suggestions for things that use mbox format and are reasonably scriptable?
> So far, I'm planning to try
> 1. the internal python mailbox.mbox parser
> 2. mbox2eml
3. Perl's Mail::MBox::MessageParser module
4. the 'Windows MBox Viewer' program:
5. The 'Thunderbird mbox import/expoert extension':
Presumably scripting can also send an email to your favourite mbox-compatible
mail reader, and then check that the email was stored in the same manner as
you expect your exchange2mbox exporter to.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----
More information about the linux