Sieve and handling multiple addresses

at lbutlr at lbutlr
Sun Jul 19 15:49:47 EEST 2020



> On 19 Jul 2020, at 04:58, @lbutlr <kremels at kreme.com> wrote:

[stuff]

I have this:

if address :is :localpart ["to", "cc"] "kremels" {
        if allof (address :count "ge" :comperator "i;ascii-numeric" ["to", "cc"] ["2"],
                  not exists ["list-id","mailing-list", "x-loop"] )
        {
                fileinto :create "listCC";
        }
}

I get:
.active_sieve: line 55: error: unknown tagged argument ':comperator' for the address test (reported only once at first occurrence).
.active_sieve: error: validation failed.

<https://tools.ietf.org/html/rfc5231#section-6> says:

> Using the message:
> 
>       received: ...
>       received: ...
>       subject: example
>       to: foo at example.com, baz at example.com
>       cc: qux at example.com
> 
>    The test:
> 
>       address :count "ge" :comparator "i;ascii-numeric"
>                       ["to", "cc"] ["3"]
> 
>    would evaluate to true,

Soooo… I'm a bit befuddled by this error as other Than the '3' the lines in the example are identical, right? Am I missing something?





-- 
Anyhoo, they hung me. Fen out bitches.



More information about the dovecot mailing list