IMAPAccount gmail
Host imap.gmail.com
User dustinswan@gmail.com
PassCmd "gpg -d ~/.gmail-password.gpg"
# SSL
UseIMAPS yes
#CertificateFile ~/.mail/gmail.pem

IMAPStore gmail-remote
Account gmail

MaildirStore gmail-local
Path ~/.mail/gmail/
Inbox ~/.mail/gmail/INBOX

Channel gmail
Master :gmail-remote:
Slave :gmail-local:
# Include everything
Patterns *
# Automatically create missing mailboxes, both locally and on the server
Create Both
# Expunge Both
# Save the synchronization state files in the relevant directory
SyncState *