[general] accounts = Gmail socktimeout = 60 fsync = False [Account Gmail] localrepository = LocalGmail remoterepository = RemoteGmail status_backend = sqlite postsynchook = notmuch new [Repository LocalGmail] type = Maildir localfolders = ~/Mail/Gmail nametrans = lambda folder: { 'drafts': '[Gmail]/Drafts', 'sent': '[Gmail]/Sent Mail', 'flagged': '[Gmail]/Starred', 'archive': '[Gmail]/All Mail', }.get(folder, folder) [Repository RemoteGmail] type = Gmail maxconnections = 1 # Password stored in ~/.netrc remoteuser = abobov@gmail.com realdelete =no nametrans = lambda folder: { '[Gmail]/Drafts': 'drafts', '[Gmail]/Sent Mail': 'sent', '[Gmail]/Starred': 'flagged', '[Gmail]/All Mail': 'archive', }.get(folder, folder) folderfilter = lambda folder: folder not in [ '[Gmail]/Spam', '[Gmail]/Starred', '[Gmail]/Trash', '[Gmail]/Important', ]