Parse of pseudo-duplicate From line in mbox files
"Thomas Jahns" <[email protected]> Mon, 06 Aug 2007 18:04:17 +0200
| Newsgroups | gmane.comp.lang.perl.modules.mail-box |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'm currently writing a tool to merge two mbox files and use Mail::Box modules for this purpose. Unfortunately some of the mbox files contain a duplicate header like this From [email protected] Sat Oct 23 13:40:27 2004 >From tjahns Sat Oct 23 13:40:27 2004 because the message was delivered with "procmail -f [email protected]" via fetchmail's mda mechanism. Since the consume method of Mail::Message::Field::Fast tries to interpret the second >From as an ordinary header line, I get the following two results: 1) an error message stating a header line contains an illegal character. 2) (and this is the serious problem) when I write such a message to another file (with $message->copyTo()), it is mangled like this: >From tjahns Sat Oct 23 13: 40:27 2004 (notice the added space after 13:), because it's treated like a header. Since mutt,balsa or gnumail and probably other email-programs I haven't tried have no problem parsing such mailboxes, I wanted to place a featurewish for Mail::Box to do the same. I'm using libmail-box-perl (2.068-1) from debian etch. If I can provide any further useful information (like snippets from my perl code), I'll happily do so. Ciao, Thomas Jahns -- GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail _______________________________________________ Mailbox mailing list [email protected] http://lists.utsl.gen.nz/mailman/listinfo.cgi/mailbox