Skip to content

Instantly share code, notes, and snippets.

@frederikstroem
Created February 28, 2024 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frederikstroem/af4d14b80232ebed904183d89fd5c106 to your computer and use it in GitHub Desktop.
Save frederikstroem/af4d14b80232ebed904183d89fd5c106 to your computer and use it in GitHub Desktop.
SimpleLogin auto-label Sieve filter (created & tested for ProtonMail)
# `envelope` command `from` retrieves `return-path` header, e.g. "4very3random2string1@simplelogin.co".
# Sources:
# - https://proton.me/support/sieve-advanced-custom-filters
# - https://simplelogin.io/docs/getting-started/troubleshooting/
# Require `envelope` and `fileinto` extensions.
require ["fileinto", "envelope"];
# Emails from SimpleLogin domains are filed into "SimpleLogin".
if envelope :domain :is "from" ["simplelogin.co", "simplelogin.io"] {
fileinto "SimpleLogin"; # Label/move to "SimpleLogin".
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment