Doesn't cope with base64 encoded email
Created by: foobacca
Recently Martin Belcher sent an email from his phone using the android email client and we ended up with a load of nonsense (see issue 409 if you have access).
The source of another email from Martin's phone is below. The message itself is base64 encoded and the headers identify itself as such. So we need to do better at dealing with random email formatting.
Return-path: <martinbelcher@aptivate.org>
Envelope-to: hamish@aptivate.org
Delivery-date: Wed, 12 Feb 2014 13:57:34 +0000
Received: from 82-69-179-35.dsl.in-addr.zen.co.uk ([82.69.179.35]
helo=[10.0.158.174]) by lin-mail.aptivate.org with esmtpa (Exim 4.72)
(envelope-from <martinbelcher@aptivate.org>) id 1WDaJi-00082s-Dv
for hamish@aptivate.org; Wed, 12 Feb 2014 13:57:34 +0000
Date: Wed, 12 Feb 2014 10:30:54 +0000
Subject: Test mail
Message-ID: <al43eshcj0mcmxakm5yi3dly.1392201054497@email.android.com>
From: Martin Belcher <martinbelcher@aptivate.org>
To: hamish@aptivate.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: base64
Ci0tCk1hcnRpbiBCZWxjaGVyIChBcHRpdmF0ZSkKTSArNDQgMDc3OTUgNjgxMjk5LCBNICs0NiAw
NzAzIDEzMDM1OApTa3lwZTogbWFydGluYmVsY2hlcg==