summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2019-12-23 20:41:36 +0000
committerMatthew Lemon <lemon@matthewlemon.com>2019-12-23 20:41:36 +0000
commit2ac9bb45b7a9f56296738ec2b168c4a835dc72c3 (patch)
tree5fe8437bbadaf16934f61fc67f2cf94c684c8510
parent366719afe5a74d418b9fafefb2f9b43f21ba6bae (diff)
mu4e working config for Fastmail
-rw-r--r--init.el29
1 files changed, 29 insertions, 0 deletions
diff --git a/init.el b/init.el
index 48a3e46..131ae0a 100644
--- a/init.el
+++ b/init.el
@@ -65,6 +65,35 @@
(global-set-key "\C-x\C-k" 'kill-region)
(global-set-key "\C-c\C-k" 'kill-region)
+;; mu4e
+;; the exact path may differ --- check it
+(add-to-list 'load-path "/usr/share/emacs/site-lisp/mu4e")
+(require 'mu4e)
+(setq mu4e-maildir "~/.mail/matt-matthewlemon.com")
+(setq message-send-mail-function 'smtpmail-send-it)
+(setq mu4e-contexts
+ `( ,(make-mu4e-context
+ :name "Fastmail"
+ :enter-func (lambda () (mu4e-message "Entering Fastmail context"))
+ :leave-func (lambda () (mu4e-message "Leaving Fastmail context"))
+ ;; we match based on the contact-fields of the message
+ :match-func (lambda (msg)
+ (when msg
+ (mu4e-message-contact-field-matches msg
+ :to "matt@matthewlemon.com")))
+ :vars '((user-email-address . "matt@matthewlemon.com")
+ (user-full-name . "MR Lemon")
+ (smtpmail-default-smtp-server . "mail.messagingengine.com")
+ (smtpmail-smtp-server . "mail.messagingengine.com")
+ (smtpmail-smtp-user . "matthewlemon@fastmail.fm")
+ (smtpmail-smtp-service . "465")
+ (smtpmail-stream-type . ssl)
+ (mu4e-sent-messages-behavior . sent)
+ (mu4e-compose-signature .
+ (concat
+ "Matthew Lemon\n"
+ "Berwick-upon-Tweed"))))))
+
;; recentf
(use-package recentf
:config