Is it possible to use redirect in a sieve to redirect to multiple addresses?
if header :contains “from” “test@example.com” { redirect “user1@example.com,user2@example.com”; }
I thought this would work, But I am seeing a “redirect address is invalid: not a single addres [sic] (found ‘,’).
-- I'll have what the gentleman on the floor is having.
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@example.com” { redirect “user1@example.com,user2@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@example.com","user2@example.com”]; Anyway, there's "copy" extension. So, this should work: require ["copy"] if header :contains “from” “test@example.com” { redirect :copy “user1@example.com”; redirect “user2@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
On Feb 10, 2016, at 12:18 AM, A.L.E.C <alec@alec.pl> wrote:
require ["copy"] if header :contains “from” “test@example.com” { redirect :copy “user1@example.com”; redirect “user2@example.com”; }
<sound of penny dropping>
Ah, right, that makes sense. Thanks.
-- Honesty may be the best policy, but insanity is a better defense.
Op 10-2-2016 om 10:30 schreef @lbutlr:
On Feb 10, 2016, at 12:18 AM, A.L.E.C <alec@alec.pl> wrote:
require ["copy"] if header :contains “from” “test@example.com” { redirect :copy “user1@example.com”; redirect “user2@example.com”; } <sound of penny dropping>
Ah, right, that makes sense. Thanks.
The copy extension is not needed here. The redirect action is explicit and will not be affected by cancellation of the implicit keep in the absence of ":copy".
Just keep in mind that the total number of redirects is limited (subject to configuration).
Regards,
Stephan.
participants (3)
-
@lbutlr
-
A.L.E.C
-
Stephan Bosch