-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mbsyncrc
89 lines (78 loc) · 2.02 KB
/
.mbsyncrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# ---ATTENTION---
# mbsync configuration is seperated in many *sections*
# each section has to be written on continuous lines
# otherwise, it will break
# ---------------
IMAPAccount chen
Host imap.gmail.com # Address to connect to
Port 993
Timeout 0 # unlimited
# Use TLS
# CertificateFile /etc/ssl/certs/ca-certificates.crt
SSLType IMAPS
SystemCertificates yes
User [email protected]
PassCmd "oama access [email protected]" # use mailctl to handle authentication
AuthMechs XOAUTH2
IMAPStore gmail-remote
Account chen
MaildirStore gmail-local
SubFolders Verbatim
Path ~/.mail/ # The trailing "/" is important
Inbox ~/.mail/Inbox
Channel gmail
Far :gmail-remote:"INBOX"
Near :gmail-local:Inbox
# Far :gmail-remote:
# Near :gmail-local:
# Pattern *
# Exclude everything under the internal [gmail] folder
# Automatically create missing mailboxes, both locally and on the server
Create Both
# Sync the movement of messages between folders and deletions, add after making sure the sync works
Expunge Both
# Save the synchronization state files in the relevant directory
SyncState *
# 所有邮件 &YkBnCZCuTvY-
Channel gmail-archive
Far :gmail-remote:"[Gmail]/&YkBnCZCuTvY-"
Near :gmail-local:Archive
Create Near
Expunge Both
SyncState *
# 已发邮件 &XfJT0ZCuTvY-
Channel gmail-sent
Far :gmail-remote:"[Gmail]/&XfJT0ZCuTvY-"
Near :gmail-local:Sent
Create Near
SyncState *
Expunge Both
# 已删除邮件 &XfJSIJZkkK5O9g-
Channel gmail-trash
Far :gmail-remote:"[Gmail]/&XfJSIJZkkK5O9g-"
Near :gmail-local:Trash
Create Near
SyncState *
Expunge Both
# 草稿 &g0l6Pw-
Channel gmail-drafts
Far :gmail-remote:"[Gmail]/&g0l6Pw-"
Near :gmail-local:Drafts
Create Near
SyncState *
Expunge Both
# 垃圾邮件 &V4NXPpCuTvY-
Channel gmail-junk
Far :gmail-remote:"[Gmail]/&V4NXPpCuTvY-"
Near :gmail-local:Junk
Create Near
SyncState *
Expunge Both
# 已加星标 &XfJSoGYfaAc-
Channel gmail-Starred
Far :gmail-remote:"[Gmail]/&XfJSoGYfaAc-"
Near :gmail-local:Starred
Create Near
SyncState *
Expunge Both
# 重要 &kc2JgQ-