After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 768727 - Evolution seems to be able to generate an all empty header line
Evolution seems to be able to generate an all empty header line
Status: RESOLVED DUPLICATE of bug 767780
Product: evolution
Classification: Applications
Component: Mailer
3.20.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2016-07-12 12:22 UTC by Tobias Mueller
Modified: 2016-07-18 09:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tobias Mueller 2016-07-12 12:22:32 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)
Comment 1 Tobias Mueller 2016-07-14 10:26:28 UTC
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.
Comment 2 Tobias Mueller 2016-07-14 10:32:17 UTC
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.
Comment 3 Dominique Leuenberger 2016-07-14 10:37:15 UTC
Possibly related to
https://git.gnome.org/browse/evolution-data-server/commit/?h=gnome-3-20&id=b9c01bd8230ec788f2e8f1cd54af1e268e5a98e9 which was between .1 and .2 ?
Comment 4 Dominique Leuenberger 2016-07-14 10:45:11 UTC
Actually a dup of bug 767780
Comment 5 Milan Crha 2016-07-18 09:16:06 UTC
(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 ***