Extension:AuthIMAP

There is at least one site using this extension, but proceed at your own risk!