From 1ae38bb62fb30bc83ab7b7624b11a32603c375ed Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Tue, 20 Mar 2012 16:37:32 +0100 Subject: [PATCH] .offlineimaprc --- .offlineimaprc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.offlineimaprc b/.offlineimaprc index c947f60..23f8453 100644 --- a/.offlineimaprc +++ b/.offlineimaprc @@ -42,6 +42,8 @@ localfolders = ~/documents/mail/arch type = Maildir localfolders = ~/documents/mail/gmail +nametrans = lambda folder: re.sub('^inbox$', 'INBOX', re.sub('^drafts$', '[Gmail]/Drafts', re.sub('^sent$', '[Gmail]/Sent Mail', re.sub('^trash$', '[Gmail]/Trash', folder)))) + [Repository iactor-local] type = Maildir localfolders = ~/documents/mail/iactor @@ -76,7 +78,8 @@ remoteusereval = getuser("imap.google.com") remotepasseval = getpassword("imap.google.com") realdelete = no -nametrans = lambda folder: re.sub('.*Spam$', 'spam', re.sub('.*(Drafts|Concepten)$', 'drafts', re.sub('.*(Sent Mail|Verzonden berichten)$', 'sent', re.sub('.*(Starred|Met ster)$', 'flagged', re.sub('.*(Trash|Prullenbak)$', 'trash', re.sub('.*(All Mail|Alle berichten)$', 'archive', folder)))))) +folderfilter = lambda folder: folder in ['INBOX', '[Gmail]/Drafts', '[Gmail]/Sent Mail', '[Gmail]/Trash'] +nametrans = lambda folder: re.sub('^INBOX$', 'inbox', re.sub('^\[Gmail\]/Drafts$', 'drafts', re.sub('^\[Gmail\]/Sent Mail$', 'sent', re.sub('^\[Gmail\]/Trash$', 'trash', folder)))) [Repository iactor-remote] type = IMAP