Created
August 2, 2019 10:40
-
-
Save motu81/8c6533a46c045a91fd48461d2d9a41f5 to your computer and use it in GitHub Desktop.
sieve vacation rule example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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