Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A script to clean up Mozilla's mailbox files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to clean up Mozilla's mailbox files
Authored by: autumn_oaks on Mar 10, '10 01:10:21PM

For a hint to have been posted in 2004 and exceeding now 20,000 hits, it must be pretty good!

W/R to your comment on Thunderbird not having been tested, I just tested your script on a small Thunderbird (09/2009, vers 3.0?, I don't remember) mbox file:

localhost:~ Me$ python ~/Desktop/clean_moz.py ~/Desktop/Mails.mbox
Reading messages from '/Users/Me/Desktop/Mails.mbox'
Processing 101 messages... done.
Wrote to '/Users/Me/Desktop/Mails.mbox.cleaned'
Cleaned 1 mailbox(es).

Under Import in Mail (Version 2.1.3 (753.1)), it reads the 101 messages, but appends them as a single message in Mail. Looking at the single message, Mail displays a blank line between each individual message entry.

Not being very knowledgeable of Mail's message structure, any hints on how to change your script so that the result in Mail contains 101 individual messages? Thanks...



[ Reply to This | # ]