Hi Januk,

On Sunday, September 15, 2002 21:13 your local time, (Monday, 09:58 my
local time), you [JA] wrote:

SP>> How do I write a macro to accomplish the following:

JA> There are a couple of ways, one is to name your QT's creatively,

Thanks for the comprehensive solution Januk. I've decided to use:

%QINCLUDE="%-
%-%-%SETPATTREGEXP='(?im-s)^X-mailer:\s*(Client X|Client Y|Client Z|Default)\s*$'%-
%-%-%REGEXPMATCH='%HEADERS
X-Mailer: Default'"

This works well but have two problems with it:

1. How do I partially match the X-mailer headers? Right now it only
   matches the full headers i.e. it matches 'Qualcomm Eudora version
   5.0' but not 'Eudora'. This is crucial, otherwise I'll have to
   create different QTs for different versions; simply not possible.
   Having said that, it should be able to distinguish between Eudora &
   Eudora Lite or Outlook & Outlook Express.

2. 'X-mailer:default' portion is not working. Maybe I have not
   correctly understood something. Do I make a QT named 'Default'? I
   did but it's not working. It does not return any string despite
   X-mailer being absent from the headers.

-- 
Be Well,                       Sudip Pokhrel
Sudip                          Kathmandu-NP.
___________________            PGP Key ID: 0xD93F5185
TB! v1.61 on XP Pro|           http://pgpkeys.mit.edu
P4-1.6Ghz 256MB RAM|
___________________________________________________________________
Help stamp out, eliminate and abolish redundancy!
/"\  
\ /  ASCII Ribbon Campaign - Against HTML Mail
 X   
/ \


________________________________________________________
 Current version is 1.61 | "Using TBTECH" information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to