IMAP: cleanup LIST command