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 780391 - Truncate cache stream before resaving received message
Truncate cache stream before resaving received message
Status: RESOLVED FIXED
Product: evolution-ews
Classification: Other
Component: Mail
3.24.x
Other Linux
: Normal normal
: ---
Assigned To: Evolution EWS maintainer(s)
Evolution EWS maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2017-03-22 11:50 UTC by Milan Crha
Modified: 2017-03-22 11:52 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Milan Crha 2017-03-22 11:50:03 UTC
Changes for bug #779804 uncovered a bug in the existing code, which was about not truncating output stream before re-saving the message due to changes (either the Date header or the From header), which could result into having some garbage at the end of the file (tail doubled). It didn't strike straight always, sometimes only after the second time the message had been viewed and for plain text message it meant to have doubled the end of the message text.

One noticed change was with line endings in message headers, where the MIME content of the message returned from the server used \r\n, but Camel resaved the file with \n (thus it was shorter by characters equal to header lines). There could be other changes related, especially when changing the From address.
Comment 1 Milan Crha 2017-03-22 11:52:29 UTC
Created commit 5e73752 in ews master (3.25.1+)
Created commit e410b8a in ews gnome-3-24 (3.24.1+)