Updated Filters Sieve (markdown)

Maarten 2024-02-06 17:12:22 +01:00
parent b3988f8277
commit 018284c8d2

@ -1,6 +1,17 @@
# Vacation Responder # Vacation Responder
``` ```
require ["date", "relational", "vacation"];
if allof(currentdate :value "ge" "date" "2023-08-01", currentdate :value "le" "date" "2023-08-17") { 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"; 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";
} }
```
# Put incoming messages in folders by date
```
require ["date", "variables", "fileinto"];
if currentdate :matches "month" "*" { set "month" "${1}"; }
if currentdate :matches "year" "*" { set "year" "${1}"; }
fileinto "INBOX.${year}-${month}";
``` ```