Calling Thunderbird from other programs: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
(add external link to mozilla programming projects)
 
(5 intermediate revisions by the same user not shown)
Line 14: Line 14:
==See also==
==See also==
* [[Command_line_arguments_%28Thunderbird%29 | Command line arguments]]
* [[Command_line_arguments_%28Thunderbird%29 | Command line arguments]]
* [[Development resources]]
* [[MAPI_Support | MAPI Support]]
* [[MAPI_Support | MAPI Support]]


==External links==
==External links==
* [http://www.mozilla.org/projects/xpcom/ XPCOM]
* [http://code.activestate.com/recipes/157437/ Example of code to read/write mbox files]
* [http://www.xulplanet.com/ XUL]
* [http://www.eyrich-net.org/mozilla/X-Mozilla-Status.html?en X-Mozilla-Status headers]
* [http://en.wikipedia.org/wiki/Mbox Mbox files]
* [http://en.wikipedia.org/wiki/Mbox Mbox files]
* [http://www.mozdev.org/categories/programming.html Mozilla programming projects] It includes a XPCOM Ruby language binding and a MySQL XPCOM wrapper. However, only a few of the projects seem to be active, most are still in alpha.
* [http://www.gnu.org/software/mailutils/ GNU mail utilities and libraries]
* [http://www.gnu.org/software/mailutils/ GNU mail utilities and libraries]
* [http://www.mozdev.org/categories/programming.html Mozilla programming projects] It includes a XPCOM Ruby language binding and a MySQL XPCOM wrapper. However, only a few of the projects seem to be active, most are still in alpha.
* [http://www.eyrich-net.org/mozilla/X-Mozilla-Status.html?en X-Mozilla-Status headers] are used to store message status information such as whether its been deleted, read, replied etc.
 
* [https://wiki.mozilla.org/Thunderbird:Backend_Hacking_Guide_For_Newbies Thunderbird:Backend Hacking Guide For Newbies] describes several frameworks used by Thunderbird.
* [https://wiki.mozilla.org/Calendar:Hacking Beginner's Guide to Hacking Sunbird/Lightning]
* [http://www.mozilla.org/projects/security/pki/nss/nss-3.11/nss-3.11-algorithms.html Encryption Technologies Available in NSS 3.11]


[[Category:Thunderbird]]
[[Category:Thunderbird]]

Latest revision as of 16:48, 10 May 2009

This article was written for Thunderbird but also applies to Mozilla Suite / SeaMonkey (though some menu sequences may differ).


Thunderbird supports SimpleMAPI, which is a Microsoft standard way for a third party application to send email messages using the default email client. SimpleMAPI can be called from C , C++ and Visual Basic.

XPCOM (Cross Platform Component Object Model) is Mozilla's framework for writing cross-platform, modular software. Despite some obvious similarities, Microsoft COM and XPCOM components are not compatible or interchangeable. XPCOM components can be written in and used from C, C++, Perl, Python, and JavaScript.

Thunderbird supports command line arguments to open the compose message window and fill in the headers, the message body and attachment(s), but you'd still have to press the send button.

Thunderbird doesn't have a scripting capability. Its functionality can be modifed using XUL based extensions. It does not support traditional plug-ins.

If all you want to do is to process new messages don't overlook writing a script that parses the "inbox." mbox file using the X-Mozilla-Status headers to figure out if a message is a new message. A mbox file is essentially just a flat text file that has a seperator between the messages and special encoding for any "From" strings if they occur at the beginning of a line in either the headers or the message body.

See also


External links