Path: csiph.com!news.mixmin.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.python Subject: Re: Getting data out of Mozilla Thunderbird with Python? Date: Tue, 08 Dec 2015 19:42:56 +0100 Organization: PointedEars Software (PES) Lines: 45 Message-ID: <4306369.OX057VMHEH@PointedEars.de> References: Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: solani.org 1449600177 4339 eJwNy8EBwCAIA8CVpJCA41Bp9h+h3v/gNJ4MggFBio/1yLi79J5Z3oZ1je0ozkpHWybMdVP8EkoQCw== (8 Dec 2015 18:42:57 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Tue, 8 Dec 2015 18:42:57 +0000 (UTC) User-Agent: KNode/4.14.2 X-User-ID: eJwFwQkBwDAIA0BL5UkKdiiLfwm7Q9D4bhJMCFqV2Q2fU1ix7gjeR7UzT2cfDYP4MpxysMo3ox2obevzA05jFLk= Cancel-Lock: sha1:zJ8IwW55QuggMhFZ2Q4HhVpeQkQ= X-NNTP-Posting-Host: eJwNwgERwDAIA0BLow0pyBmU+Jew/b1vGvuATrhcPXgQ2s38Y6nuyveGUmlAgoXKiYMxlfEDIJoRJg== Xref: csiph.com comp.lang.python:100170 Anthony Papillion wrote: > -----BEGIN PGP SIGNED MESSAGE----- Please don’t do that again. > I have a TON of email (years) stored in my Thunderbird. My backup > strategy for the last few years has been to periodically dump it all > in a tar file, encrypt that tar file, and move it up to the cloud. > That way, if my machine ever crashes, I don't lose years of email. > > But I've been thinking about bringing Python into the mix to build a > bridge between Thunderbird and SQLite or MySQL (probably sqlite) where > all mail would be backed up to a database where I could run analytics > against it and search it more effectively. > > I'm looking for a way to get at the mail stored in Thunderbird using > Python and, so far, I can't find anything. I did find the mozmail > package but it seems to be geared more towards testing and not really > the kind of use I need. > > Can anyone suggest anything? Yes. (Please never ask that question again: ) Thunderbird uses the mbox format to store both e-mails and news messages. -- PointedEars Twitter: @PointedEars2 Please do not cc me. / Bitte keine Kopien per E-Mail.