* Dimstar / Dominique Leuenberger
On Thu, 2011-04-28 at 14:55 +0200, Roger Oberholtzer wrote:
* ^From:.*hermes@opensuse\.org * ^Subject:.*openSUSE_11\.2*
Shouldn't there be a dot before the 2? I'm not sure if procmail uses regular expressions, but if it does that means "0 or more instances of '2'" and would match openSUSE_11. regardless of what follows, no?
Hmm. I was expecting the \. to be an escaped period. Meaning that a literal period is needed to make a match. The period in the rule string should have no special regexp meaning and be satisfied only by a literal period at that place in the test string. Did I get this wrong?
Anders actually meant to have a . AFTER the 2, not before. .* represents 'any character, any number of times, including 0 times) --> ^Subject:.*openSUSE_11\.2.*
\. means a literal dot, . means 'anything'
Note: you have the same construct after Subject:.* => Any character after subject, how ever often.
Matching *anything* trailing the specified recipie is the default in procmail, ie: the regex to match trailing information is superfulous. * ^Subject:.*openSUSE_11\.2 and * ^Subject:.*opensuse_11\.2* will match the same lines. Promail is not case sensitive unless the recipie is flagged as such and the matching regex does not consider anything following the regex. -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org