Implement auto-forward and auto-reply

This commit is contained in:
Pierre Jaury
2016-04-20 21:20:02 +02:00
parent d2e6bf01e2
commit 3a4703b764
9 changed files with 85 additions and 4 deletions

View File

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