mu4e, Searching emails (4/4)
e-mails on Emacs: #1 - #2 - #3 -#4
Install mu,
sudo apt-get install mu
This will install mu4e
and make it available to emacs. Put the following in ~/.emacs
and (re)start emacs. Then give the command M-x mu4e
.
(use-package mu4e
:defer 20 ; Wait until 20 seconds after startup
:config
(setq mu4e-change-filenames-when-moving t ; avoid sync conflicts
mu4e-update-interval (* 10 60) ; check mail 10 minutes
mu4e-compose-format-flowed t ; re-flow mail so it's not hard wrapped
mu4e-get-mail-command "mbsync -a"
mu4e-maildir "~/Mail/proton")
(setq mu4e-drafts-folder "/Drafts"
mu4e-sent-folder "/Sent"
mu4e-refile-folder "/All Mail"
mu4e-trash-folder "/Trash")
(setq mu4e-maildir-shortcuts
'(("/INBOX" . ?i)
("/Sent" . ?s)
("/Trash" . ?t)
("/Drafts" . ?d)
("/All Mail" . ?a)))
(setq message-send-mail-function 'smtpmail-send-it
auth-sources '("~/.authinfo") ;need to use gpg version but only local smtp stored for now
smtpmail-smtp-server "127.0.0.1"
smtpmail-smtp-service 1025
smtpmail-stream-type 'starttls))