14 lines
469 B
Plaintext
14 lines
469 B
Plaintext
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 allof (address :all :comparator "i;unicode-casemap" :contains "From" [promotions_domains]) {
|
|
fileinto "Promotions";
|
|
keep;
|
|
}
|