aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@debian.org>2013-05-13 16:25:55 -0400
committerRyan Kavanagh <rak@debian.org>2013-05-13 16:36:12 -0400
commit40c69f55e33e380f8cf94fd41fcec82f3ec6393d (patch)
treef70d0c1fe9a0d1e6cf37310627fe0fd4fc888436
parentAdd msmtp config for MIT (diff)
Add offlineimaprc for MIT
-rw-r--r--.offlineimaprc29
-rwxr-xr-xMakefile2
2 files changed, 30 insertions, 1 deletions
diff --git a/.offlineimaprc b/.offlineimaprc
index 413f751..7195b98 100644
--- a/.offlineimaprc
+++ b/.offlineimaprc
@@ -143,6 +143,35 @@ folderfilter = lambda folder: folder.startswith('McGill.')
# Remove McGSOCS prefix when copying to remote
nametrans = lambda folder: re.sub('^McGill.', '', folder)
+#### MIT mail
+[Account MIT]
+localrepository = LocalMIT
+remoterepository = RemoteMIT
+autorefresh = 20
+quick = 10
+# presynchook = imapfilter
+foldersort = lamba x, y: cmp(x, y)
+postsynchook = /home/ryan/bin/run-mailcheck && notmuch new
+
+[Repository RemoteMIT]
+foldersort = lambda x, y: cmp(y, x)
+type = IMAP
+remoteuser = rakavan
+remotehost = rakavan.mail.mit.edu
+remotepass = MIT_PASS
+remortport = 993
+cert_fingerprint = 9f3fc06c357ecfcaaaf0cebedfb8d6b94f0926f6
+ssl = yes
+nametrans = lambda foldername: 'MIT.' + foldername
+
+[Repository LocalMIT]
+type = IMAP
+remotehost = localhost
+remoteuser = ryan
+remotepass = LOCAL_PASS
+folderfilter = lambda folder: folder.startswith('MIT.')
+nametrans = lambda folder: re.sub('^MIT.', '', folder)
+
[mbnames]
enabled = no
filename = .muttrc.mailboxes
diff --git a/Makefile b/Makefile
index 8c47259..81b9b28 100755
--- a/Makefile
+++ b/Makefile
@@ -102,7 +102,7 @@ VARS_.mutt/score.rc = MUTT_10_SCORE MUTT_20_SCORE
VARS_.mutt/ssl.rc = SSL_CERTS
VARS_.muttrc = MSMTP_PATH
VARS_.netrc = LOCAL_PASS GMAIL_PASS
-VARS_.offlineimaprc = LOCAL_PASS GMAIL_PASS QUEENSU_PASS MCGSOCS_PASS MCGILL_PASS SSL_CERTS
+VARS_.offlineimaprc = LOCAL_PASS GMAIL_PASS QUEENSU_PASS MCGSOCS_PASS MCGILL_PASS SSL_CERTS MIT_PASS
VARS_.screenrc = ZSH_PATH SCREEN_HOST_COLOUR
VARS_.xinitrc = SCREENLAYOUT REDSHIFT_MODE GSD_PATH PULSE_JACKD
VARS_.xmonad/xmonad.hs = XMONAD_DZEN_W XMONAD_DZEN_X XMONAD_DZEN_Y