ExternalTemplateLoader
This extension for Thunderbird gives you the possibility to load an external template for your messages, from a common html page.
You can set a template for each identity e you can choose if you want to load it automatically with every new message or load it by hand.
Moreover, from the 0.2 version, you've also a list with 5 templates (increased to 9 from the 0.2.1.3 version), that you can use from the dropdown menu on the button "New message" in the toolbar.
From the 0.2.1 version you can also load directly a template from a file, choosing in the menu the item "Load template from a file".
How use a template: write a html file with the template, then open the compose window, go in Tools --> ExternalTemplateLoader options --> Template for this identity and pick your file. From here you can also choose if load it automatically or not.
From 0.2.3 version you can have the options dialog also from main window, choosing Tools --> ExternalTemplateLoader options --> Template for this identity (the identity will be the first one for the selected account).
From 0.2.3 version, in the compose window, you can also load manually the template with CTRL-SHIFT-T.
Otherwise you can load a template from the list in the dropdown menu on the button "New message" --> "Edit list" in the toolbar.
If the file you choose doesn't exist, the item in the dropdown menu is grayed out.
Warning, use always absoulte paths in the template.
The only exception is the background attribute of the BODY tag, where you can use just the name of the file, if the image file is in the same directory of the main html file.
How use a template to reply and forward; first of all you must enable the option from the compose window, in Tools --> ExternalTemplateLoader options --> Template for this identity. Then you must insert in the template this code:
<div id="quoteDIV"> </div>
This tag can be customized through the "style" attribute and will be filled with the replied or forwarded text.
How attach files to the template (from 0.2.5 version): you can attach files to the template, adding the following line:
<div id="attachmentDIV" src="file:///path file1,file:///path file2"> </div>
Predefined text in "mailto" links (from 0.3 version): if the compose window is opened by a "mailto" link with predefined text, this text will be appended by default at end of the template. You can force it in another position, using a line like the following one:
<div id="predefinedDIV"> </div>
How load a template: if you've not enabled the automatic loading, you can go in Tools --> ExternalTemplateLoader options--> Load template.
Otherwise you can load a template not specific for the identity from the list in the dropdown menu on the button "New message" in the toolbar.
Other options:Fom Tools --> ExternalTemplateLoader options --> Clear page, you can have a blank page deleting everything (the template but also, WARNING, what you've written!!!).
External template example:: here is a template example for the extension:
In this example, the template will produce a mail with yellow background, the new text in blu and the replied or forwarded text in black.
Features and bugs: The format bar of the compose window can be not exact with the attributes of the template.
From the 0.2.2 version, the template is loaded properly also if it has not-ascii chars and its encoding is applied also to the message.
Note: if you use a template loaded from remote, the encoding is automatically set to UTF8.
Compatibility and localization: the extension is compatible with Thunderbird 1.5 - 2.0.0.* and has english, italian, (thanks to J.B.Marcon) french, (thanks to Kim Ludvigsen) danish, (thanks to Arkadius) polish, (thanks to Jackbin) chinese traditional, (thanks to Sebastian Hosp) german.
Changelog 0.2.1.3 version:
- increased to 9 the number of templates in the dropdown menu of the "New message" button;
- added an hidden option to turn off the check of the beginning of the html file;
Changelog 0.2.2 version:
- the template is loaded properly even if it has not-ascii chars;
- the template charset is applied to the message;
- compatibility with Thunderbird 2.0.
Changelog 0.2.3 version:
- options dialog can be opened also from main window;
- added an option not to attach automatically the remote images;
- added a shortcut Ctrl-Shift-T from compose window, to load the template;
- added the polish and chinese traditional locales;
- enabled the auto update;
Changelog 0.2.4 version:
- possibility to load as template also a remote file (with the contribute of Christian Mayer);
Changelog 0.2.5 version:
- improved options panel;
- possibility to attach files to the template;
- added german locale;
Changelog 0.2.6 version:
- fixed a bug;
- loading template doesn't delete signature;
Changelog 0.3 version:
- code deeply rewritten;
- new method to load the template, faster and safer;
- the template is loaded also from "mailto" links;
- correct cursor position in replies;
- fixed some minor bugs;
Changelog 0.3.1 version:
- options panel more user-friendly;
- the signature is not added automatically anymore, but according to a per-identity option;
Changelog 0.3.2 version:
- fixed a bug about reply/forward with a remote template;
Download ExternalTemplateLoader - 0.3.2 version