aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.offlineimaprc37
-rw-r--r--SUBSTS1
-rwxr-xr-xdm2
3 files changed, 37 insertions, 3 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
diff --git a/SUBSTS b/SUBSTS
index 616ba84..28d0be8 100644
--- a/SUBSTS
+++ b/SUBSTS
@@ -11,6 +11,7 @@ GPG_DISABLED False
# Mail passwords
GMAIL_PASS secret
QUEENSU_PASS secret
+MCGSOCS_PASS secret
LOCAL_PASS secret
# xmonad
XMONAD_DZEN_W 808
diff --git a/dm b/dm
index 8e53adb..74b190d 100755
--- a/dm
+++ b/dm
@@ -81,7 +81,7 @@ VARS_.mutt/accounts.rc = LOCAL_PASS GMAIL_PASS QUEENSU_PASS MSMTP_PATH
VARS_.mutt/score.rc = MUTT_10_SCORE MUTT_20_SCORE
VARS_.muttrc = MSMTP_PATH
VARS_.netrc = LOCAL_PASS
-VARS_.offlineimaprc = LOCAL_PASS GMAIL_PASS QUEENSU_PASS
+VARS_.offlineimaprc = LOCAL_PASS GMAIL_PASS QUEENSU_PASS MCGSOCS_PASS
VARS_.screenrc = ZSH_PATH SCREEN_HOST_COLOUR
VARS_.xinitrc = SCREENLAYOUT REDSHIFT_MODE GSD_PATH
VARS_.xmonad/xmonad.hs = XMONAD_DZEN_W XMONAD_DZEN_X XMONAD_DZEN_Y