SyncState * Sync Pull All Push All IMAPAccount gmail Host imap.gmail.com User matthew.lemon@gmail.com PassCmd "echo $(pass google_isync_mbsync)" SSLType IMAPS #CertificateFile /etc/ssl/certs/ca-certificates.crt IMAPStore gmail-remote Account gmail MaildirStore gmail-local SubFolders Verbatim Path ~/.mail/gmail/ Inbox ~/.mail/gmail/Inbox Channel gmail Far :gmail-remote: Near :gmail-local: # Exclude everything under the internal [Gmail] folder, except the interesting folders Patterns * ![Gmail]* "[Gmail]/Sent Mail" "[Gmail]/Starred" "[Gmail]/All Mail" # Or include everything #Patterns * # Automatically create missing mailboxes, both locally and on the server Create Both # Sync the movement of messages between folders and deletions, add after making sure the sync works Expunge Both # Save the synchronization state files in the relevant directory SyncState * IMAPAccount mrlemon@purelymail.com Host imap.purelymail.com Port 993 User mrlemon@purelymail.com PassCmd "echo $(pass purelymail_neomutt)" SSLType IMAPS IMAPStore purelymail-remote Account mrlemon@purelymail.com UseNamespace yes MaildirStore purelymail-local SubFolders Verbatim Inbox ~/.mail/purelymail/INBOX Path ~/.mail/purelymail/ Flatten . Channel purelymailchannel Far :purelymail-remote: Near :purelymail-local: Patterns * Create Both Expunge Both SyncState *