From 6f0bcb50ae1e022651f909b758a1c26c0ad4feda Mon Sep 17 00:00:00 2001 From: fpi Date: Sat, 9 May 2020 13:36:19 +0200 Subject: Setup fancy imap mail splitting --- emacs-private.el.gpg | Bin 1030 -> 1043 bytes gnus.org | 25 ++++++++++++++++++++----- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/emacs-private.el.gpg b/emacs-private.el.gpg index 6b46930..4b638e1 100644 Binary files a/emacs-private.el.gpg and b/emacs-private.el.gpg differ diff --git a/gnus.org b/gnus.org index d799395..e50097a 100644 --- a/gnus.org +++ b/gnus.org @@ -14,11 +14,19 @@ Load private settings #+begin_src emacs-lisp ;; (add-to-list 'gnus-secondary-select-methods (setq gnus-select-method - `(nnimap ,private/imap-name - (nnimap-address ,private/imap-address) - (nnimap-server-port 993) - (nnimap-stream ssl) - (nnir-search-engine imap))) + `(nnimap ,private/imap-name + (nnimap-address ,private/imap-address) + (nnimap-server-port 993) + (nnimap-stream ssl) + (nnir-search-engine imap) + (nnimap-inbox "INBOX") + (nnimap-split-methods 'nnimap-split-fancy) + (nnimap-split-fancy + (| (: nnmail-split-fancy-with-parent) + ,@private/imap-split-fancy + "INBOX" + )) + )) #+end_src Sort by newest first #+begin_src emacs-lisp @@ -36,6 +44,13 @@ Sending mail smtpmail-smtp-service 587 starttls-use-gnutls t) #+end_src +Setup for fancy mail splitting. Also see the parameters in ~gnus-select-method~. +#+begin_src emacs-lisp +(setq nnmail-split-methods 'nnimap-split-fancy) + +(setq nnmail-cache-accepted-message-ids t) +(setq nnmail-message-id-cache-length 10000) +#+end_src Load only groups with level < 2 for faster startup. #+begin_src emacs-lisp -- cgit v1.2.3