fix attachment parsing, attachment decoding, send mail on parsing exception