Fix imap extensions