Hi there!
On 30 Jan 00, at 18:11, Allie Martin wrote
about "Re: Signature Thing Frustration":
> > So the regexp for TB should be something like
>
> > %REGEXPQUOTES="(?s)(.*?)^(-\s)?--(\s)?\n"
>
> Well, it works. But only if the sig delimiter is either a
> '--<space>' or a '--'.
And what if it is "- --<newline>" or "- -- <newline>"? It should work in this
case, too, at least I hope so;-)
> If I use a limiter such as --- or - then nothing gets quoted. Not even the
> message body.
Aha, indeed. I didn't think about this;-( Needs to be corrected as follows,
probably:
%REGEXPQUOTES="(?s)(.*?)(^(-\s)?--(\s)?\n|\Z)"
Here extra definitions can be added if you think some other strings can be
treated as sig separators. For example, if you wanna add matching of "---
<newline>" (and then, for the case of PGP-signed messages, "- ---
<newline>") with maybe one trailing space before <newline>, you can use:
%REGEXPQUOTES="(?s)(.*?)(^(-\s)?--(\s)?\n|^(-\s)?---(\s)?\n|\Z)"
And so on;-)
P.S. This time I've checked this in two cases: without sig separator of any
kind and with this sig separator: "- ---<newline>". Seems to work.
P.P.S. I'm cc'ing this to TBUDL: anyhow, who has to test it? <g>
--
SY, Alex
(St.Petersburg, Russia)
http://mph.phys.spbu.ru/~akiselev
---
Thought for the day:
OS/2...Opens up Windows, shuts up Gates.
---
PGP public keys on keyservers:
0xA2194BF9 (RSA); 0x214135A2 (DH/DSS)
fingerprints:
F222 4AEF EC9F 5FA6 7515 910A 2429 9CB1 (RSA)
A677 81C9 48CF 16D1 B589 9D33 E7D5 675F 2141 35A2 (DH/DSS)
---
--
--------------------------------------------------------------
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]>
--------------------------------------------------------------