IMAPAccount gmail
Host imap.gmail.com
User vlada.dudr@gmail.com
TLSType IMAPS
PassCmd "gopass show mail/gmail"
CertificateFile /etc/ssl/certs/ca-certificates.crt

IMAPStore gmail-remote
Account gmail

MaildirStore gmail-local
# The trailing "/" is important
Path ~/Mail/vlada.dudr@gmail.com/
Inbox ~/Mail/vlada.dudr@gmail.com/INBOX
SubFolders verbatim

# Channel gmail-mail
# Far :gmail-remote:"[Gmail]/All Mail"
# Near :gmail-local:Gmail
# Sync All
# SyncState *
# Create Both
# Expunge Both

# Channel gmail-trash
# Far :gmail-remote:"[Gmail]/Trash"
# Near :gmail-local:Gmail-trash
# Sync All
# SyncState *
# Create Both
# Expunge Both

Group gmail
Channel gmail-mail
Channel gmail-trash

IMAPAccount tdj
Host mail.tango-dj.cz
User vladimir@tango-dj.cz
PassCmd "gopass show mail/tdj"
TLSType STARTTLS

IMAPStore tdj-remote
Account tdj

MaildirStore tdj-local
# The trailing "/" is important
Path ~/mail/vladimir@tango-dj.cz/
Inbox ~/mail/vladimir@tango-dj.cz/INBOX
SubFolders verbatim
#Flatten "."

Channel tdj
Far :tdj-remote:
Near :tdj-local:
Create Both
Sync All
# Save the synchronization state files in the relevant directory
SyncState *
Patterns *
Create Both
Expunge Both

# vim: ft=conf
