add mutt-multi-account-setup
[dotfiles.git] / email / .config / offlineimap / config
index 42d5b4b..47be912 100644 (file)
@@ -1,25 +1,44 @@
 [general]
-pythonfile = ~/.config/offlineimap/offlineimap.py
 metadata = ~/.local/share/offlineimap
-accounts = net
+accounts = net,ru
 ui = blinkenlights
+pythonfile = ~/.config/offlineimap/offlineimap.py
+
+[mbnames]
+enabled = yes
+filename = ~/.local/share/offlineimap/mailboxes
+header = "mailboxes "
+peritem = "~/.local/share/offlineimap/mail/%(accountname)s/%(foldername)s/"
+sep = " "
+footer = "\n"
+incremental = yes
 
 [Account net]
-localrepository = Local
-remoterepository = Remote
+localrepository = netLocal
+remoterepository = netRemote
 autorefresh = 6
 quick = 10
 postsynchook = newmail.sh
-#proxy = SOCKS5:localhost:8008
 
-[Repository Local]
+[Account ru]
+localrepository = ruLocal
+remoterepository = ruRemote
+autorefresh = 6
+quick = 10
+postsynchook = newmail.sh
+
+[Repository netLocal]
 type = Maildir
-localfolders = ~/.local/share/offlineimap/mail
+localfolders = ~/.local/share/offlineimap/mail/net
 
-[Repository Remote]
+[Repository ruLocal]
+type = Maildir
+localfolders = ~/.local/share/offlineimap/mail/ru
+
+[Repository netRemote]
 type = IMAP
 folderfilter = lambda x: folderfilter(x)
-remotepasseval = mailpasswd()
+remotepasseval = mailpasswdnet()
 remotehost = lubbers.email
 remoteuser = mart@martlubbers.net
 ssl = yes
@@ -28,11 +47,13 @@ keepalive = 60
 holdconnectionopen = yes
 idlefolders = ['INBOX']
 
-[mbnames]
-enabled = yes
-filename = ~/.local/share/offlineimap/mailboxes
-header = "mailboxes "
-peritem = "~/.local/share/offlineimap/mail/%(foldername)s/"
-sep = " "
-footer = "\n"
-incremental = yes
+[Repository ruRemote]
+type = IMAP
+remotepasseval = mailpasswdru()
+remotehost = post.science.ru.nl
+remoteuser = mlubbers
+ssl = yes
+sslcacertfile = /etc/ssl/certs/ca-certificates.crt
+keepalive = 60
+holdconnectionopen = yes
+idlefolders = ['INBOX']