Added email parsing separating body and attachments, and replacing attachment with url