From 2a75c652c28899ce873fb3cdc7fe1aca7bd3dda1 Mon Sep 17 00:00:00 2001 From: Jun Hao Date: Tue, 17 Nov 2015 12:06:41 +0800 Subject: [PATCH] Add mu4e-headers-mark-all to execute certain action on all msgs from current query --- mu4e/mu4e-contrib.el | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mu4e/mu4e-contrib.el b/mu4e/mu4e-contrib.el index 8d930903..6ab16c57 100644 --- a/mu4e/mu4e-contrib.el +++ b/mu4e/mu4e-contrib.el @@ -41,6 +41,16 @@ ;;; +(defun mu4e-headers-mark-all () + "Mark all messages within current query results and ask user to execute which action." + (interactive) + (mu4e-headers-mark-for-each-if + (cons 'something nil) + (lambda (msg param) t)) + (mu4e-mark-execute-all)) + +;;; + (defun mu4e-shr2text () "Html to text using the shr engine; this can be used in `mu4e-html2text-command' in a new enough emacs. Based on code by