Hi Brian,

It was foretold that on Saturday, October 13, 2001 at 01:21 GMT -0400,
Brian Clark [BC] would type:

BC> Argh. How about the %QuoteStyle? It's using the old %To for the
BC> initial. I'm assuming I'll need a regex here, because if I were to try
BC> to clear %OFrom, it would print it instead.

I'm not sure I understand what you mean.  Perhaps you could give me an
example please?

Of course you can generate your own initials with a regexp, and how
you use them is up to you.  I do this to limit the number of initials
used using the following series of templates:

Here is a step-by-step guide for getting this to work.

1. Create three quick templates (Options -> Quick Templates)
   a) Name the first one: "Initials"
               second:    "Full Name"
               third:     "Full Name - No AB entry"
   b) Make them all available to all accounts (this is optional, but
      you might as well).
   c) Paste in the following lines.
      Note: You may want to change the "Full Name.*" quick templates to
            give you the string from which you want the initials.
            (Does that sentence make sense?)

<Initials>
%SETPATTREGEXP="(?is)(\w).*?([-_=@\.\s]+(\w).*?)?([-_=@\.\s]+(\w).*?)?$"%-
%REGEXPBLINDMATCH="%QINCLUDE=""Full Name"""%-
%SUBPATT="1"%SUBPATT="3"%SUBPATT="5"%-

<Full Name>
%CAPITAL='%ABofromNAME="%QINCLUDE=""Full Name - No AB Entry"""'

<Full Name - No AB entry>
%SETPATTREGEXP="^(?(?=.*?\@)(.*?)\@|(.*)$)"%-
%REGEXPBLINDMATCH="%OFROMNAME"%-
%SUBPATT="1"%SUBPATT="2"%-


2. Once you've done that, you can check to see if they are working by
   replying to a message, then in the editor type Initials followed by
   <ctrl><space>.  If the initials of the person you're replying to
   appear, then you know it worked.

3. Now, in the template where you want to insert initials, put the
   following: %QuoteStyle='=%QINCLUDE="Initials"'
   Note: I have a quick template that looks at the X-mailer field and
         only uses the Initials when replying to someone using The
         Bat.  Let me know if you want that quick template as well.

4. Reply to a message and enjoy!

-- 
Thanks for writing,
 Januk Aggarwal

Using The Bat! 1.54/10 under Windows 98 4.10 Build 2222 A

This sentence lets you know this page was not a mistake.


-- 
______________________________________________________
Archives   : http://tbtech.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to