Skip to content

Instantly share code, notes, and snippets.

@Mic92
Created January 28, 2020 15:45
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Mic92/d455715242c8909cc8302aadd4745fcf to your computer and use it in GitHub Desktop.
Save Mic92/d455715242c8909cc8302aadd4745fcf to your computer and use it in GitHub Desktop.
Mu4e: mark as read and move to spam folder action.
(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