summaryrefslogtreecommitdiff
path: root/.config/offlineimaprc
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-01-27 17:20:28 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-01-27 17:33:31 -0500
commita40e1c62cb734c86f242eae61301791611cd3085 (patch)
treeb74cc4be011bc1c83fb80d9b27e1f45c727fca8f /.config/offlineimaprc
parent8428506f9fb9a71b555dd15a158282c90bf77220 (diff)
symlink a bunch of things into .config
Diffstat (limited to '.config/offlineimaprc')
-rw-r--r--.config/offlineimaprc49
1 files changed, 49 insertions, 0 deletions
diff --git a/.config/offlineimaprc b/.config/offlineimaprc
new file mode 100644
index 0000000..8ea8f30
--- /dev/null
+++ b/.config/offlineimaprc
@@ -0,0 +1,49 @@
+# -*- Mode: Conf -*-
+[general]
+accounts = ATT,Purdue
+
+## AT&T ###############################################################
+
+[Account ATT]
+localrepository = Local-Main
+remoterepository = Remote-SBCGlobal
+
+[Repository Local-Main]
+type = Maildir
+localfolders = ~/Maildir
+sep = .
+folderfilter = lambda foldername: not re.search('(Trash|Del|-old|Draft)', foldername)
+# transforms local -> remote
+nametrans = lambda foldername: re.sub('^$', 'Inbox', re.sub('^'+re.escape('%(sep)s'), '', foldername))
+
+[Repository Remote-SBCGlobal]
+type = IMAP
+ssl = yes
+cert_fingerprint = 700d84baa7e852240178dc2de18e7e528a2854df
+remotehost = imap.mail.yahoo.com
+remoteuser = lukeshu@sbcglobal.net
+folderfilter = lambda foldername: not re.search('(Trash|Del)', foldername)
+
+# transforms remote -> local
+# we must assume that sep=/ on the remote IMAP server.
+nametrans = lambda foldername: '/'+re.sub('^Inbox$', '', foldername)
+
+## Purdue ############################################################
+
+[Account Purdue]
+localrepository = Local-Purdue
+remoterepository = Remote-Purdue
+
+[Repository Local-Purdue]
+type = Maildir
+localfolders = ~/Maildir.purdue
+sep = .
+folderfilter = lambda foldername: re.search('INBOX', foldername)
+
+[Repository Remote-Purdue]
+type = IMAP
+ssl = yes
+cert_fingerprint = 32bdd134cad8da1bea57aa379b98b1cff692e4fd
+remotehost = mymail.purdue.edu
+remoteuser = shumakl
+folderfilter = lambda foldername: re.search('INBOX', foldername)