MANUAL.rst: folderfilter->nametrans typo

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

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Sebastian Spaeth 2011-08-29 16:10:50 +02:00 committed by Nicolas Sebrecht
parent 3333723ce7
commit dcfdf2ade7
1 changed files with 2 additions and 1 deletions

View File

@ -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
------------------------------