procmail
[Top] [All Lists]

Re: newline inside a character-class

2004-04-04 11:32:00
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.

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


A few days ago I mentioned these:

Here they are documented:
  http://pm-lib.sourceforge.net/pm-lib.html
Download:
  http://sourceforge.net/projects/pm-lib Files

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.

-- 
Grtz, Ruud

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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