mu4e

about | blog | config | notes | github

mu4e is a e-mail client for GNU/Emacs that uses mu as the backend. mu is simply a mail indexer so we have to make use of Isync (mbsync) in order to get a local copy of the IMAP to use with mu4e.

1. Configuration

Disabled because I haven't set this up properly yet…

ALSO TAKE A LOOK AT THIS https://github.com/stardiviner/mu4e-marker-icons

(use-package mu4e
  :disabled

  :ensure nil
  ;; :load-path "/usr/share/emacs/site-lisp/mu4e/"
  ;; :defer 20 ; Wait until 20 seconds after startup

  :config
  ;; This is set to 't' to avoid mail syncing issues when using mbsync
  (setq mu4e-change-filenames-when-moving t)

  ;; Refresh mail using isync every 10 minutes
  (setq mu4e-update-interval (* 10 60))
  (setq mu4e-get-mail-command "mbsync -a")
  (setq mu4e-maildir "~/.mail/[email protected]/")

  (setq mu4e-sent-folder   "/[Gmail]/Sent Mail")
  (setq mu4e-trash-folder  "/[Gmail]/Trash")
  (setq mu4e-drafts-folder "/[Gmail]/Drafts")
  (setq mu4e-refile-folder "/[Gmail]/All Mail")

  (setq mu4e-maildir-shortcuts
    '((:maildir "/inbox"    :key ?i)
      (:maildir "/[Gmail]/Sent Mail" :key ?s)
      (:maildir "/[Gmail]/Trash"     :key ?t)
      (:maildir "/[Gmail]/Drafts"    :key ?d)
      (:maildir "/[Gmail]/All Mail"  :key ?a))))

Make sure to provide the package itself

(provide 'init-mu4e)

Created: 2021-11-13

Emacs 26.1 (Org mode 9.5)