Created
January 28, 2020 15:45
-
-
Save Mic92/d455715242c8909cc8302aadd4745fcf to your computer and use it in GitHub Desktop.
Mu4e: mark as read and move to spam folder action.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(setq mu4e-spam-folder "/thalheim.io/Spam") | |
;; Mark as read and move to spam | |
(add-to-list 'mu4e-marks | |
'(spam | |
:char "S" | |
:prompt "Spam" | |
:show-target (lambda (target) mu4e-spam-folder) | |
:action (lambda (docid msg target) | |
(mu4e~proc-move docid mu4e-spam-folder "+S-u-N")))) | |
(mu4e~headers-defun-mark-for spam) | |
(define-key mu4e-headers-mode-map (kbd "S") 'mu4e-headers-mark-for-spam) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment