refactor(mailconnector): Use new API from DocManager (refs #4697)