Morning sirs,

 Recently I felt the need to restructure all my template management. I
 thought maybe some of you might find my results useful.

 The idea is to use a few text files for template sources and variables so
 that I need to change only these if eg my website changes or I want to use
 a different name in a mail.

 My situation: I have my own domains and the possibility to use many
 different aliases for my email account. So some of this might not be 100%
 applicable to you, but that's not a problem.

 Detailed examples below.

 Step 1:
 create seperate text files for identities (name and email
 address/reply-to), signatures (eg sigs for personal communication,
 business mails, technical mailing lists) and "variables" (eg website,
 hardware). One textfile for the common options (eg %singlere macro). Put
 all these files in some directory that is unlikely to change (since TB
 doesn't support paths relaive to it's homedir, if I am not mistaken.
 Correct me if I am.

 Step 2:
 give the account some generic default template and easily assign templates
 to the folders and address book entries by using
 %include="<path\filename>"

 Generic example:
 ----------------
 
Hi %ofromfname,

 %cursor

-- <sig seperator>
%include="<path>\<sig>.txt"
%include="<path>\<identity>.txt"
%include="<path>\<common options>.txt"


 Step 3:
 for best flexibility, create quick templates for changing signatures and
 identities on the fly. They might look something like this:

 qt: i.business
 %include="<path>\<business identity>.txt"

 qt: i.pseudonym
 %include="<path>\<pseudonym identity>.txt"

 qt: s.business
 %include="<path>\<business sig>.txt"

 qt: s.personal
 %include="<path>\<personal signature>.txt"

 Now all I have to do is type in the name of the identity or sig and have
 it changed in a second! For the signature changing to work correctly, it
 is of course important to have the sig seperator in every template and the
 %issignature macro in the sig files.
 

 Anyway, if all that wasn't clear enough, on to more specific examples:
 In a subdir on my support files partition I have following files with
 respective content:

  "identities":
 
ident_business.txt:
 %from=""%from="Justin DSC K�ser <[EMAIL PROTECTED]>"
 %replyto=""%replyto="Justin DSC K�ser <[EMAIL PROTECTED]>"

ident_personal:
 %from=""%from="Justin <[EMAIL PROTECTED]>"
 %replyto=""%replyto="Justin <[EMAIL PROTECTED]>"
 
ident_pseudonym.txt:
 %from=""%from="Jast <[EMAIL PROTECTED]>"
 %replyto=""%replyto="Jast <[EMAIL PROTECTED]>"

 
  variables:

var_url.txt:
 http://www.zz-s.de

var_system.txt:
 AMD K6-2, 64MB RAM

 
  Sigs:

sig_personal.txt:
 %fromname - mailto:%fromaddr
 %issignature

 
sig_business.txt:
 Mit freundlichen Gr��en,
  %fromname - mailto:%fromaddr
 %issignature
  
sig_technical.txt:
  %fromname - mailto:%fromaddr
 ................................................
 : with %include="f:\support\thebat\var_system.txt"
 : on %WINDOWSPLATFORMNAME %WINDOWSMAJORVERSION.%WINDOWSMINORVERSION 
 :%WINDOWSBUILDNUMBER%WINDOWSCSDVERSION
 %issignature
 
sig_tb.txt:
 .. %fromname ... mailto:%fromaddr
 :  using TB %thebatversion
 :  with %include="f:\support\thebat\var_system.txt"
 :. on %WINDOWSPLATFORMNAME %WINDOWSMAJORVERSION.%WINDOWSMINORVERSION 
 :%WINDOWSBUILDNUMBER%WINDOWSCSDVERSION
 %issignature

sig_gcs.txt
 .. %fromname ... mailto:%fromaddr
 : �eTeCo Coordinator      : %include="f:\support\thebat\var_url.txt"
 : zz-s community services : IRC jasticE
 ..........................: AIM jasticle
 %issignature

 Note the IRC and AIM nicks in this sig could/should be variable files too
 if you were consequent about the described concept :-)
 
 
  other stuff:

common.txt:
 %singlere

files for different cookies with different styles :-) Not in use atm.

template for tbudl address book entry:

-----
Morning sirs,

 %cursor

--
%include="f:\support\thebat\ident_pseudonym.txt"
%include="f:\support\thebat\sig_tb.txt"
%include="f:\support\thebat\common.txt"

-----
and the same thing for replys to the list:
-----
Morning sirs,

 %cursor

--
%include="f:\support\thebat\ident_pseudonym.txt"
%include="f:\support\thebat\sig_tb.txt"
%include="f:\support\thebat\common.txt"
%to=""%to="%ofromname [!udl] <%oreplyaddr>
-----



 Okay, any questions/suggestions/comments?


-- 
.. Jast ... mailto:[EMAIL PROTECTED]
:  using TB 1.41 Beta/3 
:  with AMD K6-2, 64MB RAM
:. on Windows 98 4.10 2222 A 



-- 
--------------------------------------------------------------
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team double click here:
   <mailto:[EMAIL PROTECTED]>
To Unsubscribe from TBUDL, double click here and send the message:
   <mailto:[EMAIL PROTECTED]>
--------------------------------------------------------------

You are subscribed as : [email protected]

Reply via email to