aboutsummaryrefslogtreecommitdiff
path: root/.offlineimaprc
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@debian.org>2012-05-28 11:26:01 -0400
committerRyan Kavanagh <rak@debian.org>2012-05-28 11:26:01 -0400
commit391dc2314003d5325c4a1a68b78468f74dde19f4 (patch)
tree981ec39788dce45d07944ba2efcdaac539e19ce4 /.offlineimaprc
parentHave offlineimap watch GMail INBOX for new mail (diff)
McGill SOCS config for offlineimap
Diffstat (limited to '.offlineimaprc')
-rw-r--r--.offlineimaprc37
1 files changed, 35 insertions, 2 deletions
diff --git a/.offlineimaprc b/.offlineimaprc
index 4873d7c..e771287 100644
--- a/.offlineimaprc
+++ b/.offlineimaprc
@@ -3,11 +3,11 @@
[general]
metadata = ~/.offlineimap
-accounts = GMAIL, QueensU
+accounts = GMAIL, QueensU, McGillSOCS
#, GMAIL
pythonfile=~/.offlineimap.py
# EIMEAR
-maxsyncaccounts = 2
+maxsyncaccounts = 4
#### GMAIL Account Settings
[Account GMAIL]
@@ -70,6 +70,39 @@ folderfilter = lambda folder: folder.startswith('QueensU.')
# Remove QueensU prefix when copying to remote
nametrans = lambda folder: re.sub('^QueensU.', '', folder)
+#### McGillSOCS mail
+[Account McGillSOCS]
+localrepository = LocalMcGillSOCS
+remoterepository = RemoteMcGillSOCS
+autorefresh = 20
+quick = 10
+# presynchook = imapfilter
+foldersort = lamba x, y: cmp(x, y)
+postsynchook = /home/ryan/bin/run-mailcheck && notmuch new
+
+[Repository RemoteMcGillSOCS]
+foldersort = lambda x, y: cmp(y, x)
+type = IMAP
+remoteuser = ryank
+remotehost = mail.cs.mcgill.ca
+remotepass = MCGSOCS_PASS
+ssl = yes
+cert_fingerprint = 20:7B:11:4F:C9:CD:4A:52:F5:86:A3:50:A4:DF:AB:05:C5:C7:AD:8B
+# sslcacertfile = /home/ryan/.mutt/certs/mcgillsocs.crt
+# Add McGSOCS prefix when copying to local
+nametrans = lambda foldername: 'McGSOCS.' + foldername
+folderfilter = lambda folder: folder not in ['user.globalspam']
+
+[Repository LocalMcGillSOCS]
+type = IMAP
+remotehost = localhost
+remoteuser = ryan
+remotepass = LOCAL_PASS
+# Only copy folders from local to remote if they start with McGSOCS
+folderfilter = lambda folder: folder.startswith('McGSOCS.')
+# Remove McGSOCS prefix when copying to remote
+nametrans = lambda folder: re.sub('^McGSOCS.', '', folder)
+
[mbnames]
enabled = no
filename = .muttrc.mailboxes