On Saturday, 12 July 2003, at 7:10:04 a.m., Carsten Th�nges wrote:

<snip, snip, snip>
> --8<---------------cut here---------------start------------->8---
> %SetPattRegExp='^X-POPFile-Link: <(.*?)>$'%-
> c:\programme\opera7\opera.exe "%RegExpMatch(%Headers)"
> --8<---------------cut here---------------end--------------->8---
<snip, snip, snip>

Well, that's one way to teach a macro-rookie how things work!

To quote from the help file:

REGEXPMATCH = "giventext "

*NOT* REGEXPMATCH( given text )

Still, I have my filter working now.  Main difference being I am using
%SUBPATT because I thought that might be part of the problem (and it
may be, but I can't be bother going back to check after all that!)

Also, WinXP didn't like the full path qualifying the iexplore.exe that
I substituted, so I had to do it with a CD first (see below).

Finally, I didn't understand the terminal "%-" on the first line, nor
the "?" in the parentheses.  Neither seem to be required?

Phew!

Complete (working) template is now as follows:

--8<---------------cut here---------------start------------->8---
%SetPattRegExp='^X-POPFile-Link: <(.*)>$'
%RegExpBlindMatch="%Headers"
C:
CD \Program Files\Internet Explorer
iexplore.exe "%SubPatt='1'"
--8<---------------cut here---------------end--------------->8---

Thanks for the blooding!   :-)

-- 
Regards,

Allister.


________________________________________________
Current version is 1.62r | "Using TBUDL" information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to