da481678b6
- Add financ.sieve, plan.md, roundcube.txt to version control - Update verplaats_log.json after backup dry run - Gitignore codex.session session file
27 lines
1.4 KiB
Sieve
27 lines
1.4 KiB
Sieve
# mailcat_roundcube.sieve
|
|
# Generated from domain_routes.json and mailinglist_routes.json.
|
|
# Intended for Roundcube/Managesieve import for hans@australius.nl.
|
|
# Do not use :copy: these rules sort incoming mail into destination folders.
|
|
# Historical mailbox reordering still requires verplaats_bestaand.py.
|
|
|
|
require ["fileinto", "date", "variables"];
|
|
|
|
# Financial rules are first. The invoice rule stays dynamic, so individual quarters are not separately ordered.
|
|
# rule:[Financieel / Facturen / Dynamisch kwartaal]
|
|
if header :contains "Subject" ["factuur", "invoice", "rekening", "nota", "betaalverzoek", "receipt", "orderbevestiging", "order confirmation", "betaling ontvangen", "payment received", "uw factuur", "your invoice", "je factuur"] {
|
|
if currentdate :matches "year" "*" {
|
|
set "jaar" "${1}";
|
|
}
|
|
if anyof (currentdate :is "month" "1", currentdate :is "month" "2", currentdate :is "month" "3") {
|
|
fileinto "INBOX.Financieel.Facturen.${jaar}.Q1";
|
|
} elsif anyof (currentdate :is "month" "4", currentdate :is "month" "5", currentdate :is "month" "6") {
|
|
fileinto "INBOX.Financieel.Facturen.${jaar}.Q2";
|
|
} elsif anyof (currentdate :is "month" "7", currentdate :is "month" "8", currentdate :is "month" "9") {
|
|
fileinto "INBOX.Financieel.Facturen.${jaar}.Q3";
|
|
} else {
|
|
fileinto "INBOX.Financieel.Facturen.${jaar}.Q4";
|
|
}
|
|
stop;
|
|
}
|
|
|