added command to check mail and added some global vars related to mail