dyne / JaroMail

Terminal UI email client to download, filter, search and archive messages off-line
https://dyne.org/software/jaro-mail
GNU General Public License v3.0
103 stars 9 forks source link

Vacation trigger #10

Open jaromil opened 8 years ago

jaromil commented 8 years ago

Make it easy to activate or deactivate a vacation auto-responder acting only for whitelisted contacts (not for lists to avoid public nuisance, nor for unknown contacts for privacy).

Preliminary example in sieve script:

require ["fileinto", "vacation", "variables"];

if header :is "X-Spam-Flag" "YES" {
    fileinto "Spam";
}

if header :matches "Subject" "*" {
    set "subjwas" ": ${1}";
}

vacation
  :days 1
  :subject "Out of office reply${subjwas}"
"I'm out of office, please contact Joan Doe instead.
Best regards
John Doe";

This example uses the sieve vacation extension and needs whitelist/mailingist filter implemented (likely as simple as finding the right positioning in current sieve filters).