summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2020-04-20 22:25:17 -0400
committerAmin Bandali <bandali@gnu.org>2020-04-20 22:25:17 -0400
commit8c69260b3d8ba02b1f604b9a524a3d5f0a16df73 (patch)
treeffb31640150f05cce3e6128084ca04b4c6f33b6f
parentbdd3a0bb3c3adab46f167a627ba0be5619e4348b (diff)
downloadconfigs-8c69260b3d8ba02b1f604b9a524a3d5f0a16df73.tar.gz
configs-8c69260b3d8ba02b1f604b9a524a3d5f0a16df73.tar.xz
configs-8c69260b3d8ba02b1f604b9a524a3d5f0a16df73.zip
* lisp/bandali-gnus.el: Some automatic processing for incoming spam
First, display both X-Spam-Flag and X-Spam-Level headers, and move messages to Junk if their X-Spam-Flag is YES.
-rw-r--r--lisp/bandali-gnus.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/bandali-gnus.el b/lisp/bandali-gnus.el
index de01c0f..f85f694 100644
--- a/lisp/bandali-gnus.el
+++ b/lisp/bandali-gnus.el
@@ -91,6 +91,8 @@
;; ----------------------------------
;; legend: (u)nsubscribed | (d)ead
;; ----------------------------------
+ ;; spam
+ ("X-Spam-Flag" "YES" "Junk")
;; otherwise, leave mail in INBOX
"INBOX")))
(nnimap "uw"
@@ -299,6 +301,8 @@
"^Resent-From:"
"^User-Agent:"
"^X-detected-operating-system:"
+ "^X-Spam-Flag:"
+ "^X-Spam-Level:"
"^Message-ID:"
;; "^References:"
"^List-Id:"