diff options
Diffstat (limited to 'proton_sieve')
-rw-r--r-- | proton_sieve/filter.sieve | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/proton_sieve/filter.sieve b/proton_sieve/filter.sieve new file mode 100644 index 0000000..81776bf --- /dev/null +++ b/proton_sieve/filter.sieve @@ -0,0 +1,15 @@ +# SPDX-FileCopyrightText: 2023 Brian Woods +# SPDX-License-Identifier: GPL-2.0-or-later + +require "fileinto"; + +# anything directly to the users goes into the inbox +if header :contains ["To", "Cc", "Bcc"] "CHANGEME@protonmail.com" { + stop; +} +# example of putting a list in directory +elsif header :contains ["List-Id"] "xen-devel.lists.xen.org" { + fileinto "Folders/xen-devel" ; + stop ; +} + |