Skip to content

Instantly share code, notes, and snippets.

@motu81
Created August 2, 2019 10:40
Show Gist options
  • Save motu81/8c6533a46c045a91fd48461d2d9a41f5 to your computer and use it in GitHub Desktop.
Save motu81/8c6533a46c045a91fd48461d2d9a41f5 to your computer and use it in GitHub Desktop.
sieve vacation rule example
require ["fileinto","variables","vacation"];
# Move spam to spam folder
if header :contains "X-Spam-Flag" "YES" {
fileinto "spam";
# Stop here so that we do not reply on spams
stop;
}
# Store old Subject line so it can be used in vacation message
if header :matches "Subject" "*" {
set "subjwas" ": ${1}";
}
vacation
# Reply at most once a day to a same sender
:days 1
:subject "Abwesenheitsnachricht für ${subjwas}"
# List of additional recipient addresses which are included in the auto replying.
# If a mail's recipient is not the envelope recipient and it's not on this list,
# no vacation reply is sent for it.
:addresses [ "user@example.org"]
"Bin im Urlaub.
Viele Grüße
Example User";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment