Bonjour Zygmunt,
Samedi, le 19 janvier 2002 � 02h15 [GMT +0100] (ce qui correspond �
02h15 ici o� j'habite), Zygmunt Wereszczy�ski = [ZW] a �crit � Ginkyo :
ZW> Hello Alexis,
ZW> Instead of the Regexp macros used in the main Forward template you
ZW> should use a small trick wit Quick Templates. The problem was described
ZW> on TBTECH list some time ago (I don't remember when, but you use a smart
ZW> quotation based on this solution by Carsten Th�nges).
ZW> So, instead of following lines:
ZW>
%SETPATTREGEXP="(?im)(.*)(^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]{2,}[.][a-zA-Z]{2,4}$)(.*)"%-
ZW> %REGEXPBLINDMATCH="%TEXT"%-
ZW> %SUBPATT="1"%SUBPATT="3"%-
ZW> you should insert a call to Quick Template (QT) named "SFW" in the form
ZW> of %QINCLUDE="SFW". This QT uses a trick with recursive search of e-mail
ZW> addresses in message body. TB! doesn't provide variables, so the QT uses
ZW> the "Comment:" field of message header as the temporary variable.
ZW> ------ [ SFW QT ] -------
ZW> %REM='Initiatialize the COMMENT field'%-
ZW> %COMMENT='%TEXT'%-
ZW> %REM='Call the QT to recursive address removing'%-
ZW> %QINCLUDE='FWAD'%-
ZW> %REM='Insert the modified contents of COMMENT field'%-
ZW> %REM='into the forwarded message body'%-
ZW> %COMMENT%-
ZW> %REM='Reset COMMENT field to blank'%-
ZW> %COMMENT=''%-
ZW> ------ [ End of SFW ] ------
ZW> ------ [ FWAD QT ] -------
ZW> %REM='Does exist any address of form "xxx@yyy" in COMMENT field?'%-
ZW> %REM='If exists: Divide and rebuild COMMENT field'%-
ZW> %REM=' and call this template again.'%-
ZW> %REM='If not exists: exit without changing COMMENT field'%-
ZW> %-
ZW> %IF:'%-
ZW> %SETPATTREGEXP="(?ism)[a-zA-Z0-9\.\x5F\-]+@[a-zA-Z0-9\.\-]{2,}\.[a-zA-Z]{2,4}"%-
ZW> %REGEXPMATCH="%COMMENT"'<>''%-
ZW> :'%-
ZW> %COMMENT=~%-
ZW> %SETPATTREGEXP="(?ism)^(.*?)([a-zA-Z0-9\.\x5F\-]+@[a-zA-Z0-9\.\-]{2,}%-
ZW> \.[a-zA-Z]{2,4})(.*)"%-
ZW> %REGEXPBLINDMATCH="%COMMENT"%-
ZW> %SUBPATT="1"%-
ZW> %SUBPATT="3"~%-
ZW> %-
ZW> %QINCLUDE="FWAD"'%-
ZW> ------ [ End of FWAD ] ------
ZW> Please note the use of escaped characters in regexp pattern and hex code
ZW> of underline character. The underline "_" and tilde "~" in template
ZW> macros are used as quotes. Of course, you can reformat the message body
ZW> with %WRAPPED macro, etc...
Sorry for my delay
Thanks a lot for your quick response.
Thanks to all on this thread, and specially to Carsten Th�nges for his
participation on old QT (as written above) and for his new QT (which only works with
_one_ address msgid:[EMAIL PROTECTED]).
The old previous QT work like a charm except, as you know, for prob of wrapped text.
Could please help me again to implement wrap macro
(msgid:[EMAIL PROTECTED]) (thx januk):
%COMMENT="%QUOTES"%-
%QINCLUDE="wrap2"
%COMMENT=""%-
Sorry, but I didn't find where I can implement this macro
I'm confuse by :
ZW>"_" and "~" in template macros are used as quotes.
ZW> %COMMENT=~%-
it's here?
,-----= [ For finish, a last problem ;-) ] =-----
| But wrap macro doesn't arrive to detect space:
| ,-----= [ from msgid:[EMAIL PROTECTED] ] =-----
| | Yes, but that's what you've asked TB to do by wrapping. There is no
| | way (that I know of) to distinguish when a paragraph is poorly
| | wrapped, and when it is a list. You have to use a delimiter to show
| | where a new paragraph begins. The standard for plain text is a blank
| | line (ie two new-line characters).
| '-----=
| Apparently it is impossible!
|
| ,-----= [ a test message ] =-----
| | do u hv anything much on dementia, this is what took my grandmother from me. i
|would really appreciate any info, ty. olivia
| | do u hv anything much on dementia, this is what took my grandmother from me. i
|would really appreciate any info, ty. o
| |
| | do u hv anything much on dementia, this is what took my
| | xdfxcxwvcmjswdfvmljwxvjmcvjmxjcvxjcvmxcvmlkjxcklvmjxc
| '-----=
| ,-----= [ Result after a copy, wrap+CTRL+SPACE ] =-----
| | do u hv anything much on dementia, this is what took my grandmother
| | from me. i would really appreciate any info, ty. olivia do u hv
| | anything much on dementia, this is what took my grandmother from me.
| | i would really appreciate any info, ty. o
| | do u hv anything much on dementia, this is what took my
| | xdfxcxwvcmjswdfvmljwxvjmcvjmxjcvxjcvmxcvmlkjxcklvmjxc
| '-----=
'-----=
Thanks in advance
--
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]