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; }