summaryrefslogtreecommitdiff
path: root/.mbsyncrc
blob: eccffe3648e0387ad9a998d6226089e12acf3abd (plain)
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
90
91
92
93
94
# -*- mode: conf-space; -*-

# ---- defaults

Create           Slave
# FastMail always expunges server-side.  mbsync author says this is a
# really bad idea.  Let's just have mbsync expunge client-side.
Expunge          Slave
SyncState        *

# ---- stores

MaildirStore     fmmaildir
Path             ~/.fmail/
Inbox            ~/.fmail/inbox
# Flatten          .

# Trash option doesn't seem to work.  Setting Trash to trash and
# Expunge to Slave makes deleted mail get moved into the trash folder,
# but it is left marked as deleted so it the FastMail IMAP server
# won't add it to the folder, however many times mbsync tries to put
# it there.  So just unbind deletion in mutt for now.

# Trash            trash

IMAPAccount      fastmail
Host             imap.fastmail.com
User             spwhitton@fastmail.com
PassCmd          "cat ~/local/auth/fmailsyncpass"
SSLType          IMAPS
SSLVersions      TLSv1.2
# obtained using /usr/bin/mbsync-get-cert on a host with a trusted connection
CertificateFile  ~/lib/fastmail.crt
SystemCertificates no

IMAPStore        fmimap
Account          fastmail
# UseNamespace     no
# PathDelimiter    .

# ---- mailboxes

Channel          fmaili
Master           :fmimap:INBOX
Slave            :fmmaildir:

Channel          fmails
Master           :fmimap:"Sent Items"
Slave            :fmmaildir:sent

# if I find myself wanting to separate listservs into different
# folders within Lists/ on the server side (unlikely because I am
# using notmuch), something like this should allow downloading all of
# them without the INBOX.Lists prefix:

# Channel fmaill
#   Master :fmimap:Lists/
#   Slave :fmmaildir:
#   Patterns * !INBOX

Channel          lists
Master           :fmimap:Lists
Slave            :fmmaildir:lists

Channel          fmaild
Master           :fmimap:Drafts
Slave            :fmmaildir:drafts

Channel          fmailt
Master           :fmimap:Trash
Slave            :fmmaildir:trash

Channel          spamtraining
Master           :fmimap:Training/Spam
Slave            :fmmaildir:spam

Channel          hamtraining
Master           :fmimap:Training/Ham
Slave            :fmmaildir:ham

# notes from tablet computer / smartphone
Channel          notes
Master           :fmimap:Notes
Slave            :fmmaildir:notes

Group            fastmail
Channel          fmaili
Channel          fmails
Channel          fmaild
Channel          fmailt
Channel          lists
Channel          notes
Channel          spamtraining
Channel          hamtraining