mailgun / flanker

Python email address and Mime parsing library
http://www.mailgun.com
Apache License 2.0
1.63k stars 204 forks source link

Unable to extract few details #229

Open dattajoshi opened 5 years ago

dattajoshi commented 5 years ago

Hello, my email file is something like this

--2e7afb549ffdcfab2d1bf09734d0aa08301e743297b3555c9186a44641 Content-Disposition: inline Content-Type: message/feedback-report Content-Transfer-Encoding: 7bit

Arrival-Date: Thu, 04 Apr 2019 13:51:36 +0000 Original-Rcpt-To: edb2a3024ca24e124d704e1a0675e38d@comcast.net Original-Mail-From: bounces+6123900-a8b3-a_psaunders13=3Dcomcast.net@mail= .example.io Reported-Domain: mail.example.io Source: Comcast Abuse-Type: complaint User-Agent: ReturnPathFBL/2.0 Version: 1 Subscription-Link: https://fbl.returnpath.net/manage/subscriptions/54678 Feedback-Type: abuse Source-Ip: 122.345.788

--2e7afb549ffdcfad0aa08301e743297b3555c9186a44641

If I do use the headers, I can only get 3 Content-Disposition, Content-Type, Content-Transfer-Encoding

But the part from "Arrival-Date" is not being parsed, I thought if it's body, so tried parts.body as well, But had no luck.

Help needed