From d1964bd071d3204fbe19740796c8f2bad5782f1b Mon Sep 17 00:00:00 2001 From: Lockywolf Date: Wed, 28 Oct 2020 10:31:02 +0800 Subject: [PATCH] Add an example of filtering out spam. --- mu4e/mu4e.texi | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mu4e/mu4e.texi b/mu4e/mu4e.texi index b38d09c1..6f2d5163 100644 --- a/mu4e/mu4e.texi +++ b/mu4e/mu4e.texi @@ -3474,7 +3474,7 @@ or create a new one. @section Hydra People sometimes ask about having multi-character shortcuts for -bookmarks; and easy way to achieve this, is by using an emacs package +bookmarks; an easy way to achieve this, is by using an emacs package called Hydra@footnote{@url{https://github.com/abo-abo/hydra}}. With Hydra installed, we can add multi-character shortcuts, for instance: @@ -3893,6 +3893,13 @@ its docstring). @subsection How can I hide messages from the search results? See the variable @code{mu4e-headers-hide-predicate}. +For example, to filter out GMail's spam, set it to: +@lisp +(setq mu4e-headers-hide-predicate + (lambda (msg) + (string-suffix-p "Spam" (mu4e-message-field msg :maildir)))) +@end lisp + @subsection I'm getting an error 'Variable binding depth exceeds max-specpdl-size' when using mu4e -- what can I do about it? The error occurs because @t{mu4e} is binding more variables than @t{emacs} allows for, by default. You can avoid this by setting a