mailNews refactoring