* lisp/bandali-gnus.el: Some automatic processing for incoming spam
authorAmin Bandali <bandali@gnu.org>
Tue, 21 Apr 2020 02:25:17 +0000 (22:25 -0400)
committerAmin Bandali <bandali@gnu.org>
Tue, 21 Apr 2020 02:25:17 +0000 (22:25 -0400)
First, display both X-Spam-Flag and X-Spam-Level headers, and move
messages to Junk if their X-Spam-Flag is YES.

lisp/bandali-gnus.el

index de01c0f..f85f694 100644 (file)
@@ -91,6 +91,8 @@
                                   ;; ----------------------------------
                                   ;; legend: (u)nsubscribed | (d)ead
                                   ;; ----------------------------------
                                   ;; ----------------------------------
                                   ;; legend: (u)nsubscribed | (d)ead
                                   ;; ----------------------------------
+                                  ;; spam
+                                  ("X-Spam-Flag" "YES" "Junk")
                                   ;; otherwise, leave mail in INBOX
                                   "INBOX")))
      (nnimap "uw"
                                   ;; otherwise, leave mail in INBOX
                                   "INBOX")))
      (nnimap "uw"
                              "^Resent-From:"
                              "^User-Agent:"
                              "^X-detected-operating-system:"
                              "^Resent-From:"
                              "^User-Agent:"
                              "^X-detected-operating-system:"
+                             "^X-Spam-Flag:"
+                             "^X-Spam-Level:"
                              "^Message-ID:"
                              ;; "^References:"
                              "^List-Id:"
                              "^Message-ID:"
                              ;; "^References:"
                              "^List-Id:"