[Dovecot] Dovecot 2.0.13 and sieve

Claudio Prono claudio.prono at atpss.net
Wed Jun 22 14:36:55 EEST 2011



Il 14/06/2011 23.01, Stephan Bosch ha scritto:
> Op 14-6-2011 10:06, Claudio Prono schreef:
>> Hello all,
>>
>> I am testing Dovecot 2.0.13, with sieve for the vacation.
>>
>> I have some problems with the :regex as i can see...
>>
>> An example:
> <snip/>
>
> I didn't know Horde Ingo produces such horribly ugly Sieve code; the
> header checks are unnecessary and the regexes are highly convolved and
> should probably be substituted with a `date' test.
>
> <snip/>
>> No vacation is performed.....
>>
>> Then, if i modify the script commenting all the regex for the date, the
>> result is the following:
> <snip/>
>
>> But the date is right:
>>
>> date
>> Fri Jun 10 17:22:14 CEST 2011
>>
>> So, what is wrong? Any help is well accepted, that script with dovecot
>> 1.x is working correctly.... So, what is changed in dovecot 2.0 sieve?
>
> I'm currently on vacation and I can't quite get my head around these
> regexes. The best thing you can do now is debug it in more detail by
> using the sieve-test trace debugging features (using -t and -T
> options), as documented in the man page. This way, you can see what is
> matched how and which actions are performed. Then, you can narrow it
> down to one specific failing test.
>
> Regards,
>
> Stephan.
>
I have tryied with the debug level higher of sieve-test, and the result
is the following:

sieve-test -t - -Tlevel=matching /tmp/.dovecot.sieve
1308741872.M858197P18322.mail2\,S\=1138\,W\=1168

      ## Started executing script '.dovecot'
   7: exists test
   7:   header `list-help' is missing
   7:   headers are missing
   7: jump if result is true
   7:   not jumping
   7: header test
   7:   starting `:is' match with `i;ascii-casemap' comparator:
   7:   extracting `Precedence' headers from message
   7:   finishing match with result: not matched
   7: jump if result is true
   7:   not jumping
   7: header test
   7:   starting `:matches' match with `i;ascii-casemap' comparator:
   7:   extracting `To' headers from message
   7:   matching value `claudio <claudio at mediaservice.net>'
   7:     with key `Multiple recipients of*' => 0
   7:   finishing match with result: not matched
   7: jump if result is true
   7:   not jumping
   8: header test
   8:   starting `:regex' match with `i;ascii-casemap' comparator:
   8:   extracting `Received' headers from message
   8:   matching value `from private (charon.mediaservice.net
[213.254.20.254])'
   8:     with regex `^.*(2011) (\(.*\) )?..:..:.. (\(.*\)
)?(\+|\-)....( \(.*\))?$' [id=0] => 0
   8:   finishing match with result: not matched
   8: jump if result is false
   8:   jumping to line 19
        ## Finished executing script '.dovecot'


Performed actions:

  (none)

Implicit keep:

 * store message in folder: INBOX

sieve-test(root): Info: final result: success

As i can see, the regex of the year is not matching.... but why? Also,
the other regex for the Month or the day, are not matching (tested
commented out).

Any hint?

Cordially,

Claudio Prono.


-- 

--------------------------------------------------------------------------------
Claudio Prono                         OPST
System Developer               
                                      Gsm: +39-349-54.33.258
@PSS Srl                              Tel: +39-011-32.72.100
Via San Bernardino, 17                Fax: +39-011-32.46.497
10141 Torino - ITALY                  http://atpss.net/disclaimer
--------------------------------------------------------------------------------
PGP Key - http://keys.atpss.net/c_prono.asc






More information about the dovecot mailing list