extracting mail manager class