Store the state of reply and forward settings being enabled
parent
a1d0eca859
commit
9efc798246
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue