On Mon, 13 Feb 2012 18:00:26 +0200, Daniel Shahaf wrote: > It'll break when the remote folder name is "INBOX". > > nametrans = lambda f: ["INBOX."+f, f][f == "INBOX"] Daniel, you are too clever :-). It took me some time to understand this devilish genius construct... How do we say in Switzerland? "Chapeau" (=hats off) Sebastian