Question

I have a thunderbird email data file from which I need to extract individual email. I tried to use regex and do plain vanilla extract based on from tag but this doesn't give me the required result. An email can have another email attached within the body hence a single email can have more than one "From:" strings. How can I extract individual emails out of this data file?

Was it helpful?

Solution

Try the python mailbox module.

The mailbox module can read mbox/maildir message stores.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top