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 <[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
_______________________________________________
Dbmail-dev mailing list
[email protected]
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev

Reply via email to