summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2012-01-18 20:26:13 +0100
committerJonas Smedegaard <dr@jones.dk>2012-01-18 20:26:13 +0100
commit38331f458508507cc4b9d029b28977e81c26b41a (patch)
treeda8d46b6cd8a10983b5507c4077a77ddd7b85316
Initially add offlineimap config.
-rw-r--r--.offlineimap.py13
-rw-r--r--.offlineimaprc244
2 files changed, 257 insertions, 0 deletions
diff --git a/.offlineimap.py b/.offlineimap.py
new file mode 100644
index 0000000..144fcfa
--- /dev/null
+++ b/.offlineimap.py
@@ -0,0 +1,13 @@
+import re
+
+# infrequently used mailboxes
+less_re = re.compile('^(INBOX.*|Drafts|Templates|Sent|Sendt post)$')
+
+# mbox is INBOX showing up double on UW-imap servers...
+noise_re = re.compile('^(mbox|spam|Junk|Trash|broken(headers)?|INBOX\.olpc)$')
+
+def less( foldername ):
+ return (less_re.search(foldername) and not noise_re.search(foldername))
+
+def more( foldername ):
+ return (not less_re.search(foldername) and not noise_re.search(foldername))
diff --git a/.offlineimaprc b/.offlineimaprc
new file mode 100644
index 0000000..34aab00
--- /dev/null
+++ b/.offlineimaprc
@@ -0,0 +1,244 @@
+# jones done.Nicolai_Wallner
+# debian done.Skolelinux.linuxiskolen
+
+[general]
+ui = blinkenlights
+#accounts = jones, debian, bb, hb, bu, dgih, lab, jones-more, debian-more, bb-more, hb-more, bu-more, dgih-more, lab-more
+accounts = jones, debian, hb, bu, dgih, lab, db, jones-more, debian-more, hb-more, bu-more, dgih-more, lab-more, db-more
+maxsyncaccounts = 20
+maxconnections = 3
+pythonfile = ~/.offlineimap.py
+
+[Account jones]
+localrepository = jones-here
+remoterepository = jones-there
+autorefresh = 5
+quick = 10
+postsynchook = notmuch new
+
+[Account jones-more]
+localrepository = jones-here
+remoterepository = jones-there-more
+autorefresh = 30
+quick = 10
+
+[Account debian]
+localrepository = debian-here
+remoterepository = debian-there
+autorefresh = 5
+quick = 10
+
+[Account debian-more]
+localrepository = debian-here
+remoterepository = debian-there-more
+autorefresh = 30
+quick = 10
+
+[Account bb]
+localrepository = bb-here
+remoterepository = bb-there
+autorefresh = 5
+quick = 10
+
+[Account bb-more]
+localrepository = bb-here
+remoterepository = bb-there-more
+autorefresh = 0
+quick = 10
+
+[Account hb]
+localrepository = hb-here
+remoterepository = hb-there
+autorefresh = 5
+quick = 10
+
+[Account hb-more]
+localrepository = hb-here
+remoterepository = hb-there-more
+autorefresh = 30
+quick = 10
+
+[Account bu]
+localrepository = bu-here
+remoterepository = bu-there
+autorefresh = 5
+quick = 10
+
+[Account bu-more]
+localrepository = bu-here
+remoterepository = bu-there-more
+autorefresh = 30
+quick = 10
+
+[Account db]
+localrepository = db-here
+remoterepository = db-there
+autorefresh = 5
+quick = 10
+
+[Account db-more]
+localrepository = db-here
+remoterepository = db-there-more
+autorefresh = 30
+quick = 10
+
+[Account dgih]
+localrepository = dgih-here
+remoterepository = dgih-there
+autorefresh = 5
+quick = 10
+
+[Account dgih-more]
+localrepository = dgih-here
+remoterepository = dgih-there-more
+autorefresh = 30
+quick = 10
+
+[Account lab]
+localrepository = lab-here
+remoterepository = lab-there
+autorefresh = 5
+quick = 10
+
+[Account lab-more]
+localrepository = lab-here
+remoterepository = lab-there-more
+autorefresh = 30
+quick = 10
+
+[Repository jones-here]
+type = Maildir
+localfolders = ~/Maildir/jones
+
+[Repository jones-there]
+type = IMAP
+preauthtunnel = ssh -C -q mail.jones.dk '/usr/sbin/dovecot --exec-mail imap'
+holdconnectionopen = no
+folderfilter = less
+
+[Repository jones-there-more]
+type = IMAP
+preauthtunnel = ssh -C -q mail.jones.dk '/usr/sbin/dovecot --exec-mail imap'
+holdconnectionopen = no
+folderfilter = more
+
+[Repository debian-here]
+type = Maildir
+localfolders = ~/Maildir/debian
+
+[Repository debian-there]
+type = IMAP
+preauthtunnel = ssh -C -q jonas-debian@mail.jones.dk '/usr/sbin/dovecot --exec-mail imap'
+holdconnectionopen = no
+folderfilter = less
+
+[Repository debian-there-more]
+type = IMAP
+preauthtunnel = ssh -C -q jonas-debian@mail.jones.dk '/usr/sbin/dovecot --exec-mail imap'
+holdconnectionopen = no
+folderfilter = more
+
+[Repository bb-here]
+type = Maildir
+localfolders = ~/Maildir/bb
+
+[Repository bb-there]
+type = IMAP
+preauthtunnel = ssh -C -q mail.bitbase.dk '/usr/sbin/dovecot --exec-mail imap'
+holdconnectionopen = no
+folderfilter = less
+
+[Repository bb-there-more]
+type = IMAP
+preauthtunnel = ssh -C -q mail.bitbase.dk '/usr/sbin/dovecot --exec-mail imap'
+holdconnectionopen = no
+folderfilter = more
+
+[Repository hb-here]
+type = Maildir
+localfolders = ~/Maildir/hb
+
+[Repository hb-there]
+type = IMAP
+preauthtunnel = ssh -C -q mail.homebase.dk '/usr/sbin/dovecot --exec-mail imap'
+holdconnectionopen = no
+folderfilter = less
+
+[Repository hb-there-more]
+type = IMAP
+preauthtunnel = ssh -C -q mail.homebase.dk '/usr/sbin/dovecot --exec-mail imap'
+holdconnectionopen = no
+folderfilter = more
+
+[Repository bu-here]
+type = Maildir
+localfolders = ~/Maildir/bu
+
+[Repository bu-there]
+type = IMAP
+preauthtunnel = ssh -C -q mail.borneuni.dk '/usr/sbin/dovecot --exec-mail imap'
+holdconnectionopen = no
+folderfilter = less
+
+[Repository bu-there-more]
+type = IMAP
+preauthtunnel = ssh -C -q mail.borneuni.dk '/usr/sbin/dovecot --exec-mail imap'
+holdconnectionopen = no
+folderfilter = more
+
+[Repository db-here]
+type = Maildir
+localfolders = ~/Maildir/db
+
+[Repository db-there]
+type = IMAP
+preauthtunnel = ssh -C -q db.jones.dk '/usr/sbin/dovecot --exec-mail imap'
+holdconnectionopen = no
+folderfilter = less
+
+[Repository db-there-more]
+type = IMAP
+preauthtunnel = ssh -C -q db.jones.dk '/usr/sbin/dovecot --exec-mail imap'
+holdconnectionopen = no
+folderfilter = more
+
+[Repository dgih-here]
+type = Maildir
+localfolders = ~/Maildir/dgih
+
+[Repository dgih-there]
+type = IMAP
+preauthtunnel = ssh -C -q mail.dgi-huset.dk '/usr/sbin/dovecot --exec-mail imap'
+holdconnectionopen = no
+folderfilter = less
+
+[Repository dgih-there-more]
+type = IMAP
+preauthtunnel = ssh -C -q mail.dgi-huset.dk '/usr/sbin/dovecot --exec-mail imap'
+holdconnectionopen = no
+folderfilter = more
+
+[Repository lab-here]
+type = Maildir
+localfolders = ~/Maildir/lab
+
+[Repository lab-there]
+type = IMAP
+preauthtunnel = ssh -C -q mail.107b.dk '/usr/sbin/dovecot --exec-mail imap'
+holdconnectionopen = no
+folderfilter = less
+
+[Repository lab-there-more]
+type = IMAP
+preauthtunnel = ssh -C -q mail.107b.dk '/usr/sbin/dovecot --exec-mail imap'
+holdconnectionopen = no
+folderfilter = more
+
+#[Repository TEMPLATE_nossltunnel_imap]
+#type = IMAP
+#ssl = yes
+#remotehost = mail.example.com
+#remoteuser = johndoe
+#remotepassfile = ~/.offlineimap-example.com-pw
+#holdconnectionopen = no
+#folderfilter = less