97e4cc547a
1. homelab [Gitea](https://gitea.jafner.tools/Jafner/homelab), [Github (docker_config)](https://github.com/Jafner/docker_config), [Github (wiki)](https://github.com/Jafner/wiki), [Github (cloud_tools)](https://github.com/Jafner/cloud_tools), [Github (self-hosting)](https://github.com/Jafner/self-hosting). - Rename? Jafner.net? Wouldn't that be `Jafner/Jafner.net/Jafner.net`? 2. Jafner.dev [Github](https://github.com/Jafner/Jafner.dev). 3. dotfiles [Gitea](https://gitea.jafner.tools/Jafner/dotfiles), [Github](https://github.com/Jafner/dotfiles). 4. nvgm [Gitea](https://gitea.jafner.tools/Jafner/nvgm) 5. pamidi [Gitea](https://gitea.jafner.tools/Jafner/pamidi), [Github](https://github.com/Jafner/pamidi) 6. docker-llm-amd [Gitea](https://gitea.jafner.tools/Jafner/docker-llm-amd) 7. doradash [Gitea](https://gitea.jafner.tools/Jafner/doradash) 8. clip-it-and-ship-it [Gitea (PyClipIt)](https://gitea.jafner.tools/Jafner/PyClipIt), [Github](https://github.com/Jafner/clip-it-and-ship-it). 9. razer battery led [Github](https://github.com/Jafner/Razer-BatteryLevelRGB) 10. 5etools-docker [Github](https://github.com/Jafner/5etools-docker) 11. jafner-homebrew [Github](https://github.com/Jafner/jafner-homebrew)
47 lines
1.3 KiB
Plaintext
47 lines
1.3 KiB
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" [important_domains]) {
|
|
fileinto "Important";
|
|
addflag "\\Flagged";
|
|
keep;
|
|
stop;
|
|
}
|
|
|
|
# Common subjects relevant to security events
|
|
elsif header :contains "subject" ["security alert", "security notification", "login", "sign-on",
|
|
"sign-in", "sign in", "sign on", "email address", "email change", "password", "terms of service"]
|
|
{
|
|
fileinto "Important";
|
|
addflag "\\Flagged";
|
|
stop;
|
|
}
|
|
|
|
# Commonly used security services
|
|
elsif address :matches :domain "from" ["*lastpass.com", "*logme.in", "*okta.com", "*accounts.google.com",
|
|
"*1password.com", "*haveibeenpwned.com", "*nextdns.io"]
|
|
{
|
|
fileinto "Important";
|
|
addflag "\\Flagged";
|
|
stop;
|
|
}
|
|
|
|
elsif header :list "from" ":addrbook:personal?label=Family"
|
|
{
|
|
fileinto "Important";
|
|
addflag "\\Flagged";
|
|
stop;
|
|
}
|
|
|
|
elsif address :matches "from" ["*@*.us", "@*.gov"]
|
|
{
|
|
fileinto "Important";
|
|
addflag "\\Flagged";
|
|
stop;
|
|
} |