diff options
author | Aaron LI <aaronly.me@outlook.com> | 2017-04-25 08:56:55 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2017-04-25 08:56:55 +0800 |
commit | bac3832c02f1c576964f197a1e3339ab801a107f (patch) | |
tree | 56deecadae090942139fb8e694d94b143d499518 | |
parent | 3bc70b86b6253cdd5736166b14224337cf17a0e2 (diff) | |
download | dotfiles-bac3832c02f1c576964f197a1e3339ab801a107f.tar.bz2 |
Add email account "weitian@aaronly.me"
-rw-r--r-- | _mbsyncrc | 46 | ||||
-rw-r--r-- | _msmtprc | 12 | ||||
-rw-r--r-- | _spacemacs.d/config/my-mu4e.el | 19 |
3 files changed, 73 insertions, 4 deletions
@@ -20,8 +20,8 @@ SyncState * ## Account "aly@aaronly.me" {{{ IMAPAccount aly Host mail.aaronly.me -User aly@aaronly.me -PassCmd "pass show email/self/aly | head -n1" +User aly@aaronly.me@laptop +PassCmd "pass show email/self/aly/laptop | head -n1" SSLType IMAPS IMAPStore aly-remote @@ -59,6 +59,48 @@ Channels aly-inbox aly-sent aly-archive aly-drafts aly-junk aly-trash ## "aly@aaronly.me" }}} +## Account "weitian@aaronly.me" {{{ +IMAPAccount weitian +Host mail.aaronly.me +User weitian@aaronly.me@laptop +PassCmd "pass show email/self/weitian/laptop | head -n1" +SSLType IMAPS + +IMAPStore weitian-remote +Account weitian + +MaildirStore weitian-local +Path ~/mail/weitian/ + +Channel weitian-inbox +Master :weitian-remote:Inbox +Slave :weitian-local:inbox + +Channel weitian-sent +Master :weitian-remote:Sent +Slave :weitian-local:sent + +Channel weitian-archive +Master :weitian-remote:Archive +Slave :weitian-local:archive + +Channel weitian-drafts +Master :weitian-remote:Drafts +Slave :weitian-local:drafts + +Channel weitian-junk +Master :weitian-remote:Junk +Slave :weitian-local:junk + +Channel weitian-trash +Master :weitian-remote:Trash +Slave :weitian-local:trash + +Group weitian +Channels weitian-inbox weitian-sent weitian-archive weitian-drafts weitian-junk weitian-trash +## "weitian@aaronly.me" }}} + + ## Account "webmaster@aaronly.me" {{{ IMAPAccount webmaster Host mail.aaronly.me @@ -34,8 +34,16 @@ logfile ~/.cache/msmtp.log account aly host mail.aaronly.me from aly@aaronly.me -user aly@aaronly.me -passwordeval "pass show email/self/aly | head -n1" +user aly@aaronly.me@laptop +passwordeval "pass show email/self/aly/laptop | head -n1" + + +### weitian@aaronly.me ### +account weitian +host mail.aaronly.me +from weitian@aaronly.me +user weitian@aaronly.me@laptop +passwordeval "pass show email/self/weitian/laptop | head -n1" ### Gmail - aaronly.me ### 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 @@ -46,6 +46,25 @@ ;; 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 () (mu4e-message "Switched to context: outlook-aly")) |