X-Git-Url: https://git.shemshak.org/~bandali/configs/blobdiff_plain/2087ae39f646980175a44183370a72e036edbbc0..ff9cc25d59e324575e47e88bcccb3d4f291ff616:/lisp/bandali-gnus.el?ds=sidebyside diff --git a/lisp/bandali-gnus.el b/lisp/bandali-gnus.el index f3fa118..f85f694 100644 --- a/lisp/bandali-gnus.el +++ b/lisp/bandali-gnus.el @@ -1,3 +1,29 @@ +;;; bandali-gnus.el --- bandali's Gnus setup -*- lexical-binding: t; -*- + +;; Copyright (C) 2018-2020 Amin Bandali + +;; Author: Amin Bandali +;; Keywords: mail, news + +;; This program is free software; you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with this program. If not, see . + +;;; Commentary: + +;; My trusty super awesome Gnus setup. + +;;; Code: + (defvar b/maildir (expand-file-name "~/mail/")) (with-eval-after-load 'recentf (add-to-list 'recentf-exclude b/maildir)) @@ -65,6 +91,8 @@ ;; ---------------------------------- ;; legend: (u)nsubscribed | (d)ead ;; ---------------------------------- + ;; spam + ("X-Spam-Flag" "YES" "Junk") ;; otherwise, leave mail in INBOX "INBOX"))) (nnimap "uw" @@ -273,6 +301,8 @@ "^Resent-From:" "^User-Agent:" "^X-detected-operating-system:" + "^X-Spam-Flag:" + "^X-Spam-Level:" "^Message-ID:" ;; "^References:" "^List-Id:" @@ -408,4 +438,15 @@ https://csclub.uwaterloo.ca/~abandali") (mml-secure-openpgp-encrypt-to-self t) (mml-secure-openpgp-sign-with-sender t)) +(use-package gnus-article-treat-patch + :disabled + :demand + :load-path "lisp/" + :config + ;; note: be sure to customize faces with `:foreground "white"' when + ;; using a theme with a white/light background :) + (setq ft/gnus-article-patch-conditions + '("^@@ -[0-9]+,[0-9]+ \\+[0-9]+,[0-9]+ @@"))) + (provide 'bandali-gnus) +;;; bandali-gnus.el ends here