On Thu, 2011-04-28 at 14:44 +0200, Anders Johansson wrote:
On Thursday 28 April 2011 08:22:15 Roger Oberholtzer wrote:
I am using procmail to filter mail I receive from OBS into imap folders. I have a few places where the sorting goes wrong, and for the life of me I cannot see why.
Consider these two rules (in the procmail config file in this order): :0
* ^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? Yours sincerely, Roger Oberholtzer OPQ Systems / Ramböll RST Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________ Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org