sieve: store string list in varable

Stephan Bosch stephan at rename-it.nl
Fri Feb 12 13:18:55 UTC 2016



Op 12-2-2016 om 13:56 schreef whats_up at gmx.net:
> Hi,
>   
> I'm working on a Sieve script and want to store a list of addresses in a variable to easily access the list multiple times later.
>   
> For example I want to transform this:
>   
>
> if address :is "from" ["daffy.duck at example.com", "porky.pig at example.com", "speedy.gonzales at example.com"] {
>      fileinto "friends";
> }
>
>   
> into something like this:
>   
>
> require ["fileinto", "variables"];
>
> set "friends"  ["daffy.duck at example.com", "porky.pig at example.com", "speedy.gonzales at example.com"]
>
> if address :is "from" $friends {
>      fileinto "friends";
> }
>
>   
> Any ideas on this?

This is one of those omissions in the Sieve standard. There is no way to 
have string list variables.

Regards,

Stephan.


More information about the dovecot mailing list