Store the state of reply and forward settings being enabled
parent
a1d0eca859
commit
9efc798246
@ -1,14 +1,10 @@
|
|||||||
require ["variables", "vacation", "vnd.dovecot.extdata"];
|
require ["variables", "vacation", "vnd.dovecot.extdata"];
|
||||||
|
|
||||||
if string :is "${extdata.reply_subject}" "" {
|
if ${extdata.reply_enabled} {
|
||||||
|
|
||||||
} else {
|
|
||||||
vacation :days 1 :subject "${extdata.reply_subject}" "${extdata.reply_body}";
|
vacation :days 1 :subject "${extdata.reply_subject}" "${extdata.reply_body}";
|
||||||
}
|
}
|
||||||
|
|
||||||
if string :is "${extdata.forward}" "" {
|
if ${extdata.forward_enabled} {
|
||||||
|
redirect "${extdata.forward_destination}";
|
||||||
} else {
|
|
||||||
redirect "${extdata.forward}";
|
|
||||||
keep;
|
keep;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue