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 782915 - extra Subject added by g_mime_message_set_subject
extra Subject added by g_mime_message_set_subject
Status: RESOLVED FIXED
Product: gmime
Classification: Other
Component: general
3.0.x
Other Linux
: Normal normal
: ---
Assigned To: Jeffrey Stedfast
Jeffrey Stedfast
Depends on:
Blocks:
 
 
Reported: 2017-05-21 12:23 UTC by David Bremner
Modified: 2017-05-21 16:16 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test case for set_subject (524 bytes, text/x-csrc)
2017-05-21 12:23 UTC, David Bremner
Details

Description David Bremner 2017-05-21 12:23:54 UTC
Created attachment 352270 [details]
test case for set_subject

While debugging notmuch, I stumbled upon a GmimeHeader with Subject: in raw_value. This seems wrong; at least most other headers don't have the header name in raw_value. I eventually produced the attached test case; you can see the output from get_subject is not consistent with that of g_mime_object_write_to_stream; that may relate to what I saw in the debugger where raw_value had the name in it, but not the value field.
Comment 1 Jeffrey Stedfast 2017-05-21 16:16:02 UTC
Thanks, yea, someone else discovered this too. I've already fixed it in git master but haven't had a chance to make a new release yet (was out the last 2 weeks "shopping" for a new place to live).

I'm going to try and make a new release of gmime (3.0.1) today with the fix for this.