Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Thunderbird scripting

I need to process a number of messages in my Thunderbird.app (Mac OS X Snow Leopard, Intel Core 2 Duo), delete a few based on some criteria, export some others, move a small part of them to a special folder and create a filing hierarchy to go with it all - programmatically.

With Outlook I used to enjoy VBScript + the COM object model: it would do all of the above simply and intuitively.

What can I use to achieve the same with Thunderbird?

If multiple options are available, here are my current preferences in terms of languages (although I can adapt to most things): Python, C++, AppleScript, PHP, Perl, Bash, ...

If I need to move to a Windows box to use .NET and the like, I can (yet I'd imaging the most popular bindings come from the open-source world?!) If there was a command-line tool that did what I need, I'd use that! (thunderbird.sh show messages; thunderbird.sh create folder X as child of folder Y;)

like image 676
Maroloccio Avatar asked Jun 22 '10 18:06

Maroloccio


People also ask

Does Thunderbird allow scripting?

The developers have removed JavaScript in Thunderbird 3 for emails completely. There is no option to enable JavaScript for emails. JavaScript for RSS feeds is enabled on the other hand.

Does Thunderbird have an API?

Thunderbird WebExtension APIs. Enables an extension to access information of accounts and identities configured in Thunderbird's account manager. Enables an extension to access, modify, create and delete Thunderbird address books.

What is Thunderbird file format?

MBOX (File per Folder) – MBOX file is the most common file format for storing email messages and attachments. It is also the default setting in Mozilla Thunderbird and an MBOX file is generated for each Thunderbird mailbox folder.


1 Answers

You can develop Thunderbird extensions in a similar way to Firefox extensions in XUL and Javascript.

Try this tutorial.

This tutorial will introduce you to the components of a Thunderbird extension and will show you how to build your own.

like image 175
Gelatin Avatar answered Sep 18 '22 16:09

Gelatin