.emacs.d

My Emacs configuration files.
Log | Files | Refs | README

commit 704048867937bf9be60dad92092a8176f3cff311
parent f64fce89b24f63d70a06de1798b2f25f560b2f59
Author: Hugo Soucy <hsoucy@kronostechnologies.com>
Date:   Mon, 12 Nov 2018 13:46:25 -0500

Test a new email configuration

Diffstat:
Mpartials/email.el | 36+++++++++++++++++++++---------------
1 file changed, 21 insertions(+), 15 deletions(-)

diff --git a/partials/email.el b/partials/email.el @@ -2,27 +2,33 @@ (setq user-full-name "Hugo Soucy") (setq user-mail-address "hugo@soucy.cc") -;; Using mu4e if not on Mac OS X -(if (not (eq system-type 'darwin)) - (use-package mu4e - ;; Mail client for Emacs. - :config +(use-package mu4e + ;; Mail client for Emacs. + :ensure t + :config + (if (not (eq system-type 'darwin)) + ;; Using Maildir if not on Mac OS X (setq mu4e-maildir (expand-file-name "~/Maildir")) - (setq mu4e-sent-folder "/Sent") - (setq mu4e-drafts-folder "/Drafts") - (setq mu4e-trash-folder "/Trash") - ;; (setq message-signature-file "~/.signature") + ;; else use .Mail + (setq mu4e-maildir (expand-file-name "~/.Mail"))) + (setq mu4e-sent-folder "/Sent") + (setq mu4e-drafts-folder "/Drafts") + (setq mu4e-trash-folder "/Trash") + + (if (not (eq system-type 'darwin)) ;; command used to get mail ;; use this to sync with mbsync (setq mu4e-get-mail-command "mbsync hscc") - ;; use this for testing - ;; (setq mu4e-get-mail-command "true") - - ;; rename files when moving - ;; NEEDED FOR MBSYNC - (setq mu4e-change-filenames-when-moving t)) + ;; else offlineimap + (setq mu4e-get-mail-command "offlineimap hscc") + ) + ;; use this for testing + ;; (setq mu4e-get-mail-command "true") + ;; rename files when moving + ;; NEEDED FOR MBSYNC + (setq mu4e-change-filenames-when-moving t) ;; Send mail ;; tell message-mode how to send mail (setq message-send-mail-function 'smtpmail-send-it)