Create a new email account. During creation, disable POP and IMAP access.

From the main account management page, double click the account you just created . Click the Features tab and click 'Restore to COS value' next to IMAP access.

It results in a javascript popup that warns that you're trying to navigate away from the page.

The change is accepted successfully and you never actually leave the page...you just get the warning.