[PATCH] MANUAL.rst: folderfilter->nametrans typo

Sebastian Spaeth Sebastian at SSpaeth.de
Mon Aug 29 15:10:50 BST 2011


We really wanted nametrans here, also simplify the lambda per
Dan Christensen's suggestion.

Signed-off-by: Sebastian Spaeth <Sebastian at SSpaeth.de>
---
 docs/MANUAL.rst |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/docs/MANUAL.rst b/docs/MANUAL.rst
index cf54985..928ae40 100644
--- a/docs/MANUAL.rst
+++ b/docs/MANUAL.rst
@@ -478,7 +478,8 @@ Another nametrans transpose example
 
 Put everything in a GMX. subfolder except for the boxes INBOX, Draft, and Sent which should keep the same name::
 
-     folderfilter = lambda folder: re.sub(r'^(?!INBOX$|Draft$|Sent$)',r'GMX.', folder)
+     nametrans: lambda folder: folder if folder in ['INBOX', 'Drafts', 'Sent'] \
+                               else re.sub(r'^', r'GMX.', folder)
 
 2 IMAP using name translations
 ------------------------------
-- 
1.7.4.1





More information about the OfflineIMAP-project mailing list