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 <[email protected]> > 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"] "[email protected]" { >>> 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 "[email protected]" :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"] "[email protected]" { >>> 8: vacation :days 1 :addresses "[email protected]" :subject "Test >>> Vacation - Autoreply" "test auto reply"; >>> 9: } >>> 10: >>> >>> >>> -- >>> Yavor Shahpasov >>> yavosh.at.gmail.com >>> >>> "simplicity and flexibility beat optimization and power in a world >>> where connectivity is key" Adam Bosworth >>> >>> http://www.flickr.com/photos/yavo/4310154/ >>> _______________________________________________ >>> Dbmail-dev mailing list >>> [email protected] >>> http://twister.fastxs.net/mailman/listinfo/dbmail-dev >>> >>> > _______________________________________________ > Dbmail-dev mailing list > [email protected] > http://mailman-new.icns.fastxs.net/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 [email protected] http://mailman-new.icns.fastxs.net/cgi-bin/mailman/listinfo/dbmail-dev
