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 256916 - Mail source view showing unfolded (refolded) header lines
Mail source view showing unfolded (refolded) header lines
Status: RESOLVED DUPLICATE of bug 235681
Product: evolution
Classification: Applications
Component: Mailer
pre-1.5 (obsolete)
Other All
: Normal minor
: Future
Assigned To: evolution-mail-maintainers
Evolution QA team
: 260055 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-04-13 10:29 UTC by Oskar Berggren
Modified: 2005-08-19 04:17 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Oskar Berggren 2004-04-13 10:29:24 UTC
Evolution 1.4.6

Mail source view don't display header lines the way they are folded in
the message store/the way they were sent. Instead it seems that they are
unfolded, and then refolded in different positions before displayed.
This occurs both with messages received over IMAP and messages from local
mbox-folder.

Consider
"Received: from foo\r\n\tvia smtp\r\n\t\r\n\tid foo-4573465786; Tue, 13 Apr
2004 10:17:00 +0200"

This should be displayed like this:

Received: from foo
        via smtp
                                   <<-- tab or whitespace, not empty line
        id foo-4573465786; Tue, 13 Apr 2004 10:17:00 +0200

However, currently this is what I get:

Received: from beo via smtp  id foo-4573465786; Tue, 13 Apr 2004 10:17:00
        +0200

Note the double space after "smtp", before "id".

This way of refolding is also somewhat counter to RFC2822, although still
valid. In section 2.2.3 "Long Header Lines" it says that line breaking
SHOULD be done on "higher-level syntactic breaks". I take that to mean
that you should avoid splitting e.g. a timestamp between the time and the
timezone, instead trying to split before or after the timestamp as a whole.

I think that header folding should be preserved. Whether or not Evolution
should also word-wrap (or add additional folding) on really long header
lines could be discussed.
Comment 1 Jeffrey Stedfast 2004-04-13 15:06:47 UTC
there's currently no way to preserve this information. there's been
discussion about saving the raw header values and such without
unwrapping them, but that would require a lot of changes to the code
that uses those values.
Comment 2 Gerardo Marin 2004-06-21 05:28:30 UTC
*** bug 260055 has been marked as a duplicate of this bug. ***
Comment 3 Not Zed 2005-08-19 04:17:00 UTC

*** This bug has been marked as a duplicate of 235681 ***