aboutsummaryrefslogtreecommitdiff
path: root/files/.offlineimaprc
blob: 09b56f81631fc7b2531787d350385174ba43c9d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[general]
accounts = Gmail
socktimeout = 60
fsync = False
pythonfile = ~/.offlineimap-utf7.py

[Account Gmail]
localrepository = LocalGmail
remoterepository = RemoteGmail
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).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).decode('imap4-utf-7').encode('utf-8')
folderfilter = lambda folder: folder not in [ '[Gmail]/Spam',
                                              '[Gmail]/Starred',
                                              '[Gmail]/Trash',
                                              '[Gmail]/Important',
                                            ]
createfolders = False