Sieve question
A.L.E.C
alec at alec.pl
Wed Feb 10 07:18:39 UTC 2016
On 02/10/2016 02:18 AM, @lbutlr wrote:
> Is it possible to use redirect in a sieve to redirect to multiple addresses?
>
> if header :contains “from” “test at example.com” {
> redirect “user1 at example.com,user2 at example.com”;
> }
I never tried, but according to RFC redirect argument is supposed to be
an email address, so even a list is not allowed, but you may try
redirect [“user1 at example.com","user2 at example.com”];
Anyway, there's "copy" extension. So, this should work:
require ["copy"]
if header :contains “from” “test at example.com” {
redirect :copy “user1 at example.com”;
redirect “user2 at example.com”;
}
--
Aleksander 'A.L.E.C' Machniak
Kolab Groupware Developer [http://kolab.org]
Roundcube Webmail Developer [http://roundcube.net]
---------------------------------------------------
PGP: 19359DC1 @@ GG: 2275252 @@ WWW: http://alec.pl
More information about the dovecot
mailing list