[clug] verifying mbox format
Paul Wayper
paulway at mabula.net
Fri Sep 10 05:44:02 MDT 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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:
http://sourceforge.net/projects/mbox-viewer/
5. The 'Thunderbird mbox import/expoert extension':
http://mywheel.net/blog/index.php/2006/05/05/thunderbird-mbox-importexport-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.
Have fun,
Paul
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAkyKGgIACgkQu7W0U8VsXYKi8ACfQ/EU6RoQtGGYJbrGLZ5bJF+p
TV8An103ENwOwIPiHrpIJ4duDVfUvcPR
=bVmh
-----END PGP SIGNATURE-----
More information about the linux
mailing list