On Thu, 16 Dec 1999 03:19:27 +0300, Alexander V. Kiselev wrote:

>>  I just was wondering if regexps would allow to replace the
>>  AW:'s and whatnot generated by localized versions of LookOut by a
>>  Re[x] in a reply? Maybe together with the new recounter macros?

> It's *very* easy indeed to convert AW: to Re:, but I cannot see 
> how is it possible to convert AW: to Re[n]:.... TB's regexps 
> currently don't allow replacing, only straightforward matching:-(

> But guys, I've already done my share of regexping TB, *you*
> are using it, *i* don't (since i'm still riding the winged horse:-)). 
> Anybody else volunteering? If not, I'll probably invent somethingo
> for you tomorrow evening... It's late night here right now... 

Okay, my try :-)

The macros for stripping down all Re:'s and Aw:'s look like:

%SETPATTREGEXP="(?i)((Re|Aw)\:\s*)*(.*)"
%REGEXPBLINDMATCH="%OSUBJ"
Re: %SUBPATT="3"

Lets make a QuickTemplate and name it strip-re-intl; it gives you
(in the message body): "Re: (original subject without re and aw's)"

But this works not for the Subject line, unless somebody can tell
how to nest quotes. The normal way to replace the subject of a
message is

%SUBJECT=""%SUBJECT="Re: (This was the original subject)"

Using recursive QuickTemplates involves the quoted handle of the QT,
and the subject macro quotes its text too. So, assuming the QT
handle strip-re-intl, my first approach was:

%SUBJECT=""%SUBJECT="%QINCLUDE="strip-re-intl""

but that doesn't work. I tried using ' instead of " and escaping the
quote with a Backslash, a second quote or a percent sign, but
nothing worked :-(

Does anybody know how to solve this problem?

Peter
-- 
Peter Steiner <[EMAIL PROTECTED]>        PGP-ID 0x02850F53 (DH/DSS)
PGP Fingerprint 68AB D08E D995 41B4 C6FD  639D 9B94 D249 0285 0F53
"Schtill! Was ziberlet dert n�bem Tobel�hli
z grachtige n uuf u aab?" - Franz Hohler

-- 
--------------------------------------------------------------
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team double click here:
   <mailto:[EMAIL PROTECTED]>
To Unsubscribe from TBUDL, double click here and send the message:
   <mailto:[EMAIL PROTECTED]>
--------------------------------------------------------------

Reply via email to