Serge, I didn't have an issue with double slashes, but with the regexp not matching my received headers' date format. Looking at the diff involved, the scripts didn't match the timezone after the timestamp. Since those weren't needed to begin with I stripped those parts of the regexp.
Serge Chernyavsky wrote: > Hi! > > Paul, which part of it do you find crappy? > > I had the same issue under dbmail 2.2.9 which went away after I changed > double backslashed regexes to a single backslahed in Ingo. > I thought it's an Ingo bug and wrote their mailing list but was sent to > http://tools.ietf.org/id/draft-murchison-sieve-regex-08.txt which says > that "Unlike [POSIX.2], a double-backslash is required as per section > 2.4.2 of [SIEVE]." > > Please advise. > > Sergey > >> Aaron, >> >> Don't waste your time. It's ingo generating crappy regular expressions. >> People using postfix for their MTA should use the patch against ingo >> I've posted earlier. >> >> Aaron Stone wrote: >>> Yavor and Petteri, could you each send me a Received header from your >>> system so that I have something to debug the regex against? >>> >>> >>> On Wed, 4 Mar 2009 05:15:10 -0800 (PST), petteri larjos <p...@etla.fi> >>> wrote: >>>> I'll have exactly the same problem. I am running dbmail 2.2.8 and >>>> horde-webmail v1.2.2. >>>> >>>> >>>> Petteri Larjos >>>> >>>> >>>> Yavor Shahpasov wrote: >>>>> I am ahving problems getting horde ingo to work for me. >>>>> >>>>> When I enable the date range the vacation filter stops working. If I >>>>> get rid of the dates is starts working again. Is there any way to >>>>> debug the sieve script to see why this is not working. >>>>> >>>>> Below are the scripts with and without the date applied to them >>> >>> And by "date range" you mean "giant regular expression"... yuck! >>> >>> I'll do some debugging and see if there's a regex problem on libSieve. >>> There might also be a mismatch in the Received headers for your system, >>> if Ingo is expecting a precise format that your final MTA is not >>> providing. >>> >>> Aaron >>> >>> >>> >>>>> Does not work >>>>> >>>>> 1: # Sieve Filter >>>>> 2: # Generated by Ingo (http://www.horde.org/ingo/) (June 18, 2008, >>>>> 7:39 >>>>> pm) >>>>> 3: >>>>> 4: require ["vacation", "regex"]; >>>>> 5: >>>>> 6: # Vacation >>>>> 7: if not address :all :comparator "i;ascii-casemap" :is ["From", >>>>> "Sender", "Resent-From"] "va...@fbmecs.com" { >>>>> 8: if header :regex "Received" "^.*(2008) (\\(.*\\) )?..:..:.. >>>>> (\\(.*\\) )?(\\+|\\-)....( \\(.*\\))?$" { >>>>> 9: if header :regex "Received" "^.*(Jun) (\\(.*\\) )?.... >>>>> (\\(.*\\) )?..:..:.. (\\(.*\\) )?(\\+|\\-)....( \\(.*\\))?$" { >>>>> 10: if header :regex "Received" "^.*(17|18|19|20) (\\(.*\\) >>>>> )?... (\\(.*\\) )?.... (\\(.*\\) )?..:..:.. (\\(.*\\) )?(\\+|\\-)....( >>>>> \\(.*\\))?$" { >>>>> 11: vacation :days 1 :addresses "v...@fbmecs.com" :subject "Test >>>>> Vacation - Autoreply" "test auto reply"; >>>>> 12: } >>>>> 13: } >>>>> 14: } >>>>> 15: >>>>> 16: } >>>>> 17: >>>>> >>>>> Works >>>>> >>>>> 1: # Sieve Filter >>>>> 2: # Generated by Ingo (http://www.horde.org/ingo/) (June 18, 2008, >>>>> 7:41 >>>>> pm) >>>>> 3: >>>>> 4: require ["vacation", "regex"]; >>>>> 5: >>>>> 6: # Vacation >>>>> 7: if not address :all :comparator "i;ascii-casemap" :is ["From", >>>>> "Sender", "Resent-From"] "va...@fbmecs.com" { >>>>> 8: vacation :days 1 :addresses "v...@fbmecs.com" :subject "Test >>>>> Vacation - Autoreply" "test auto reply"; >>>>> 9: } >>>>> 10: >>>>> >>>>> >>>>> -- >>>>> Yavor Shahpasov >>>>> yavosh.at.gmail.com > _______________________________________________ > Dbmail-dev mailing list > Dbmail-dev@dbmail.org > http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev > -- ________________________________________________________________ Paul Stevens paul at nfg.nl NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31 The Netherlands________________________________http://www.nfg.nl _______________________________________________ Dbmail-dev mailing list Dbmail-dev@dbmail.org http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev