[general]
accounts = DustinswanGmail, DswanIOCOM
pythonfile=~/.mutt/offlineimap.py
maxsyncaccounts = 2
# ui = quiet

[mbnames]
enabled = yes
filename = ~/.mutt/mailboxes
header = "mailboxes "
peritem = "+%(accountname)s/%(foldername)s"
sep = " "
footer = "\n"

[Account DustinswanGmail]
localrepository = DustinswanGmail-Local
remoterepository = DustinswanGmail-Remote
autorefresh = 5
quick = 10
postsynchook = notmuch new

[Repository DustinswanGmail-Local]
type = Maildir
localfolders = ~/.mail/DustinswanGmail
nametrans = lambda folder: {'drafts':    '[Gmail]/Drafts',
                            'sent':      '[Gmail]/Sent Mail',
                            'flagged':   '[Gmail]/Starred',
                            'trash':     '[Gmail]/Trash',
                            'archive':   '[Gmail]/All Mail',
                            'important': '[Gmail]/Important',
                           }.get(folder, folder)

[Repository DustinswanGmail-Remote]
maxconnections = 1
type = Gmail
remoteuser = dustinswan@gmail.com
remotepasseval = gmail_password()
realdelete = no
nametrans = lambda folder: {'[Gmail]/Drafts':    'drafts',
                            '[Gmail]/Sent Mail': 'sent',
                            '[Gmail]/Starred':   'flagged',
                            '[Gmail]/Trash':     'trash',
                            '[Gmail]/All Mail':  'archive',
                            '[Gmail]/Important': 'important',
                           }.get(folder, folder)

folderfilter = lambda folder: folder not in ['[Gmail]/Trash',
                                             '[Gmail]/Spam',
                                            ]

cert_fingerprint = b0ba392bba326e6feb1add4d04fa0fb86cd173fa

[Account DswanIOCOM]
localrepository = DswanIOCOM-Local
remoterepository = DswanIOCOM-Remote
autorefresh = 5
quick = 10
postsynchook = notmuch new

[Repository DswanIOCOM-Local]
type = Maildir
localfolders = ~/.mail/DswanIOCOM

folderfilter = lambda f: f not in ['drafts']

[Repository DswanIOCOM-Remote]
type = IMAP
remotehost = secure.emailsrvr.com
remoteuser = dswan@insors.com
remotepasseval = iocom_password()