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
>> 
>> "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
>> Dbmail-dev@dbmail.org
>> http://twister.fastxs.net/mailman/listinfo/dbmail-dev
>> 
>>
_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://mailman-new.icns.fastxs.net/cgi-bin/mailman/listinfo/dbmail-dev

Reply via email to