Hi Alexis,
AH> Objective:
AH> (In automatic filter, in template msg for "Forward to action")
AH> Remove all instance of string of e-mail in body message, for forward
AH> a msg without e-mail (our privacy policy)
[...]
AH> <Tools:>
AH> regexp e-mail is: ^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]{2,}[.][a-zA-Z]{2,4}$
AH> ok ?
AH> </Tools:>
Looks good, but I don't know if this is 100% okay ;-)
AH> <Template>
AH> Date : %ODate, %OTimeLong
AH>
%SETPATTREGEXP="(?im)(.*)(^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]{2,}[.][a-zA-Z]{2,4}$)(.*)"%-
AH> %REGEXPBLINDMATCH="%TEXT"%-
AH> %SUBPATT="1"%SUBPATT="3"%-
AH> %SUBJECT="%OSUBJ (without comment)"%-
AH> %FROM=""%-
AH> %FROM="[EMAIL PROTECTED]"%-
AH> %REPLYTO=""%-
AH> %REPLYTO="[EMAIL PROTECTED]"%-
AH> ======================================================================
AH> No answer needs to be formulated.
AH> </Template>
This one only works with _one_ address. Something like
%SETPATTREGEXP="(?im)(.*)([a-zA-Z0-9._-]+@[a-zA-Z0-9.-]{2,}[.][a-zA-Z]{2,4}$)?(.*)%-
[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]{2,}[.][a-zA-Z]{2,4}$)(.*)?%-
[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]{2,}[.][a-zA-Z]{2,4}$)(.*)?%-
[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]{2,}[.][a-zA-Z]{2,4}$)(.*)?%-
[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]{2,}[.][a-zA-Z]{2,4}$)(.*)? ...
%REGEXPBLINDMATCH="%TEXT"%-
%SUBPATT="1"%SUBPATT="3"%SUBPATT="5"%SUBPATT="7"%SUBPATT="9"%...SUBPATT="n"%-
_could_ work (not tested) with up to n mail addresses.
But you can solve the problem with the help of recursive
"replace all" quicktemplates.
qt a: - %comment="%text"
- qinclude="b"
qt b: - test: is there an email pattern in comment
- if no: print whole comment
exit
- if yes: print comment until first appearence of mail pattern
(insert replace string, empty in this case)
cut printed part + mail address from comment
call b again
Also take a look at the footnote[1] qts. Comment is parsed for
(FB:.*?#) here...
I didn't test that, too. But it should work :-)
[1] msgid:[EMAIL PROTECTED] and replys
--
Best regards, Carsten
The Bat! (v1.54 Beta/30) Business
Windows NT 5.0 (Build 2195) Service Pack 2, PGP 0xe2d25323
--
______________________________________________________
Archives : http://tbtech.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]