Use mail library to receive and parse mails
Remove needless declaration of block local variables