Deal with multipart and encoded messages