summaryrefslogtreecommitdiff
path: root/.offlineimaprc
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-05-30 11:36:32 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-05-30 11:36:32 -0400
commitdbab2a06f142894f446f1f66b637242862dcd7bf (patch)
treec8888e76f39647edad67abd73e74605b1d95b3aa /.offlineimaprc
parentbd8512e48b8ca0f44171c06578da7a5f3cd6663f (diff)
parent344bd61ba0d7d06b3cec6499ef6b4058f9d64626 (diff)
Merge branch 'master' of gitorious.org:lukeshu-dotfiles/lukeshu-dotfiles
Conflicts: .emacs .emacs.d/custom.el
Diffstat (limited to '.offlineimaprc')
-rw-r--r--.offlineimaprc5
1 files changed, 4 insertions, 1 deletions
diff --git a/.offlineimaprc b/.offlineimaprc
index 0e44147..0f4cc78 100644
--- a/.offlineimaprc
+++ b/.offlineimaprc
@@ -8,10 +8,13 @@ remoterepository = Remote
[Repository Local]
type = Maildir
localfolders = ~/Maildir
+nametrans = lambda foldername: re.sub('^$', 'Inbox', re.sub('^/', '', foldername.replace('.', '/')))
+folderfilter = lambda foldername: not re.search('(Trash|Del|-old|Draft)', foldername)
[Repository Remote]
type = IMAP
ssl = yes
remotehost = imap.mail.yahoo.com
remoteuser = lukeshu@sbcglobal.net
-nametrans = lambda foldername: "."+foldername
+nametrans = lambda foldername: re.sub('^\.Inbox$', '', "."+foldername.replace('/', '.'))
+folderfilter = lambda foldername: not re.search('(Trash|Del)', foldername)