-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.mbsyncrc
57 lines (47 loc) · 1.54 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
# The IMAP protocol keeps an "internaldate" for each message, which represents
# the date and time when the email was first received by the server. This is
# different from the date in the email's header, which is set by the sender.
# Some email clients and web interfaces, like Fastmail, use this internaldate
# to sort messages chronologically.
#
# By enabling the "CopyArrivalDate" option, mbsync will use the file's
# modification date from the local Maildir as the IMAP internaldate, and
# vice versa. This ensures that emails keep their correct received time when
# syncing, rather than using the time of synchronization. Without this option,
# the sync time might be used as the internaldate, causing emails to appear
# out of order in clients that rely on the internaldate for sorting.
CopyArrivalDate yes
# Accounts
IMAPAccount fastmail
Host imap.fastmail.com
UserCmd "secret-tool lookup service mail type username"
PassCmd "secret-tool lookup service mail type password"
TLSType IMAPS
CertificateFile /etc/ssl/certs/ca-certificates.crt
# Stores
IMAPStore fastmail-remote
Account fastmail
MaildirStore fastmail-local
Path ~/Mail/Fastmail/
Inbox ~/Mail/Fastmail/INBOX
SubFolders Verbatim
# Channels
Channel fastmail-fast
Far :fastmail-remote:
Near :fastmail-local:
Patterns INBOX Sent
Create Both
Expunge Both
SyncState *
Channel fastmail-slow
Far :fastmail-remote:
Near :fastmail-local:
Patterns % !INBOX !Sent !Notes !Memos
Create Both
Expunge Both
SyncState *
Sync Pull New Gone Flags
# Groups
Group fastmail
Channel fastmail-fast
Channel fastmail-slow