# -*- 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