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:
parent
3333723ce7
commit
dcfdf2ade7
@ -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::
|
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
|
2 IMAP using name translations
|
||||||
------------------------------
|
------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user