aboutsummaryrefslogtreecommitdiff
path: root/.offlineimaprc
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@debian.org>2012-05-04 09:01:58 -0400
committerRyan Kavanagh <rak@debian.org>2012-05-04 09:01:58 -0400
commitf17d297c98f6517639b354f810e159254392ab66 (patch)
treeec1c6502171eb8827b6a542f00d7c42ccf65419b /.offlineimaprc
parentDropped old offlineimap (diff)
First attempt at fixing the 6.4.0 offlineimap breakage
Diffstat (limited to '.offlineimaprc')
-rw-r--r--.offlineimaprc18
1 files changed, 14 insertions, 4 deletions
diff --git a/.offlineimaprc b/.offlineimaprc
index b9b9fe3..2579d7f 100644
--- a/.offlineimaprc
+++ b/.offlineimaprc
@@ -3,7 +3,8 @@
[general]
metadata = ~/.offlineimap
-accounts = QueensU, GMAIL
+accounts = QueensU
+#, GMAIL
pythonfile=~/.offlineimap.py
# EIMEAR
maxsyncaccounts = 2
@@ -35,8 +36,7 @@ remotepass = GMAIL_PASS
spamfolder = [Google Mail]/Spam
trashfolder = [Google Mail]/Bin
realdelete = no
-folderfilter = lambda foldername: foldername not in ['[Google Mail]/All Mail']
-#folderfilter = lambda foldername: foldername in ['INBOX']
+folderfilter = lambda folder: folder not in ['[Google Mail]/All Mail'] and not folder.startswith('QueensU.')
##### QueensU mail
[Account QueensU]
@@ -46,9 +46,10 @@ autorefresh = 20
quick = 10
# presynchook = imapfilter
foldersort = lamba x, y: cmp(x, y)
-postsynchook = /home/ryan/bin/run-mailcheck
+postsynchook = /home/ryan/bin/run-mailcheck && notmuch new
[Repository RemoteQueensU]
+# Add QueensU prefix when copying to local
nametrans = lambda foldername: 'QueensU.' + foldername
foldersort = lambda x, y: cmp(y, x)
type = IMAP
@@ -56,6 +57,15 @@ remoteuser = 9rak
remotehost = mail.queensu.ca
remotepass = QUEENSU_PASS
+[Repository LocalQueensU]
+type = IMAP
+remotehost = localhost
+remoteuser = ryan
+remotepass = LOCAL_PASS
+# Only copy folders from local to remote if they start with QueensU
+folderfilter = lambda folder: folder.startswith('QueensU.')
+# Remove QueensU prefix when copying to remote
+nametrans = lambda folder: re.sub('^QueensU.', '', folder)
[mbnames]
enabled = no