I am trying to use python and email.Parser
to parse an email from a file. I use the following command
headers = Parser().parse(open(filename, 'r'))
to parse the file. But when I try to get the body I use e.g.
print(headers.get_payload()[0])
and I get something like
From nobody Mon Oct 12 16:32:25 2015
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Hi Alex,
....
Is there some way to get rid of those first three/four lines? And how to decode content like 'fr=C3=BCher'?