GNOME Bugzilla – Bug 768727
Evolution seems to be able to generate an all empty header line
Last modified: 2016-07-18 09:16:06 UTC
I sent an email which got rejected by the receiving end's amavis: X-Amavis-Alert: BAD HEADER SECTION, Improper folded header field made up entirely of whitespace (char 09 hex): References: ...5.15.camel@bar.qux>\n\t\n\t <1467314203.[...] The header does indeed look bad: In-Reply-To: <1467536130.28737.15.camel@bar.qux> References: <1466866500.12705.15.camel@bar.qux> <1467314203.8891.23.camel@foo.bar> <1467536130.28737.15.camel@bar.qux> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-AjoRxr3sex+M9D6ikFVw" X-Mailer: Evolution 3.20.3-1ubuntu1~xenial1 Mime-Version: 1.0 The check in Amavis seems to be: elsif ($t_empty && $curr_head =~ /^([ \t]+)(?=\n|\z)/gms) { $mid = $1; $msg1 ="Improper folded header field made up entirely of whitespace"; # note: using //g and pos to avoid deep recursion in regexp $minor_badh_category = max(4, $minor_badh_category); This is extremely unfortunate. I expected Evolution to generate a properly formatted email. Could Evolution run sanity checks on emails it produces? (Also: When replying to an email with such a header, evolution reproduces it which may also yield unexpected results)
I'm seeing this often now. And I'm noticing that people don't receive my email. You can actually see this issue on GNOME lists: In the mbox here: https://mail.gnome.org/archives/engagement-list/2016-July.txt.gz You can find the lines: X-Amavis-Alert: BAD HEADER SECTION, Improper folded header field made up entirely of whitespace: References:\n\t \n\t<CAC_wn4s1UgO[...] These are caused by Evolution weirdly breaking the header lines. I also notice it doesn't use \r\n as RFC5322 mandates, but \n, only.
I've done some research on the engagement-list archives. I've downloaded 2016-April.txt 2016-July.txt 2016-June.txt 2016-March.txt 2016-May.txt and grepped for X-Amavis. I notice that it occurs earliest in May. From X-Mailer: Evolution 3.20.2-1.mga6. I conclude that it Evolution 3.20.2 started messing the emails up.
Possibly related to https://git.gnome.org/browse/evolution-data-server/commit/?h=gnome-3-20&id=b9c01bd8230ec788f2e8f1cd54af1e268e5a98e9 which was between .1 and .2 ?
Actually a dup of bug 767780
(In reply to Dominique Leuenberger from comment #4) > Actually a dup of bug 767780 You are right. *** This bug has been marked as a duplicate of bug 767780 ***