From cb7f576bbc881e68a43cdefdceaab1c698cbddf9 Mon Sep 17 00:00:00 2001
From: Ryan Kavanagh <rak@debian.org>
Date: Mon, 4 Jun 2012 12:01:37 -0400
Subject: Added McGill email address

---
 .offlineimaprc | 35 ++++++++++++++++++++++++++++++++++-
 1 file changed, 34 insertions(+), 1 deletion(-)

(limited to '.offlineimaprc')

diff --git a/.offlineimaprc b/.offlineimaprc
index eeb2c4a..eb81b03 100644
--- a/.offlineimaprc
+++ b/.offlineimaprc
@@ -3,7 +3,7 @@
 
 [general]
 metadata = ~/.offlineimap
-accounts = GMAIL, QueensU, McGillSOCS
+accounts = GMAIL, QueensU, McGillSOCS, McGill
 #, GMAIL
 pythonfile=~/.offlineimap.py
 # EIMEAR
@@ -104,6 +104,39 @@ folderfilter = lambda folder: folder.startswith('McGSOCS.')
 # Remove McGSOCS prefix when copying to remote
 nametrans = lambda folder: re.sub('^McGSOCS.', '', folder)
 
+#### McGill mail
+[Account McGill]
+localrepository = LocalMcGill
+remoterepository = RemoteMcGill
+autorefresh = 20
+quick = 10
+# presynchook = imapfilter
+foldersort = lamba x, y: cmp(x, y)
+postsynchook = /home/ryan/bin/run-mailcheck && notmuch new
+
+[Repository RemoteMcGill]
+foldersort = lambda x, y: cmp(y, x)
+type = IMAP
+remoteuser = ryan.kavanagh@mail.mcgill.ca
+remotehost = exchange.mcgill.ca
+remotepass = MCGILL_PASS
+remortport = 993
+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: 'McGill.' + foldername
+
+[Repository LocalMcGill]
+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('McGill.')
+# Remove McGSOCS prefix when copying to remote
+nametrans = lambda folder: re.sub('^McGill.', '', folder)
+
 [mbnames]
 enabled = no
 filename = .muttrc.mailboxes
-- 
cgit v1.2.3