forked from RainLoop/rainloop-webmail
-
-
Notifications
You must be signed in to change notification settings - Fork 122
Filters Sieve
Maarten edited this page Feb 6, 2024
·
4 revisions
require ["fileinto","imap4flags"];
if header :contains ["To", "CC"] "demo+sieve@snappymail.eu"
{
addflag "\\Seen";
fileinto "SnappyMail.demo";
stop;
}
require ["date", "relational", "vacation"];
if allof(currentdate :value "ge" "date" "2023-08-01", currentdate :value "le" "date" "2023-08-17") {
vacation :days 4 :subject "I'm not at the pineapple" :addresses ["Forward <squidward@example.com>"] "I'm monitoring a stone at the moment. Will be back when Patrick returns. Best regards, Mr. SquarePants";
}
require ["date", "variables", "fileinto"];
if currentdate :matches "month" "*" { set "month" "${1}"; }
if currentdate :matches "year" "*" { set "year" "${1}"; }
fileinto "INBOX.${year}-${month}";