6

I need to get informations out from my tree of Thunderbird message folders (which contains a large amount of email).

I need to be able to search the messages (optionally the attachments) and to report to the calling program.

There is some python module able to do it?

Has QUIT--Anony-Mousse
  • 76,138
  • 12
  • 138
  • 194
alessandro
  • 3,838
  • 8
  • 40
  • 59
  • Sorry, I just discovered that Thunderbird format is fully mbox compatible, so that techniques as the one discussed in https://stackoverflow.com/questions/7166922/extracting-the-body-of-an-email-from-mbox-file-decoding-it-to-plain-text-regard are ok - I approve the motion to close – alessandro Feb 07 '14 at 13:37
  • see also https://github.com/WolfgangFahl/pyThunderbird – Wolfgang Fahl Nov 10 '20 at 10:55

1 Answers1

12

As you apparently figured out yourself already, yes.

The vanilla python module mailbox, which exists in any python 2 or 3 version, is all you need:

http://docs.python.org/2/library/mailbox.html

Has QUIT--Anony-Mousse
  • 76,138
  • 12
  • 138
  • 194