Multiple vacation

Christian Kivalo
2015-09-08T15:39:42Z

Am 08. September 2015 17:15:13 MESZ, schrieb Michele Locati <mlocati at
gmail.com>:
>Hi all
>
>I'm using Dovecot 2.2.9 and I'm having problems configuring multiple
>vacation actions.
>The problem is that I'd like to have two different senders and two
>different messages, selecting the correct case by the recipient email
>address.
>I mean, if someone writes me to my email address
>"to-address1 at example.com"
>I'd like to answer from "from-address1 at example.com" with
the message
>"TEST
>1".
>If someone writes me to my email address "to-address2 at
example.com" I'd
>like
>to answer from "from-address2 at example.com" with the message
"TEST 2".
>
>Here's my script:
>
>require ["fileinto","vacation"];
>
>vacation :addresses ["to-address1 at example.com"] :from "
>from-address1 at example.com" text:
>TEST 1
>.
>;
>}
>
>vacation :addresses ["to-address2 at example.com"] :from "
>from-address2 at example.com" text:
>TEST 2
>.
>;
>
>
>But the vacation filter doesn't work, and I see this message in the log
>file:
>
>main script: line X: error: duplicate vacation action not allowed
>(previously triggered one was here: main script: line Y).
>
>Is there a way to allow multiple vacation actions?

Should be possible with an if elsif clause.

eg

If address :is "to" "address 1" {
vacation1
} elsif address :is "to" "address 2" {
vacation2
}

Look at the sieve configuration examples at
http://wiki2.dovecot.org/Pigeonhole/Sieve/Examples

Also take a look at the sieve vacation RFC, part 4.8, Examples at
https://tools.ietf.org/html/rfc5230#section-4.8

>Thank you
>Michele

Regards
- c