From 7e91539f5e57e0507320b4ee5e8ed679f6c87ca4 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Thu, 10 Dec 2020 09:09:08 +0100 Subject: [PATCH] [Emacs] Better mu4e inboxes Mailing lists are now separated from my main inbox. Linguistics and Emacs now both have their own inbox. --- org/config/emacs.org | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/org/config/emacs.org b/org/config/emacs.org index 1da6e34..713745f 100644 --- a/org/config/emacs.org +++ b/org/config/emacs.org @@ -3179,19 +3179,33 @@ The following also allows me to automatically include my signature in my Emails, This source block is an example of the search queries in mu4e, and part of the reason why I very much like mu4e: these bookmarks are actually defined by search queries, but act as if they were just yet another type of custom inbox you get with modern Email client (and often you don’t even get them). All these bookmarks can be accessed through a shortcut on the main mu4e buffer, prefixed by ~b~. So, for instance, my unread messages are accessed through ~bU~. #+BEGIN_SRC emacs-lisp (setq mu4e-bookmarks - `(("maildir:/Inbox AND NOT flag:trashed" "Inbox" ?i) + `((,(s-join " " + '("maildir:/Inbox" + "AND NOT flag:trashed" + "AND NOT to:CONLANG@LISTSERV.BROWN.EDU" + "AND NOT to:AUXLANG@LISTSERV.BROWN.EDU" + "AND NOT to:ateliers-emacs.framalistes.org" + "AND NOT to:ateliers-paris.emacs-doctor.com" + "AND NOT list:ateliers-emacs.framalistes.org" + "AND NOT list:ateliers-paris.emacs-doctor.com")) + "Inbox" ?i) ;; Inbox without the linguistics mailing lists (,(s-join " " '("maildir:/Inbox" "AND NOT flag:trashed" "AND (f:/.*up8\.edu|.*univ-paris8.*/" "OR c:/.*up8\.edu|.*univ-paris8.*/" "OR t:/.*up8\.edu|.*univ-paris8.*/)")) - "University" ?u) + "University" ?u) ;; University-related emails + (,(s-join " " + '("maildir:/Inbox" + "AND (to:CONLANG@LISTSERV.BROWN.EDU" + "OR to:AUXLANG@LISTSERV.BROWN.EDU)")) + "Linguistics" ?l) ;; linguistics mailing lists (,(s-join " " '("maildir:/Inbox" "AND (list:ateliers-emacs.framalistes.org" "OR list:ateliers-paris.emacs-doctor.com)")) - "Emacs" ?e) + "Emacs" ?e) ;; Emacs mailing list ("maildir:/Sent" "Sent messages" ?s) ("flag:unread AND NOT flag:trashed" "Unread messages" ?U) ("date:today..now AND NOT flag:trashed" "Today's messages" ?t)