Implement mailimap_has_authentication