#################################### #Configuration file for Offlineimap# #Created by Arno Gaboury # #Last Modified July 2012 # #################################### ################## #General Settings# ################## [general] accounts = Gmail maxsyncaccounts = 1 socktimeout = 60 ui = ttyui #disable to use fsync(). It reduces performance and write too much on ssd fsync = false ####################### #Mailbox name recorder# ####################### [mbnames] #Do not specify formats.Use Mutt ones enabled = no filename = /home/gabx/.config/mutt/muttmailboxes header = "mailboxes" peritem = "+%(accountnames)s/%(foldernames)s" sep = " " footer = "\n" #Do not synchronize trash folderfilter = lambda foldername:foldername not in '[Gmail]/Trash' # "[Gmail]/Some Folder" --> some_folder. This will give the local names of Gmail remote mailboxes nametrans = lambda folder: re.sub('^inbox$', 'INBOX', re.sub(' +', '_', re.sub(r'.*/(.*)$', r'\1', folder).lower())) ############### #Account Gmail# ############### [Account Gmail] localrepository = Gmail_local remoterepository = Gmail_remote #quick = 10 status_backend = sqlite [Repository Gmail_local] type=Maildir localfolders = /home/gabx/Mail/gmail #sep=. #Don't let offlineimap modify atime restoreatime = no [Repository Gmail_remote] type = Gmail realdelete = no #imap.gmail.com certificate to ensure to connect to Gmail cert_fingerprint = f3043dd689a2e7dddfbef82703a6c65ea9b634c1 remoteuser = arnaud.gaboury@gmail.com remotepass = prootx666 maxconnections = 2 #keepalive= 60