procmail
[Top] [All Lists]

Re: Can't get action | to work

2006-03-28 07:35:39
fleet(_at_)teachout(_dot_)org schreef:

* $ ^Subject:$WS\/.*$


About MATCH-ing, pm-tips, 6.13:

FORCE THE RIGHT HAND SIDE TO MATCH AT LEAST ONE CHARACTER
Remember that only the right side is greedy; the left side is stingy,
and left-side stinginess takes precedence over right-side greed.



I like this (Perlerish) approach:

  $WS = '     '  # 2 characters: a space and a tab, CHR(32) + CHR(9)
  $b  = "[$WS]"  # some horizontal blanks
  $s  = "($b|$)" # those blanks, plus newline
  $S  = "[^$WS]" # not those blanks, nor newline

  *$ ^Subject:.*\/$S.*

-- 
Groet, Ruud


____________________________________________________________
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