IMAPAccount fastmail
Host imap.fastmail.com
Port 993
User thanosapollo@fastmail.com
PassCmd "emacsclient -e '(password-store-get-field \"fastmail.com/thanosapollo@fastmail.com\" \"smtp\")'"
SSLType IMAPS
SSLVersions TLSv1.2
CertificateFile /etc/ssl/certs/ca-certificates.crt

IMAPStore fastmail-remote
Account fastmail

MaildirStore fastmail-local
Path ~/Mail/
Inbox ~/Mail/Inbox
Trash ~/Mail/Trash/
SubFolders Verbatim

Channel fastmail
Far :fastmail-remote:
Near :fastmail-local:
Patterns *
Expunge None
CopyArrivalDate yes
Sync All
Create Both
SyncState *