From f3a48a2f2706e022a411292f99e0113d61ee7f4d Mon Sep 17 00:00:00 2001 From: fpi Date: Sat, 18 Jun 2022 14:12:27 +0200 Subject: [WIP] nnnotmuch and nnmaildir backends --- gnus.org | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/gnus.org b/gnus.org index 6765440..c9aa8c0 100644 --- a/gnus.org +++ b/gnus.org @@ -84,13 +84,28 @@ RSS/Atom Feeds asynchronously. #+end_src **** Harddrive Maildir -This is still WIP, because the =nnmaildir= backend sucks. -#+begin_src emacs-lisp :tangle no -(add-to-list 'gnus-secondary-select-methods - '(nnmaildir "Local Maildir" - (directory "~/.nnmaildir") - (gnus-search-engine gnus-search-notmuch - (config-file "~/.notmuch-config")))) +The message files notmuch returns upon searching needs to be associated with the correct group. To do this the maildir prefix (e.g. =/everything/above/the/dir/containing/cur/new/tmp=) needs to be removed, which is done by setting the ~remove-prefix~ option. Unfortunately we can set this on a per server basis, but not for each group. So this is unable to support one =nnmaildir= server containing multiple maildirs in subdirectories (or symlinked). +#+begin_src emacs-lisp :tangle no :noweb-ref secondary-select-methods +(when (equal fpi/current-device "xcarb") + (add-to-list + 'gnus-secondary-select-methods + '(nnmaildir "mail_gnus" + (directory "~/mail_gnus") + (gnus-search-engine + gnus-search-notmuch + (config-file "~/.notmuch-config") + ;; (remove-prefix "~/mail_gnus") + )))) +#+end_src +**** Notmuch +#+begin_src emacs-lisp :tangle no :noweb-ref secondary-select-methods +(when (equal fpi/current-device "xcarb") + (use-package nnnotmuch + :straight (:host github :repo "tlikonen/nnnotmuch" :branch "master") + :custom + (nnnotmuch-groups + '(("" ("in.recent" "date:7days.."))))) + (add-to-list 'gnus-secondary-select-methods '(nnnotmuch ""))) #+end_src ** Options *** General -- cgit v1.2.3