first draft of check_mail script
using classes in check_mail now