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 to 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">&nbsp;</div>
This tag can be customized through the "style" attribute and will be filled with the replied or forwarded text.
Sometimes it can be useless to load the template when the message has inside other replies; from 0.3.3 version it's possible to disable template loading in this case.

How to 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">&nbsp;</div>

Hot to place the cursor in the template for replies (from 0.3.6 version): insert in the template this code:
<div id="focusDIV">&nbsp;</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">&nbsp;</div>

How to 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.

Localization: the extension 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, (thanks to Pavel V. Rochnyack) russian translations.

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;
Changelog 0.3.3 version:
- fixed some bugs and code improved;
- possibility to disable template loading for messages with replies inside;
Changelog 0.3.3.1 version:
- fixed a regression about adding signature;
Changelog 0.3.3.2/0.3.3.3 version:
- fixed a regression with secondary identities;
Changelog 0.3.4.1 version:
- compatibility with Thunderbird 3;
- fixed some bugs;
Changelog 0.3.4.2 version:
- compatibility with Thunderbird 3.1;
Changelog 0.3.4.3 version:
- compatibility with Thunderbird 5;
Changelog 0.3.5.1 version:
- compatibility with Thunderbird 24;
Changelog 0.3.6 version:
- fixed a bug with Thunderbird 24;
- possibility to place the cursor in the template for replies;
Changelog 0.4 version:
- automatic loading of the template when switching identity;
- toolbar icon to load the template for the current identity;
- possibility to set the subject of the new messages in the template;
- confirm request before loading the template if the message has been modified;
- some minor bugs fixed;
Changelog 0.4.1 version:
- fixed a bug with forwards;
- more consistent behaviour with replies and forwards;
Changelog 0.4.2 version:
- fixed a but with forwards with attachments;
- added russian translation;
Changelog 0.4.3 version:
- compatibility with Thunderbird 31;
Changelog 0.4.4 version:
- fixed a bug with attachments;

Download ExternalTemplateLoader - 0.4.4 version