Hi Brian,

Historians believe that Mon, 5 Feb 2001 at 02:24 GMT -0500 was when,
Brian Clark [BC] typed the following:

<snip>
BC> I'm just trying to add in a single sentence if, and only if, the
BC> sender is using HTML or Rich-Text settings.

BC> I'm guessing the "..and only if" part of that last sentence means I
BC> can't do this.

You're using TB.  "can't" shouldn't enter your vocabulary very often.
;-)

Your best bet is to have two conditional regexps:

<regexp>
%WRAPPED='%SETPATTREGEXP="(?is)^Content-type:\s*(?(?=multipart/mixed).*?;-^-;(.*))"%REGEXPBLINDMATCH="%HEADERS;-^-;The
 next HTML message that comes in here bites the dust"%SUBPATT="1"
%SETPATTREGEXP="(?is)^Content-type:\s*(?(?=text/html).*?;-^-;(.*))"%REGEXPBLINDMATCH="%HEADERS;-^-;I
 don't want no stinkin' HTML"%SUBPATT="1"'
</regexp>

I'm sure you can figure out where to put your sentence in these two...
:-) .

Note: you could have the sentence in a quick template and %QINCLUDE it
into the blind match. Just make sure you keep the delimiter ";-^-;"
intact.

Also Note: You can easily add more content-types by just copying one
of the two and changing the "(?= ... )".
-- 
Thanks for writing,
 Januk Aggarwal

 Using The Bat! 1.49c under Windows 98 4.10 Build 2222  A

 I should probably engage that largish, grey organ lurking inside of my
skull a bit more often. I think it's called a brain.   -- Simon

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

Reply via email to