imap: Introduced IMAP_CUSTOM state