aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--_mbsyncrc46
-rw-r--r--_msmtprc12
-rw-r--r--_spacemacs.d/config/my-mu4e.el19
3 files changed, 73 insertions, 4 deletions
diff --git a/_mbsyncrc b/_mbsyncrc
index 3dca1cd..4ec898c 100644
--- a/_mbsyncrc
+++ b/_mbsyncrc
@@ -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
diff --git a/_msmtprc b/_msmtprc
index ff25b9d..3080d9f 100644
--- a/_msmtprc
+++ b/_msmtprc
@@ -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"))