diff options
author | fpi | 2022-06-18 14:12:27 +0200 |
---|---|---|
committer | fpi | 2023-02-19 18:37:22 +0100 |
commit | f3a48a2f2706e022a411292f99e0113d61ee7f4d (patch) | |
tree | 6c5f19a55648dbbfb390763e3ae9dc565f9aa35e | |
parent | Update notmuch mail filters (diff) |
[WIP] nnnotmuch and nnmaildir backends
-rw-r--r-- | gnus.org | 29 |
1 files changed, 22 insertions, 7 deletions
@@ -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 |