Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Anthony Papillion Newsgroups: comp.lang.python Subject: Getting data out of Mozilla Thunderbird with Python? Date: Tue, 8 Dec 2015 12:21:43 -0600 Lines: 48 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de XC+4pQkMK/Dwq3ePEadDPgsEm4HGDsCeJgJjMdiegU6A== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'pgp': 0.09; 'skip:o 60': 0.09; 'sqlite': 0.09; 'subject:Getting': 0.09; 'stored': 0.10; 'python': 0.10; 'suggest': 0.15; 'everyone,': 0.15; 'file,': 0.15; 'message-----': 0.15; '----- begin': 0.16; '-----end': 0.16; 'fingerprint:': 0.16; 'from:addr:anthony': 0.16; 'hash:': 0.16; 'key:': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'skip:a 60': 0.18; 'machine': 0.21; 'skip:n 60': 0.22; 'seems': 0.23; 'thanks,': 0.24; 'signed': 0.24; 'testing': 0.25; "i've": 0.25; 'header:User- Agent:1': 0.26; 'towards': 0.28; 'far,': 0.29; 'skip:i 60': 0.29; 'skip:k 60': 0.29; 'skip:r 60': 0.29; 'skip:y 60': 0.29; 'tar': 0.29; "i'm": 0.30; 'anyone': 0.32; "can't": 0.32; 'run': 0.33; 'analytics': 0.33; 'phone:': 0.33; 'could': 0.35; 'mix': 0.35; 'but': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'really': 0.37; 'skype:': 0.38; 'received:192': 0.39; 'build': 0.40; 'to:addr:python.org': 0.40; 'where': 0.40; 'subject:with': 0.40; 'ever': 0.60; 'bridge': 0.63; 'lose': 0.63; 'more': 0.63; 'between': 0.65; 'backup': 0.66; 'periodically': 0.66; 'strategy': 0.69 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:100169 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hello Everyone, 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? Many Thanks, Anthony Papillion - -- Phone: 1.845.666.1114 Skype: cajuntechie PGP Key: 0x028ADF7453B04B15 Fingerprint: C5CE E687 DDC2 D12B 9063 56EA 028A DF74 53B0 4B15 -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJWZx+3AAoJEAKK33RTsEsVVa8QAKf1AmFdJsi4/b08vpkfwP3c akGV98EuZzEva29jr8nnfXGgqw7xD/nDjMyLzuO0/q4Kn7eKpEnxkcGDLSbDgxaW O8kD5eALHCVlUp9p/h7RMBBAyZ4mH8YC6qwvd5SWtH0TIMR7ClcWmDYwPF1Ahk7n NAFvTsMl8PSnhcIoWHE4vebN4wHR8gZAxOLI8WVPA2BbER64EXiL00nWBav6UDN5 NUosAAVa549rrH0ibEf7Lada63DRTHCYnESxNIkAAHIO0z69WjnfZQ8gmmGFhuaW AZzqYV5pIhdRnvrwjCQ06LtUNtz/qPqLbLSWF0hA6lwPKqzNum9EdvS4c1xjcXsU KpOCTmJXy40x1Oi8h+yT6PGiDxt5VCHCdN8ppToI3HY5pYmoiPgWszJzrqYMz7hz ruhNFAksKNUSI9QQupYcPw6oKQdnoGWmBH1yvGlZqeZuIxhGEv87oqRISE4NRQLe yL4aDebwXdDgBzIZvFOFy2W4L43jdravg2/LliSC18iCUKBnIpWhazy7NZHw6h55 h3QP84DeuB/9tPLQUZF+BEJm3I+V8WfSKVVnsSbk/n/chHgYpWnu+h/wpD6lx43x y0lPJm0ni5LeQM1bK4TsIXVEAOzl8UaOwn/VUG7P6Jnt6VEqvQutWZ0/WEeP1nIX M7+e9hLlQWtlEbl6ud1K =Dz7N -----END PGP SIGNATURE-----