aboutsummaryrefslogtreecommitdiff
path: root/files/.offlineimaprc
diff options
context:
space:
mode:
Diffstat (limited to 'files/.offlineimaprc')
-rw-r--r--files/.offlineimaprc8
1 files changed, 6 insertions, 2 deletions
diff --git a/files/.offlineimaprc b/files/.offlineimaprc
index 94a9a4c..47055ad 100644
--- a/files/.offlineimaprc
+++ b/files/.offlineimaprc
@@ -2,6 +2,7 @@
accounts = Gmail
socktimeout = 60
fsync = False
+pythonfile = ~/.offlineimap-utf7.py
[Account Gmail]
localrepository = LocalGmail
@@ -16,21 +17,24 @@ nametrans = lambda folder: { 'drafts': '[Gmail]/Drafts',
'sent': '[Gmail]/Sent Mail',
'flagged': '[Gmail]/Starred',
'archive': '[Gmail]/All Mail',
- }.get(folder, folder)
+ }.get(folder, folder).decode('utf-8').encode('imap4-utf-7')
[Repository RemoteGmail]
type = Gmail
+sslcacertfile = /etc/ssl/certs/ca-certificates.crt
maxconnections = 1
# Password stored in ~/.netrc
remoteuser = abobov@gmail.com
+auth_mechanisms = LOGIN
realdelete =no
nametrans = lambda folder: { '[Gmail]/Drafts': 'drafts',
'[Gmail]/Sent Mail': 'sent',
'[Gmail]/Starred': 'flagged',
'[Gmail]/All Mail': 'archive',
- }.get(folder, folder)
+ }.get(folder, folder).decode('imap4-utf-7').encode('utf-8')
folderfilter = lambda folder: folder not in [ '[Gmail]/Spam',
'[Gmail]/Starred',
'[Gmail]/Trash',
'[Gmail]/Important',
]
+createfolders = False