Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.04; 'python.': 0.05; 'received:134': 0.05; 'scripting': 0.05; 'python': 0.07; 'header:In-reply-to:1': 0.09; 'manipulate': 0.09; 'rename': 0.09; 'scripts': 0.10; 'examples': 0.12; 'around,': 0.16; 'thunderbird': 0.16; '"python': 0.16; 'thanks,': 0.17; 'marc': 0.19; 'writes:': 0.20; 'cc:no real name:2**0': 0.20; 'cc:2**0': 0.20; 'language': 0.20; 'cc:addr:python-list': 0.22; 'insert': 0.22; "i'm": 0.26; 'thanks': 0.29; 'subject:?': 0.29; 'formats': 0.29; 'message-id:@gmail.com': 0.30; 'list': 0.30; 'cc:addr:python.org': 0.31; 'possible?': 0.31; '\xe2\x80\x94': 0.31; 'does': 0.31; 'anyone': 0.31; 'using': 0.34; 'there': 0.35; 'file': 0.35; 'header:User-Agent:1': 0.35; 'think': 0.36; 'some': 0.37; 'however': 0.37; 'case': 0.37; 'subject:Can': 0.38; 'but': 0.38; 'could': 0.39; 'where': 0.39; 'received:de': 0.39; 'how': 0.39; 'would': 0.40; 'mailbox': 0.61; 'emails': 0.63; 'to:addr:googlegroups.com': 0.69; 'saving': 0.72; 'ignorant': 0.84; 'imap': 0.84; 'mailboxes': 0.84; 'subject:control': 0.84; 'locally': 0.91 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 X-IronPort-AV: E=Sophos;i="4.64,223,1301868000"; d="scan'208";a="106883303" From: Andrea Crotti To: comp.lang.python@googlegroups.com Subject: Re: Can Python control Thuderbird? References: Date: Sat, 16 Apr 2011 11:11:19 +0200 In-reply-to: User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) Content-transfer-encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 35 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1302945089 news.xs4all.nl 81485 [::ffff:82.94.164.166]:60404 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:3305 marceepoo writes: > I want to control Mozilla Thunderbird using Python. > Does anyone know if that is that possible? > I would like to use Python to save email attachments to a specific > directory, depending on the name of the sender, content in the email, > etc.--- and to rename the attachment file -- and to save the email to > an html file -- and to insert into the email file links to the locally > saved copies of the attachments. Is this possible?=20 > If the answer is yes, where could I find information about how to us= e Python to control Thuderbird (and/or examples of saving attachments to lo= cval filenames,and/or saving emails to htmlfiles and/or connecting to the l= ist of > contacts) ?=20 > While hunting around, I came across "Python 18.4. mailbox =E2=80=94 Ma= nipulate mailboxes in various formats =E2=80=94 Python v2.7.1 documentation= ". I'm so totally ignorant of MAPI that I don't know if that is what I'm l= ooking for. If it is, does anyone know where I could find some examples of= python scripts using the "Python 18.4. mailbox module"? > > Thanks, > > Marceepoo > > > Thanks for your tme and the knowledge you share, > > Marc In general I think it would be easier to work directly from the mailbox, yes, or even the imap folders if you're using imap, but in this case thunderbird is not part of the equation... If you want to use thunderbird then I think there are easier solutions with the internal scripting language (XUL or however it was called...)