Parsing email with attachments