From bac3832c02f1c576964f197a1e3339ab801a107f Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 25 Apr 2017 08:56:55 +0800 Subject: Add email account "weitian@aaronly.me" --- _spacemacs.d/config/my-mu4e.el | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to '_spacemacs.d/config') diff --git a/_spacemacs.d/config/my-mu4e.el b/_spacemacs.d/config/my-mu4e.el index 1fea46d..ff91a7d 100644 --- a/_spacemacs.d/config/my-mu4e.el +++ b/_spacemacs.d/config/my-mu4e.el @@ -45,6 +45,25 @@ (mu4e-compose-signature . "Aly") ;; copy message to sent folder (mu4e-sent-messages-behavior . sent))) + ,(make-mu4e-context + :name "weitian" + :enter-func (lambda () + (mu4e-message "Switched to context: weitian")) + ;; `leave-func' not defined + ;; `match-func' is invoked just before `mu4e-compose-pre-hook' + :match-func (lambda (msg) + (when msg + (mu4e-message-contact-field-matches + msg :to "weitian@aaronly.me"))) + :vars '((user-mail-address . "weitian@aaronly.me") + (user-full-name . "Weitian LI") + (mu4e-sent-folder . "/weitian/sent") + (mu4e-drafts-folder . "/weitian/drafts") + (mu4e-trash-folder . "/weitian/trash") + (mu4e-refile-folder . "/weitian/archive") + (mu4e-compose-signature . "Weitian") + ;; copy message to sent folder + (mu4e-sent-messages-behavior . sent))) ,(make-mu4e-context :name "Outlook-aly" :enter-func (lambda () -- cgit v1.2.2