summaryrefslogtreecommitdiff
path: root/.mbsyncrc
blob: a881c29a673ac1575638a93004b1df386048de3d (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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# -*- 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
AuthMechs        LOGIN
PassCmd          "cat ~/local/auth/fmailsyncpass"
SSLType          IMAPS
SSLVersions      TLSv1.2
CertificateFile  ~/src/dotfiles/lib-src/certs/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

# So long as I'm using a mail provider that supports Sieve, can install this
# to deliver all mail which has a List-Id into a separate Lists folder.  The
# sole purpose of this is to make INBOX more useful when accessing it from
# webmail or other non-notmuch clients, by filtering out the discussion lists
# firehose.  Some mail addressed directly to me has a bogus List-Id header so
# this will misfilter it, so sometimes I will have to look in both folders in
# a non-notmuch client anyway.
#
# My notmuch saved queries know how to handle mailing list and non-mailing
# list List-IDs without relying on the folder:inbox / folder:lists distinction
# at all.  So if a mail provider has no way to install custom sieve scripts,
# it doesn't matter much.  At the present time the script is *not* installed.
# If I find myself having to use webmail a lot more, could create the
# INBOX.Lists folder and install it again.  Cf. ~/doc/archive/fastmail.sieve
# for the most recent more involved script I had installed.

#    if header :regex ["List-Id","List-Post"] ".+"
#    {
#    	fileinto "INBOX.Lists";
#    	stop;
#    }
#    else
#    {
#    	keep;
#    }

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

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

Channel          fmailj
Master           :fmimap:"Junk Mail"
Slave            :fmmaildir:junk

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          fmailt
# Channel          lists
Channel          notes
Channel          fmailj
Channel          spamtraining
Channel          hamtraining