summaryrefslogtreecommitdiff
path: root/.config/offlineimap/offlineimaprc
blob: 26cc4640c8030be0d326f4031e17944532d59949 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
[general]
pythonfile      = ~/.config/offlineimap/offlineimap.py
accounts        = ens, inria
maxsyncaccounts = 2
socktimeout     = 60
ui              = Quiet

[mbnames]

# Create a list of available mailboxes for mutt
enabled = yes

filename = ~/.config/mutt/muttmailboxes
header   = "mailboxes "
peritem  = "+%(accountname)s/%(foldername)s"
sep      = " "
footer   = "\n"

# Exclude these mailboxes from the above mailbox list
folderfilter = lambda accountname, foldername: not re.search('(^bak.*|.*drafts$|.*spam$|.*sent$|.*trash$)', foldername)


[Account ens]
localrepository  = local-ens
remoterepository = remote-ens
presynchook      = /usr/bin/imapfilter -vc ~/.config/imapfilter/ens.lua
postsynchook     = notmuch new

[Account inria]
localrepository  = local-inria
remoterepository = remote-inria
presynchook      = /usr/bin/imapfilter -vc ~/.config/imapfilter/inria.lua
postsynchook     = notmuch new

[Repository local-ens]
type         = Maildir
localfolders = ~/.mail/ens

[Repository remote-ens]
type           = IMAP
ssl            = yes
remotehost     = imaps.ens-lyon.fr
remoteport     = 993
remoteuser     = piannett
remotepasseval = get_pass("institutions/ensl/pass")
sslcacertfile  = /etc/ssl/certs/ca-certificates.crt
#subscribedonly   = yes

# Translate remote names to local names:
# This one does:
# 1. Transforms names to lowercase
# 2. Replaces spaces with underscores
#nametrans = lambda foldername: re.sub('-', '.', foldername.lower())
#folderfilter = lambda f: f not in ['Sent', 'Junk', 'Trash', 'Drafts', 'INBOX']

[Repository local-inria]
type         = Maildir
localfolders = ~/.mail/inria

[Repository remote-inria]
type           = IMAP
ssl            = yes
remotehost     = zimbra.inria.fr
remoteport     = 993
remoteuser     = paiannet
remotepasseval = get_pass("institutions/inria/pass")
sslcacertfile  = /etc/ssl/certs/ca-certificates.crt

folderfilter   = lambda f: f not in ['sent', 'junk', 'trash', 'drafts', 'inbox']

# vim: ft=dosini