Thanks for your response. Unfortunately I'm way out of my depth here
and don't particularly want to learn the ins and outs of RegEx .... I
just need to set up this sig and ad strip for now
on 11/06/2003 Bill wrote:
BM> A simply reformatting and using PCRE Extended, produces:
BM> ----8<----------------------------------
BM> %quotes='%SETPATTREGEXP="(?isx)
BM> ( # Skip any PGP Signed stuff
BM> (\s*)?\n?
BM> -----BEGIN\sPGP\sSIGNED.*?\n
BM> (
BM> Hash:.*?\n
BM> )?\s*
BM> )?
BM> (.*?) # Here is the capture
BM> (^
BM> ( # Up to one of these
BM> -*?\s*?--\s*\n
BM> |
BM> _{40,}\s*\n
BM> |
BM> \n-----BEGIN\sPGP\sSIGNATURE.*s?\n
BM> |
BM> -+\s+.*roups.*~--\>
BM> )
BM> | # or this
BM> \n+Get\syour\sFREE\sdownload
BM> | # or none of the above
BM> \z
BM> )"%REGEXPBLINDMATCH="%text"%SUBPATT="4"'
BM> ----8<----------------------------------
BM> Which line or construct do you need help with?
truth is I don't know
still going through the regex tutorial trying to work out what these
expressions mean.
Carsten wrote:
ct> Just delete
ct>
ct> %quotes='
ct>
ct> in the first and
ct>
ct> '
ct>
ct> in the last line.
I assume this was to reply as text rather than as quotes. I don't
understand this, but doing it was
quite helpful, as modified messages now come out with:
%REGEXPBLINDMATCH="............."
with the dots representing the match.
Great! It means I know what the macro's doing now. However, the macro
is still matching sigs and ads at the bottom of messages - I mean,
these sigs and ads are within the quotations. Here are two sigs it is
still including:
_________________________________________________________________
Mit dem MSN Messenger eine Reise f�r 4 Personen nach Barcelona gewinnen �
jetzt mitmachen! http://www.sweepstakes2003.com/entry.aspx?locationid=15
"
__________________________________________________
Yahoo! Plus - For a better Internet experience
http://uk.promotions.yahoo.com/yplus/yoffer.html"
These are the only two I have tested so far, although it has also not
excluded my basic mailto: URL, which I would also like to filter out
if I can ... (yes I'm very demanding for a novice)
The comments in the macro library aren't very explicit about this
macro.
I don't know if the macro is supposed to filter ALL signitures or merely specific ones?
And I don't know what the criteria are that it uses to detect sigs and ads?
Your breakdown above Bill was helpful. My fumbling decoding efforts
suggest that the macro looks to exclude lines beginning with
_underscores_, or the message "get your free download". I don't
understand the 'none of the above' bit.
Do I need to add sig specific texts in the macro in order for it to
exclude them?
Also, if it seeks to exclude _underscore_ lines, why didn't it exclude
the two sigs above?
Phew!
--
dajabo
____________________________________________
The Bat! 1.62r on Windows 2000
Service Pack 3
2195 5 0
________________________________________________
Current version is 1.62r | "Using TBUDL" information:
http://www.silverstones.com/thebat/TBUDLInfo.html