procmail
[Top] [All Lists]

Re: [procmail] Ruleset for W32(_dot_)Swen(_dot_)A(_at_)mm?

2003-09-20 03:57:28
Toen ik John Iverson kietelde, kwam er dit uit:

 Would
  * $  $GO^0  ^From:[$WS]+\/.*
be better written as
  * $  $GO^0  ^From:.*\/[^$WS].*


Since '\/' is greedy to the left, I think you are right 
that the '+' isn't doing much, and the match will start 
from the 2nd character after the colon.(*) So if there 
is more than one whitespace-token directly after the 
colon, MATCH will start with whitespace. 

Classic approach:

   * $  $GO^0  ^From:[$WS]*\/[^$WS].*

or indeed

   * $  $GO^0  ^From:.*\/[^$WS].*


But hey, that's all theory from a not necessarily fresh 
mind, so test it.

-- 
Affijn, Ruud

(*) unless narrow characterclasses such as [$WS] have 
priviliges above the wide .*, but I don't think so

_______________________________________________
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>