Offlineimap

Just upgraded my Debian GNU/Linux, this upgraded offlineimap so I needed to modify my configuration (i.e. .offlineimaprc) adding the cert_fingerprint in the remote repository stanza.

This now looks like:

[cc lang="apache"]
[general]
metadata = ~/.offlineimap
accounts = gmail

socktimeout = 60
fsync = false

[mbnames]

enabled = yes
filename = ~/Mutt/muttrc.mailboxes
header = “mailboxes ”
peritem = “=/%(foldername)s”
sep = ‘/’
footer = “\n”

[Account gmail]
localrepository = Local-Gmail
remoterepository = Remote-Gmail

autorefresh = 20
quick = 10
expunge = no

[Repository Local-Gmail]

type = Maildir
localfolders = ~/Mail
sep = /

nametrans = lambda folder: re.sub(‘spam’, ‘[Google Mail]/Spam’,
re.sub(‘drafts’, ‘[Google Mail]/Drafts’,
re.sub(‘sent’, ‘[Google Mail]/Sent Mail’,
re.sub(‘flagged’, ‘[Google Mail]/Starred’,
re.sub(‘trash’, ‘[Google Mail]/Trash’,
re.sub(‘important’, ‘[Google Mail]/Important’,
re.sub(‘archive’, ‘[Google Mail]/All Mail’, folder)))))))

folderfilter = lambda foldername: foldername not in [ '[Google Mail]/Posta inviata’, ‘[Google Mail]/Trash’, ‘[Google Mail]/Cestino’, ‘[Google Mail]/Important’, ‘[Google Mail]/Importanti’, ‘[Google Mail]/Bozze’, ‘[Google Mail]/Spam’, ‘[Google Mail]/Drafts’, ‘[Google Mail]/Sent Mail’, ‘[Google Mail]/Trash’]

[Repository Remote-Gmail]

cert_fingerprint = f3043dd689a2e7dddfbef82703a6c65ea9b634c1
maxconnections = 5
type = Gmail
remoteuser = my_user@gmail.com
remotepass = my_password
realdelete = no
ssl = yes
folderfilter = lambda foldername: foldername not in ['[Google Mail]/All Mail’, ‘[Google Mail]/Important’, ‘[Google Mail]/Spam’, ‘[Google Mail]/Drafts’, ‘[Google Mail]/Trash’, ‘[Google Mail]/Sent Mail’ ]
nametrans = lambda folder: re.sub(‘.*Spam$’, ‘spam’,
re.sub(‘.*Drafts$’, ‘drafts’,
re.sub(‘.*Sent Mail$’, ‘sent’,
re.sub(‘.*Starred$’, ‘flagged’,
re.sub(‘.*Trash$’, ‘trash’,
re.sub(‘.*Important$’, ‘important’,
re.sub(‘.*All Mail$’, ‘archive’, folder)))))))
[/cc]