From 961e83b4ca460cfcf8fc21be90968eb4db1035e7 Mon Sep 17 00:00:00 2001 From: Lockywolf Date: Sat, 10 Oct 2020 15:28:31 +0800 Subject: [PATCH 1/5] Add reference about read-mail-command to mu4e.texi. --- mu4e/mu4e.texi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mu4e/mu4e.texi b/mu4e/mu4e.texi index 7bfd26da..be8d0d8d 100644 --- a/mu4e/mu4e.texi +++ b/mu4e/mu4e.texi @@ -3225,6 +3225,15 @@ you can do so by adding the following to your configuration: (setq mail-user-agent 'mu4e-user-agent) @end lisp +Similarly, to specify @t{mu4e} as your preferred method for reading mail, +customize the variable @code{read-mail-command}. + +@lisp +(set-variable 'read-mail-command 'mu4e) +@end lisp + +(@pxref{Top,,Emacs,Sending Mail, Mail Methods}) + @node Org-mode links @section Org-mode links From 9c8a366e81175c74591ed547892f093851c85015 Mon Sep 17 00:00:00 2001 From: Lockywolf Date: Sat, 10 Oct 2020 15:47:23 +0800 Subject: [PATCH 2/5] Replace Marmalade reference with MELPA. --- mu4e/mu4e.texi | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/mu4e/mu4e.texi b/mu4e/mu4e.texi index be8d0d8d..9f4a0844 100644 --- a/mu4e/mu4e.texi +++ b/mu4e/mu4e.texi @@ -3364,12 +3364,13 @@ After this, you should be able to: @section Sauron The Emacs package @t{sauron}@footnote{Sauron can be found at -@url{https://github.com/djcb/sauron}, or in the Marmalade package repository -at @url{https://marmalade-repo.org/}} (by the same author) can be used -to get notifications about new mails. If you run something like the below -script from your @t{crontab} (or have some other way of having it execute -every @emph{n} minutes), you receive notifications in the @t{sauron}-buffer -when new messages arrive. +@url{https://github.com/djcb/sauron}, or in the MELPA (Milkypostman’s +Emacs Lisp Package Archive) package repository at +@url{https://melpa.org/}} (by the same author) can be used to +get notifications about new mails. If you run something like the below +script from your @t{crontab} (or have some other way of having it +execute every @emph{n} minutes), you receive notifications in the +@t{sauron}-buffer when new messages arrive. @verbatim #!/bin/sh From 6a7bc30b9a89c9c8b18d4effa473ecfb6c2e5b62 Mon Sep 17 00:00:00 2001 From: Lockywolf Date: Sat, 10 Oct 2020 22:59:59 +0800 Subject: [PATCH 3/5] Adjust the improvised sauron-biff with better naming. --- mu4e/mu4e.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mu4e/mu4e.texi b/mu4e/mu4e.texi index 9f4a0844..7d17e88d 100644 --- a/mu4e/mu4e.texi +++ b/mu4e/mu4e.texi @@ -3402,7 +3402,7 @@ fi # -mmin -5: consider only messages that were created / changed in the # the last 5 minutes # -for f in `find $CHECKDIR -mmin -5 -a -type f`; do +for f in `find $CHECKDIR -mmin -5 -a -type f -not -iname '.uidvalidity'`; do subject=`$MU view $f | grep '^Subject:' | sed 's/^Subject://'` sauron_msg "mail: $subject" done From ef6ce5855165990a0697e509e62302e1d0882f25 Mon Sep 17 00:00:00 2001 From: Lockywolf Date: Sat, 10 Oct 2020 23:09:37 +0800 Subject: [PATCH 4/5] Fix typo. --- mu4e/mu4e.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mu4e/mu4e.texi b/mu4e/mu4e.texi index 7d17e88d..b38d09c1 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 anm emacs package +bookmarks; and 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: From d1964bd071d3204fbe19740796c8f2bad5782f1b Mon Sep 17 00:00:00 2001 From: Lockywolf Date: Wed, 28 Oct 2020 10:31:02 +0800 Subject: [PATCH 5/5] 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