Hi Peter,

on Friday, December 17, 1999, 4:02:13 PM GMT+0800, Peter Steiner wrote:

PS>>> The normal way to replace the subject of a message is
PS>>> %SUBJECT=""%SUBJECT="Re: (This was the original subject)"

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

PS> What's Z notation?

It's a mathematical way of describing requirements, such as this. Not
important, as you understand the meaning of the below. (Actually, it
is not quite correct Z notation, as I had to use "+" and the correct
charactger is not on my keyboard. Never mind.)

>> Subject'= "Re" + Subject\Replyparam

PS> Almost Agreed, it should be "Re: " + Subject\Replyparam

I thought aobut this before I wrote my line. I wasn't sure whether you
RegExp stripped the ": " characters as well and thought it wouldn't.
Now I know it does.

PS> The stripping works well. A short explanation what the RegExp does,
PS> working from the inside out:
[...]

I understand this now.

>> Does this work?:
>> %Subject=""%Subject=%QInclude="strip-re-intl"

PS> No, it yields a subject "QInclude=" ... :-(

Hmmm. It should have worked. However, please try to put the RegExp
right into the reply template without using a QT. Like this:

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

I don't know whether this should work, as the parameter for %Subject
has three lines, and I have just concatenated them. I don't know
whether this is allowed. - Feel free to abandon the parenthesis.

How do you know that the RegExp works? Have you tried just putting it
(either the QT or the three-line REgExp) into the reply template, I
mean in the body of the message, not the subject? Does it show the
corrected subject?

If, yes, the problem may lie with the %Subject macro. Maybe it doens't
accept QT's at all?

-- 

Best regards,
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