jmail is an e-mail environment for Emacs.
It depends on the following tools:
Tools | Version tested | Comments |
---|---|---|
mu | 1.5.4 | index/search |
mbsync | 1.3.1 | fetch emails |
msmtp | 1.8.7 | smtp multi accounts |
feed2exec (optionnal) | 0.15.0 | fetch rss |
;; jmail
(require 'jmail)
;; Mail User Agent
(setq mail-user-agent 'jmail-user-agent)
;; top maildir
(setq jmail-top-maildir "~/.cache/mails")
;; mbsync config file
(setq jmail-sync-config-file "~/.mbsyncrc"))
;; msmtp config file
(setq jmail-smtp-config-file "~/.msmtprc"))
;; queries
(setq jmail-queries '(("Custom" . (("Starred" . "flag:flagged")))
("Gmail" . (("Emacs" . "maildir:/Gmail/Emacs")
("Github" . "maildir:/Gmail/Github")
("INBOX" . "maildir:/Gmail/INBOX")
("Sent" . "maildir:/Gmail/Sent")))))
;; refresh every 60 seconds
(setq jmail-update-buffer-every 60)
For more complete config, please look at mine perso-config.