Store the state of reply and forward settings being enabled

This commit is contained in:
Pierre Jaury
2016-05-04 16:12:56 +02:00
parent a1d0eca859
commit 9efc798246
8 changed files with 16 additions and 28 deletions

View File

@@ -1,14 +1,10 @@
require ["variables", "vacation", "vnd.dovecot.extdata"];
if string :is "${extdata.reply_subject}" "" {
} else {
if ${extdata.reply_enabled} {
vacation :days 1 :subject "${extdata.reply_subject}" "${extdata.reply_body}";
}
if string :is "${extdata.forward}" "" {
} else {
redirect "${extdata.forward}";
if ${extdata.forward_enabled} {
redirect "${extdata.forward_destination}";
keep;
}