Jafner.net/archive/dotfiles/sieve/receipts_script.txt

12 lines
444 B
Plaintext
Raw Normal View History

2024-06-04 03:04:47 -07:00
require ["fileinto", "include", "environment", "variables", "relational", "comparator-i;ascii-numeric", "spamtest", "regex", "imap4flags"];
# Generated: Do not run this script on spam messages
if allof (environment :matches "vnd.proton.spam-threshold" "*",
spamtest :value "ge" :comparator "i;ascii-numeric" "${1}")
{
return;
}
if header :comparator "i;unicode-casemap" :contains "Subject" [receipts_subjects] {
fileinto "Receipts";
}