diff --git a/.offlineimaprc b/.offlineimaprc index 23f8453..0fbd3b4 100644 --- a/.offlineimaprc +++ b/.offlineimaprc @@ -52,6 +52,8 @@ localfolders = ~/documents/mail/iactor type = Maildir localfolders = ~/documents/mail/aethon +nametrans = lambda folder: re.sub('^inbox$', 'INBOX', re.sub('^drafts$', '[Gmail]/Concepten', re.sub('^sent$', '[Gmail]/Verzonden berichten', re.sub('^trash$', '[Gmail]/Prullenbak', folder)))) + [Repository ninthfloor-local] type = Maildir localfolders = ~/documents/mail/ninthfloor @@ -93,7 +95,8 @@ remoteusereval = getuser("imap.google.com-aethon") remotepasseval = getpassword("imap.google.com-aethon") realdelete = no -nametrans = lambda folder: re.sub('.*Spam$', 'spam', re.sub('.*Drafts$', 'drafts', re.sub('.*Sent Mail$', 'sent', re.sub('.*Starred$', 'flagged', re.sub('.*Trash$', 'trash', re.sub('.*All Mail$', 'archive', folder)))))) +folderfilter = lambda folder: folder in ['INBOX', '[Gmail]/Concepten', '[Gmail]/Verzonden berichten', '[Gmail]/Prullenbak'] +nametrans = lambda folder: re.sub('^INBOX$', 'inbox', re.sub('^\[Gmail\]/Concepten$', 'drafts', re.sub('^\[Gmail\]/Verzonden berichten$', 'sent', re.sub('^\[Gmail\]/Prullenbak$', 'trash', folder)))) [Repository ninthfloor-remote] type = IMAP