refactor check new mail job configuration