Templates Plugin
by Ryan Rubley (ryan@morpheussoftware.net)
(c) 2003 (GNU GPL - see ../../COPYING)

This plugin lets you define a bunch of templates that you can quickly add to
your emails at the compose page.  You add templates in the options screen
similar to the way you add multiple identities and signatures (the options
page should look similar since most of the code was hacked from that page).
There is an option you can set to have your text added above all other
existing text in your compose window, otherwise it will be added below all
other text but above your signature, if it is found by the "-- " marker.
There are also options to have a blank line added before and/or after the
template text when adding them to your composition

A dropdown and button will appear on the compose page if you have any
templates defined. All template text is loaded with the compose page and the
text is added to the compose textarea by javascript.  I like it to work this
way and feel it is much faster then hitting the server to add the text, even
if it makes the compose page larger then it needs to be most of the time.
(Try the "signature" button if you have your signature automatically appended
like I do and thus usually never need to click that button and notice how
annoyingly long it takes for the page to refresh with a few lines of text
added - uhg!)

Note if you are using a DB to store prefs, I still store the template text in
files and you still need the proper prefs directory and permissions set up or
you will probably get errors creating templates.

------------------------------------------------------------------------------
History
June 23, 2003 - v1.0
First release
