mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 17:13:38 +08:00
Updated Filters Sieve (markdown)
parent
b3988f8277
commit
018284c8d2
1 changed files with 11 additions and 0 deletions
|
@ -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}";
|
||||||
```
|
```
|
Loading…
Reference in a new issue