summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2022-11-18 15:01:52 -0800
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2022-11-21 16:44:43 -0500
commit99315833dea51fb87e5a99320cb76f53eec72ab8 (patch)
tree739802d9a4825664695471cf1b93a275c753b66f
parentb8a95d4d4e930367f7e9fc197bc87ed14033d8a3 (diff)
downloadkorg-99315833dea51fb87e5a99320cb76f53eec72ab8.tar.gz
linuxdev.rst: Add pointers and examples for SIEVE
It took me a while to cobble together these details, so maybe someone else will find it useful too. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r--source/linuxdev.rst23
1 files changed, 23 insertions, 0 deletions
diff --git a/source/linuxdev.rst b/source/linuxdev.rst
index 93275f1..6868b80 100644
--- a/source/linuxdev.rst
+++ b/source/linuxdev.rst
@@ -103,3 +103,26 @@ request may be denied.
If your request is approved, you will receive an invitation link at the
contact address you specified.
+
+Filtering Email
+---------------
+If you don't want to filter your email through your local client, Migadu_
+supports server-side SIEVE_ filtering. This can be configured with various
+mail clients, or through things like sieveshell_. For example::
+
+ $ cat list-admin-reject.sieve
+ require ["regex", "fileinto"];
+ if header :regex "from" "^some-mailing-list-reject-" {
+ fileinto "some-mailing-list-admin";
+ }
+ $ sieveshell --user your.name@linux.dev --passwd '...' --use-tls imap.migadu.com
+ > put list-admin-reject.sieve
+ OK
+ > list
+ list-admin-reject.sieve
+ > activate list-admin-reject.sieve
+ OK
+ > quit
+
+.. _SIEVE: https://en.wikipedia.org/wiki/Sieve_(mail_filtering_language)
+.. _sieveshell: https://www.cyrusimap.org/imap/reference/manpages/usercommands/sieveshell.html