procmail
[Top] [All Lists]

Re: Problems with space

2005-11-25 06:31:44
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 24 Nov 2005 22:10:33 +0100, Ruud H.G. van Tol wrote:

Frank, you keep replying only to me. Change that to: only to the
procmail-list.

Sorry for that - too many things to do at the same time.


I found what my problem probably is:  My trigger strings contain "$"
character.  Properly escaped as "\$", but I believe it is interpreted
some way I do not fully understand.

Change the \$ to [$] to make it survive any reparsing.


In particular:  Regexp ' \$[a-z]+' properly catches words starting
with "$" that have at least one space in front of them.  However, if
used in conjunction with "${SPACE}", it sometime catches a perfectly
normal word at the beginning of a new line that has no "$" in it.

A bare $ matches a newline.

That's not what I meant.  What I meant was that ' \$[a-z]+' works as 
expected, but '${SPACE}\$[a-z]+' sometimes catches a word at the beginning 
of a new line which (the word) does not contain any "$".

Thanks very much for you help, I'll do the verbose logging as soon as I find 
some time to dedicate to this problem.

Cheers


Frank Bures, Dept. of Chemistry, University of Toronto, M5S 3H6
fbures(_at_)chem(_dot_)toronto(_dot_)edu
http://www.chem.utoronto.ca
PGP public key: http://pgp.mit.edu:11371/pks/lookup?op=index&search=Frank+Bures
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0 OS/2 for non-commercial use
Comment: PGP 5.0 for OS/2
Charset: cp850

wj8DBQFDhwKjih0Xdz1+w+wRAlqyAJ9A3fRih95yDtNt2WLt5rx/yMQnjQCaA5wt
XkgfpfZXvpoyvH8ehtoiyQ4=
=JK6i
-----END PGP SIGNATURE-----



____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>