Re: Accessing mail box tree of Thunderbird/Seamonkey?
Chris Rebert wrote: On Sun, Apr 5, 2009 at 1:04 AM, robert wrote: Is there a API/possibilty for reading&writing (live) in the mail box tree of Thunderbird/Seamonkey with Python? From what I can google, they're already in mbox format, so you can use mailbox.mbox to read/write to them. See http://docs.python.org/library/mailbox.html#mailbox.mbox I was already aware of. those mbox file just grow and grow until one does a 'Compress Folder'. There are additional complicated index files and caching and all. So it doesn't reflect the current state nor allows for practical modifying. I found only SimpleMAPI for the inbox&send only. the XUL api seems to be usable only from inside. Robert -- http://mail.python.org/mailman/listinfo/python-list
Re: Accessing mail box tree of Thunderbird/Seamonkey?
On 05Apr2009 01:16, Chris Rebert wrote: | On Sun, Apr 5, 2009 at 1:04 AM, robert wrote: | > Is there a API/possibilty for reading&writing (live) in the mail box tree of | > Thunderbird/Seamonkey with Python? | | >From what I can google, they're already in mbox format, so you can use | mailbox.mbox to read/write to them. | See http://docs.python.org/library/mailbox.html#mailbox.mbox But you should probably _not_ have thunderbird open when you modify them; it expects exclusive access. Also, if you modify a file you should probably remove the corresponding .sdb file, which is a cache of Thunderbird's knowledge of the mbox contents (header values and probably message offsets within the file). -- Cameron Simpson DoD#743 http://www.cskk.ezoshosting.com/cs/ ..And in all of Babylonia there was wailing and gnashing of teeth, till the prophets bade the multitudes get a grip on themselves and shape up. - Woody Allen -- http://mail.python.org/mailman/listinfo/python-list
Re: Accessing mail box tree of Thunderbird/Seamonkey?
On Sun, Apr 5, 2009 at 1:04 AM, robert wrote: > Is there a API/possibilty for reading&writing (live) in the mail box tree of > Thunderbird/Seamonkey with Python? >From what I can google, they're already in mbox format, so you can use mailbox.mbox to read/write to them. See http://docs.python.org/library/mailbox.html#mailbox.mbox Cheers, Chris -- I have a blog: http://blog.rebertia.com -- http://mail.python.org/mailman/listinfo/python-list
Accessing mail box tree of Thunderbird/Seamonkey?
Is there a API/possibilty for reading&writing (live) in the mail box tree of Thunderbird/Seamonkey with Python? -- http://mail.python.org/mailman/listinfo/python-list