From dbbad49f66e8d4e36fbb8112db757a236ab68b83 Mon Sep 17 00:00:00 2001 From: Pierre Jaury Date: Sun, 29 May 2016 15:54:53 +0200 Subject: [PATCH] Handle vacation messages properly --- dovecot/sieve/before.sieve | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dovecot/sieve/before.sieve b/dovecot/sieve/before.sieve index 6efbfd2f..43db1145 100644 --- a/dovecot/sieve/before.sieve +++ b/dovecot/sieve/before.sieve @@ -1,10 +1,10 @@ require ["variables", "vacation", "vnd.dovecot.extdata"]; -if ${extdata.reply_enabled} { +if string :is "${extdata.reply_enabled}" "1" { vacation :days 1 :subject "${extdata.reply_subject}" "${extdata.reply_body}"; } -if ${extdata.forward_enabled} { +if string :is "${extdata.forward_enabled}" "1" { redirect "${extdata.forward_destination}"; keep; }