Commit e7443cc99019
Changed files (1)
dots
.config
emacs
old
config
dots/.config/emacs/old/config/config-mu4e.el
@@ -47,9 +47,13 @@
(defun vde-mu4e--refile (msg)
"Refile function to smartly move `MSG' to a given folder."
(cond
- ;; FIXME
+ ;; Delete GitHub CI activity notifications
((string= (plist-get (car-safe (mu4e-message-field msg :cc)) :email) "ci_activity@noreply.github.com")
"/icloud/Deleted Messages")
+ ;; Move Red Hat emails to Trash (will be permanently deleted by Gmail after 30 days)
+ ((string-prefix-p "/redhat" (mu4e-message-field msg :maildir))
+ "/redhat/[Gmail]/Trash")
+ ;; Archive iCloud and other emails by year
(t
(let ((year (format-time-string "%Y" (mu4e-message-field msg :date))))
(format "/icloud/Archives/%s" year)))))