Hi Peter,

OK, let's see.

on Thursday, December 16, 1999, 7:44:46 PM GMT+0800, Peter Steiner wrote:

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

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

I will trust you on this, as I haven't fully understood the RegExp
syntax yet.

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

Correct logic.

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

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

Not quite. In Z notation, what you want is:

Subject'= "Re" + Subject\Replyparam

where Replyparam is "Re", "Aw" or "AW". Note that the original subject
has to be stripped off the original reply parameter. I trust that your
RegExp above has this "or" function and gives you the correct result.
However, Alex said before that RegExp's cannot replace, only find. I
don't know anything about this.

You have put the whole of what has to be done into the QT. Your
problem is that you suspect the calling of the QT from the reply
template does not work correctly. In order to check this, put the
contents of the QT into the reply template, do it straight without
using a QT, and try whether your algorithm (RegExp) works.

If it does not work, check the RegExp.
If it works, the call from reply template to QT is indeed wrong.

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

I think you have one set of quotation marks too many. Does this work?:

%Subject=""%Subject=%QInclude="strip-re-intl"

-- 

Cheers,
Thomas.  

Message reply created with The Bat! 1.38e
under Chinese Windows 98 4.10 Build 1998  
on a Pentium II/350 MHz.

-- 
--------------------------------------------------------------
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