This commit is contained in:
xinyz 2021-01-04 21:58:58 +08:00
parent 0305e1dc5a
commit d56546fb92
5 changed files with 91 additions and 0 deletions

View file

@ -0,0 +1,17 @@
-----BEGIN PGP MESSAGE-----
hQIMA2aMbQr8T6x3AQ/8CCrHFMUam/Nv2swN3g/Q3VVqHhn7YeEDil9n0lWf6n1O
9q0WdKgcmoawOiA01Qrb9Pw2UXV9DiEZHL3xYZI6FrD4MDbn6E4mEgIchmw8WoCM
R0XPkaaNrDHuyP0ua/CnElDtjcH1rSUVYaCaEO5nfkelHGFehTfI1M00+qLHd/zh
EjQeOwISKaOxLHZWX/BZOdPLIvcbQ9r6w9rwwgv5R8y5OtJQaXHWKEEDiDQY0/1a
bzLZfrjEkSmDCrrw5/tuV9M8Pxgdq9zs4v6ClAM7TtpHvADMaj/jhwYxPmUSxAsT
udtAmk1FWs20xZ9k3vTLiIQqAm3H/jN2gOaLC7qG3Vdx55oKJlIQqWKRmQk6Zh0g
tSg5R9uhJgTnFLHTY4OEAfRLPmNMT2szKVfBWq06Det3/qbYlScm+zZ0wjN1cRd4
/dE/htTm9NSy0iW2tkL7uIPzi2w4UDzDU2ox5wFaXLRPkrXjjSIrEXua1yKsPbLR
AXfu0pJoLQR6H/kVJH4MdWH8L6ooeio7GEPQu/ltH/GG25/YL2UJ1BdevzcfmxkU
1VZIQgqUblq9d54+glGSRp14a/7HHg1k3fqFRhJjQHOpI67aFKbgdd3KDh0Yduix
k2YMPQeOG0mHXgzrRSj0wWTGfq07svyDovN0f3unrCzvNeFIEYobTZ8MLiGVUkHS
SAHFVwPI2sOB1xFLuUlBuwRjrdd/VFcD3+tm/RhBkZvDOvcNERAsbXVwdpkVOQFN
C04UlHrymqpgDPG8UUp0DjwobJCgsFxZ1Q==
=ExXG
-----END PGP MESSAGE-----

View file

@ -149,6 +149,42 @@ Group outlook-xinyongzhong
Channel outlook-xinyongzhong-inbox Channel outlook-xinyongzhong-inbox
Channel outlook-xinyongzhong-junk Channel outlook-xinyongzhong-junk
#################################
# Account outlook-xinyz_hk #
#################################
IMAPAccount outlook-xinyz_hk
Host imap-mail.outlook.com
User xinyz_hk@outlook.com
PassCmd "gpg -r xinyz --quiet -d ~/dotfiles/common/pass/outlook-xinyz_hk.gpg.asc"
SSLType IMAPS
SSLVersions TLSv1.2
# Remote storage
IMAPStore outlook-xinyz_hk-remote
Account outlook-xinyz_hk
# Local storage
MaildirStore outlook-xinyz_hk-local
Path ~/Mail/outlook-xinyz_hk/
Inbox ~/Mail/outlook-xinyz_hk/INBOX
Channel outlook-xinyz_hk-inbox
Master :outlook-xinyz_hk-remote:"Inbox"
Slave :outlook-xinyz_hk-local:INBOX
Create Both
Expunge Both
Channel outlook-xinyz_hk-junk
Master :outlook-xinyz_hk-remote:"Junk"
Slave :outlook-xinyz_hk-local:junk
Create Both
Expunge Both
Group outlook-xinyz_hk
Channel outlook-xinyz_hk-inbox
Channel outlook-xinyz_hk-junk
################################# #################################
########## Account qq ########## ########## Account qq ##########
################################# #################################

View file

@ -38,6 +38,18 @@ tls on
tls_starttls on tls_starttls on
tls_certcheck off tls_certcheck off
account outlook-xinyz_hk
host smtp.live.com
port 587
protocol smtp
auth on
user xinyz_hk@outlook.com
passwordeval "gpg -r xinyz --quiet -d ~/dotfiles/common/pass/outlook-xinyz_hk.gpg.asc"
from xinyz_hk@outlook.com
tls on
tls_starttls on
tls_certcheck off
account qq account qq
host smtp.qq.com host smtp.qq.com
port 465 port 465

View file

@ -0,0 +1,23 @@
set from = "xinyz_hk@outlook.com"
set sendmail = "/usr/local/bin/msmtp -a outlook-xinyz_hk"
# Set folders
set spoolfile = "+outlook-xinyz_hk/INBOX"
set postponed = "+outlook-xinyz_hk/INBOX"
set record = "+outlook-xinyz_hk/INBOX"
set trash = "+outlook-xinyz_hk/INBOX"
color status cyan default
macro index o "<shell-escape>mbsync outlook-xinyz_hk<enter>" "run mbsync to sync mail for this account"
macro index,pager s \
"<enter-command>set my_old_resolve=\$resolve noresolve<enter>\
<tag-prefix><clear-flag>n<enter-command>set resolve=\$my_old_resolve<enter>\
<save-message>+outlook-xinyz_hk/junk<enter>" \
"mark as read and move to junk folder"
macro index,pager i \
"<save-message>+outlook-xinyz_hk/INBOX<enter>" \
"move message to the inbox"

View file

@ -87,6 +87,8 @@ named-mailboxes QQ =qq/INBOX
mailboxes =qq/sent =qq/drafts =qq/junk =qq/trash mailboxes =qq/sent =qq/drafts =qq/junk =qq/trash
named-mailboxes ok-xinyz =outlook-xinyongzhong/INBOX named-mailboxes ok-xinyz =outlook-xinyongzhong/INBOX
mailboxes =outlook-xinyongzhong/junk mailboxes =outlook-xinyongzhong/junk
named-mailboxes ok-xinyz_hk =outlook-xinyz_hk/INBOX
mailboxes =outlook-xinyz_hk/junk
# source colors and keybindings # source colors and keybindings
# keeping those in one place makes it easier for my brain # keeping those in one place makes it easier for my brain
@ -106,4 +108,5 @@ folder-hook airocpss/* source ~/.mutt/accounts/airocpss
folder-hook hotmail/* source ~/.mutt/accounts/hotmail folder-hook hotmail/* source ~/.mutt/accounts/hotmail
folder-hook qq/* source ~/.mutt/accounts/qq folder-hook qq/* source ~/.mutt/accounts/qq
folder-hook outlook-xinyongzhong/* source ~/.mutt/accounts/outlook-xinyongzhong folder-hook outlook-xinyongzhong/* source ~/.mutt/accounts/outlook-xinyongzhong
folder-hook outlook-xinyz_hk/* source ~/.mutt/accounts/outlook-xinyz_hk