sieve: store string list in varable
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@example.com", "porky.pig@example.com", "speedy.gonzales@example.com"] { fileinto "friends"; }
into something like this:
require ["fileinto", "variables"];
set "friends" ["daffy.duck@example.com", "porky.pig@example.com", "speedy.gonzales@example.com"]
if address :is "from" $friends { fileinto "friends"; }
Any ideas on this?
regards Knut
Op 12-2-2016 om 13:56 schreef whats_up@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@example.com", "porky.pig@example.com", "speedy.gonzales@example.com"] { fileinto "friends"; }
into something like this:
require ["fileinto", "variables"];
set "friends" ["daffy.duck@example.com", "porky.pig@example.com", "speedy.gonzales@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.
Op 2/15/2016 om 2:08 PM schreef whats_up@gmx.net:
This is one of those omissions in the Sieve standard. There is no way to have string list variables. ok. I want to check if the sender of a mail is in a list and then forward the mail to the list. Is there an alternative way without repeating the list?
This extension could provide some relief for your problem:
https://tools.ietf.org/html/rfc6134
But it is not currently implemented. There isn't anything else unfortunately...
Regards,
Stephan.
participants (2)
-
Stephan Bosch
-
whats_up@gmx.net