Sebastian Spaeth <Sebastian at SSpaeth.de> writes: > - 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) I think the first colon should be an equals sign... :-) Dan