sieve: store string list in varable

whats_up at gmx.net whats_up at gmx.net
Fri Feb 12 12:56:49 UTC 2016


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?
 
regards Knut


More information about the dovecot mailing list