aboutsummaryrefslogtreecommitdiff
path: root/offlineimaprc
blob: 209cb7d6544dd8b1d9f74b49c2eb010f84bd745f (plain)
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
40
41
42
43
44
[general]
ui = ttyui
accounts = Gmail
# This will suppress anything but errors
ui = quiet


[Account Gmail]
localrepository = Gmail-Local
remoterepository = Gmail-Remote
# Minutes between syncs
autorefresh = 5
# Number of quick-syncs between autorefreshes. Quick-syncs do not update if the
# only changes were to IMAP flags
quick = 10

[Repository Gmail-Local]
type = Maildir
localfolders = ~/.mail/Gmail
nametrans = lambda folder: {'drafts':  '[Gmail]/Drafts',
                            'sent':    '[Gmail]/Sent Mail',
                            'flagged': '[Gmail]/Starred',
                            'trash':   '[Gmail]/Trash',
                            'spam':    '[Gmail]/Spam',
                            'archive': '[Gmail]/All Mail',
                            }.get(folder, folder)


[Repository Gmail-Remote]
type = Gmail
remoteuser = vasil.zlatanov@gmail.com
remotepass = ****
realdelete = no
maxconnections = 1
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
nametrans = lambda folder: {'[Gmail]/Drafts':    'drafts',
                            '[Gmail]/Sent Mail': 'sent',
                            '[Gmail]/Starred':   'flagged',
                            '[Gmail]/Trash':     'trash',
                            '[Gmail]/Spam':      'spam',
                            '[Gmail]/All Mail':  'archive',
                            }.get(folder, folder)