Remove imap extensions.