summary refs log tree commit diff stats
path: root/offlineimap
diff options
context:
space:
mode:
authorAlan Pearce2017-08-29 21:14:31 +0200
committerAlan Pearce2017-08-29 21:14:31 +0200
commit46a28c0496d4d8422056011556bde12e759ff6d1 (patch)
treece977a3099514addbdc84ad39258c4ecd6ae7f32 /offlineimap
parentf06e76405326ad7979ba5efe2408e89f802203b5 (diff)
downloadnixfiles-46a28c0496d4d8422056011556bde12e759ff6d1.tar.lz
nixfiles-46a28c0496d4d8422056011556bde12e759ff6d1.tar.zst
nixfiles-46a28c0496d4d8422056011556bde12e759ff6d1.zip
Add riseup to email system
Diffstat (limited to 'offlineimap')
-rw-r--r--offlineimap/.offlineimaprc31
1 files changed, 27 insertions, 4 deletions
diff --git a/offlineimap/.offlineimaprc b/offlineimap/.offlineimaprc
index ea98729f..1e157934 100644
--- a/offlineimap/.offlineimaprc
+++ b/offlineimap/.offlineimaprc
@@ -1,6 +1,6 @@
 [general]
 # List of accounts to be synced, separated by a comma.
-accounts = alanpearce.eu
+accounts = alanpearce.eu, riseup.net
 pythonfile = ~/.offlineimap.py
 
 [Account alanpearce.eu]
@@ -10,13 +10,13 @@ localrepository = alanpearce.eu-local
 remoterepository = alanpearce.eu-remote
 autorefresh = 20
 quick = 2
-postsynchook = mu index --maildir=%(personalmaildir)s --lazy-check --nocleanup --quiet
+postsynchook = mu index --muhome=~/.cache/mu/alanpearce.eu --maildir=%(alanpearcemaildir)s --lazy-check --nocleanup --quiet
  
 [Repository alanpearce.eu-local]
 # OfflineIMAP supports Maildir, GmailMaildir, and IMAP for local repositories.
 type = Maildir
 # Where should the mail be placed?
-localfolders = %(personalmaildir)s
+localfolders = %(alanpearcemaildir)s
 
 [Repository alanpearce.eu-remote]
 # Remote repos can be IMAP or Gmail, the latter being a preconfigured IMAP.
@@ -30,5 +30,28 @@ holdconnectionopen = yes
 usecompression = yes
 idlefolders = ['INBOX']
 
+[Account riseup.net]
+localrepository = riseup.net-local
+remoterepository = riseup.net-remote
+autorefresh = 20
+quick = 2
+postsynchook = mu index --muhome=~/.cache/mu/riseup.net --maildir=%(riseupmaildir)s --lazy-check --nocleanup --quiet
+
+[Repository riseup.net-local]
+type = Maildir
+localfolders = %(riseupmaildir)s
+
+[Repository riseup.net-remote]
+type = IMAP
+remotehost = mail.riseup.net
+remoteuser = alanpearce
+remotepasseval = get_pass("mail/riseup.net")
+sslcacertfile = /etc/ssl/certs/ca-certificates.crt
+keepalive = 1740
+holdconnectionopen = yes
+usecompression = yes
+idlefolders = ['INBOX']
+
 [DEFAULT]
-personalmaildir = ~/mail/alanpearce
+alanpearcemaildir = ~/mail/personal/alanpearce
+riseupmaildir = ~/mail/personal/riseup