From 2e188238a6f0fd6d35b11809978c93d9d8f4568a Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Wed, 26 Oct 2022 13:08:27 +0200 Subject: [PATCH] [Emacs] Add new inboxes to mu4e bookmarks logic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I recently and finally managed to get my university’s emails with mbsync. Time to add them to mu4e. --- org/config/emacs.org | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/org/config/emacs.org b/org/config/emacs.org index 0b58ae0..70247af 100644 --- a/org/config/emacs.org +++ b/org/config/emacs.org @@ -1798,11 +1798,13 @@ Paris 8 (my university). #+header: :tangle no :cache yes #+begin_src emacs-lisp (let ((regex "/.*up8\\.edu|.*univ-paris8.*/")) - <>) + (concat + <> + " OR maildir:/Univ/Inbox OR maildir:/Univ/Junk")) #+end_src -#+RESULTS[f1b50a07521c59a4ccd72f6f8ec11431ac618139]: mu4e-bookmarks-filter-uni -: f:/.*up8\.edu|.*univ-paris8.*/ OR c:/.*up8\.edu|.*univ-paris8.*/ OR t:/.*up8\.edu|.*univ-paris8.*/ +#+RESULTS[083992a66ea6339d3a55773108e520a6024102c5]: mu4e-bookmarks-filter-uni +: f:/.*up8\.edu|.*univ-paris8.*/ OR c:/.*up8\.edu|.*univ-paris8.*/ OR t:/.*up8\.edu|.*univ-paris8.*/ OR maildir:/Univ/Inbox OR maildir:/Univ/Junk Next I need an inbox dedicated to the association I’m part of. #+name: mu4e-bookmarks-filter-asso @@ -1944,7 +1946,7 @@ We can finally define our bookmarks! The code reads as follows: :query ,(format "%s AND %s" "<>" "<>")) - (:name "Sent" :key ?S :query "maildir:/Sent") + (:name "Sent" :key ?S :query "maildir:/Sent OR maildir:/Univ/Sent") (:name "All Unread" :key ?U :query "flag:unread AND NOT flag:trashed") (:name "Today" :key ?t :query "date:today..now AND NOT flag:trashed") (:name "This Week" :key ?w :query "date:7d..now AND NOT flag:trashed")