Hello Andrey,

On  Sun, 7 Jan 2001  at  08:52:17 GMT +0300 (which was 9:52 PM
where I live) witnesses say Andrey G. Sergeev (AKA Andris) typed:

> If the Print Template is regex-enabled, the solution could be:

It is.  I use them to prevent blank lines from being printed when
there are no CC or BCC recipients.

> %quotes="%SETPATTREGEXP=""(?is)(^-----BEGIN PGP 
>SIGNED.*?\n(Hash:.*?\n)?\s*)?(.*?)(^(-*?\s*?--\s*\n|_{40,}\s*\n|-----BEGIN PGP 
>SIGNATURE)|\z)""%REGEXPBLINDMATCH=""%text""%SUBPATT=""3"""

You need to change this to:

%SETPATTREGEXP="(?is)(^-----BEGIN PGP 
SIGNED.*?\n(Hash:.*?\n)?\s*)?(.*?)(^(-*?\s*?--\s*\n|_{40,}\s*\n|-----BEGIN PGP 
SIGNATURE)|\z)"%REGEXPBLINDMATCH="%text"%SUBPATT="3"

> Notes:
> - the regex above is a long string without any CR/LF;
> - you should use %Text macro instead of %Quotes.

But be careful when printing, this can cause problems for certain
messages.  For example you would strip too much of Andrey's message
when using this macro.

You might be better to use %CLIPBOARD rather than %TEXT.  Then you'd
need to copy the part of the text you want to print.  You could try
saving messages with the save template and printing them from some
external editor.  There is no fool proof way to get exactly what you
want stripped.  This especially problematic for the Print Templates.
 

-- 
Thanks for writing,
 Januk Aggarwal

 Using The Bat! 1.48f
 under Windows 98 4.10 Build 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