On Sun, 04 Apr 2004, 20:17 GMT+02 Ruud H.G. van Tol wrote:
Toen ik Dallman Ross kietelde, kwam er dit uit:
Ruud:
Test-rc:
# VERBOSE = on
SPACE = " "
TAB = " "
NL = "
"
WSB = "$SPACE$TAB$NL"
WSL = "([$SPACE$TAB]|^)"
In my procmail (v3.22, 2001/09/10), both work.
In that case, WSB will be (slightly) faster than WSL.
Thanks, Ruud! Neat-o.
I saw Robert Allerstorfer using it and had doubts, because a literal
newline code inside a character-class is just odd.
Yes, I am using it since my very first release of the SoftlabsAV
procmail recipes (version 0.1 - released on 2004 02 29), without any
problems.
After Ruud suggested renaming that variable to something like WSE
(WhiteSpace Extended), to avoid confusion with the common used name
WS, I renamed it to WSB (which stands for "WhiteSpace [only used in]
Body") in version 0.3:
DQ = '"' SPC = " "
# Be sure that a literal tab is within the quotes of the TAB assignment: #
TAB = " "
NL = "
" WS = $SPC$TAB
# WhiteSpace that will only be used in Body conditions: #
WSB = $WS$NL
Maybe old procmails don't support it, see Jari's remark in
section 8.4 of this very outdated version of the pm-tips:
http://www.hcs.harvard.edu/~thurston/ua/pm-tips.html
Hm, I have searched procmail's history at
http://www.procmail.org/procmail.HISTORY.html
and could not find any mention about a change related to this. I can
confirm WSB to work fine with pm version 3.22 and 3.21.
And, if WSB is working faster than WSL *and* it works with (at least)
current pm versions, I think using WSB instead of WSL is a good
choice.
Also worth a visit:
http://pm-doc.sourceforge.net/pm-tips.html
That last one is the most recent pm-tips (1993).
Still a good read.
I guess you wanted to add 10 years here ;-)
$Id: pm-tips.txt,v 2.21 2003/09/02 09:49:14 jaalto Exp $
best,
rob.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail