summaryrefslogtreecommitdiff
path: root/.config/offlineimap/offlineimaprc.template
blob: d6cae1584d26ddb874f44c9ef0a0384a2dc10665 (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]
pythonfile      = ~/.config/offlineimap/offlineimap.py
# accounts = account1, account2
accounts        = account1
maxsyncaccounts = 3
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('(.*&AMk-.*|^bak.*|.*drafts$|.*spam$|.*sent$|.*trash$)', foldername)

[Account account1]
localrepository  = local-account1
remoterepository = remote-account1
presynchook      = /usr/bin/imapfilter -vc ~/.config/imapfilter/account1.lua
postsynchook     = notmuch new
# proceed with care
# utf8foldernames = yes

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

[Repository remote-account1]
type           = IMAP
ssl            = yes
remotehost     = imap....
remoteport     = 993
remoteuser     = account1
remotepasseval = get_pass("path/to/pass")
sslcacertfile  = /etc/ssl/certs/ca-certificates.crt
#subscribedonly   = yes

# vim: ft=dosini