Bonjour TBTECH,
Could you please help me for a regexp?
Objective:
(In automatic filter, in template msg for "Forward to action")
Remove all instance of string of e-mail in body message, for forward
a msg without e-mail (our privacy policy)
My solution:
match any any text (pattern1) until "From: 'email' " (pattern2) and match any
text (pattern 3).
Display only pattern1 and Pattern3.
=>prob: if an email is in the body it's not remove..
Other solution ? better solution?
<Tools:>
regexp e-mail is: ^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]{2,}[.][a-zA-Z]{2,4}$
ok ?
</Tools:>
<Template>
Date : %ODate, %OTimeLong
%SETPATTREGEXP="(?im)(.*)(^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]{2,}[.][a-zA-Z]{2,4}$)(.*)"%-
%REGEXPBLINDMATCH="%TEXT"%-
%SUBPATT="1"%SUBPATT="3"%-
%SUBJECT="%OSUBJ (without comment)"%-
%FROM=""%-
%FROM="[EMAIL PROTECTED]"%-
%REPLYTO=""%-
%REPLYTO="[EMAIL PROTECTED]"%-
======================================================================
No answer needs to be formulated.
</Template>
,-----= [ Example of body msg ] =-----
| Date: 11-Jan-02
|
| Feedback from PUB on http://www.healthandage.com/Home/gid2=1671
|
| Title: NSAIDs
|
| Author: BOB
|
| Rating:
| Quality: Excellent
| Level: Just right
|
| (NEWSLETTER REQUESTED)
|
| From: [EMAIL PROTECTED]
|
|
| Message:
| I have some questions on your article <snip>
| appreciate any info, toto [EMAIL PROTECTED]
'-----=
Thanks in advance for all of your help .
--
Best regards,
Alexis Haeringer mailto:ginkyo[arobase]gmx.fr
(alias ginkyo)
Ma clef PGP : mailto:pgp1[arobase]ginkyo.org
Using The Bat! v1.54 Beta/30 on Windows NT 5.0 Build 2195 Service Pack 2
--
______________________________________________________
Archives : http://tbtech.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]