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 110967 - Posting raw headers confuses other newsreaders
Posting raw headers confuses other newsreaders
Status: RESOLVED FIXED
Product: Pan
Classification: Other
Component: general
pre-0.14.0 betas
Other All
: Normal normal
: 0.14.0
Assigned To: Christophe Lambin
Pan QA Team
Depends on:
Blocks:
 
 
Reported: 2003-04-16 19:26 UTC by Tõivo Leedjärv
Modified: 2006-06-18 05:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tõivo Leedjärv 2003-04-16 19:26:12 UTC
When posting messages Pan seems to be encoding only the Subject header, but
not the From header. This confuses other newsreaders (Outlook mainly).

This problem is actually the cause of (now FIXED) and closely related to
bug #110491 (see the last comment from me).

Also see sample message at
http://bugzilla.gnome.org/showattachment.cgi?attach_id=15622.
Comment 1 Christophe Lambin 2003-04-16 20:22:10 UTC
fejj: this is closely related to bug #109004.  For that bug, you've 
changed g_mime_message_set_subject() to encode 8bit subjects.  

http://cvs.gnome.org/bonsai/cvsview2.cgi?
diff_mode=context&whitespace_mode=show&root=/cvs/gnome&subdir=pan%
2Fgmime&command=DIFF_FRAMESET&root=/cvs/gnome&file=gmime-
message.c&rev1=1.24&rev2=1.25

I suppose we could do the same for g_mime_message_set_sender (), but 
wouldn't it be better to move this down to g_mime_header_set(), so 
it applies to all headers?
Comment 2 Jeffrey Stedfast 2003-04-16 20:47:09 UTC
No, we don't want it at g_mime_header_set(), because then when the
parser parses a mal-encoded header, gmime would try to encode it and
so writing it back out would alter the message headers.

the proper way to fix this bug is to use the InternetAddress routines
to generate a properly structured/encoded address string and then use
the result as the argument to g_mime_message_set_sender()

or... possibly what I can do is:

1) change set_sender() to take an InternetAddress structure? This
might be the best solution... then it forces compliance.

2) change set_sender() to have some smarts and parse/write the address
in proper structure/encoding. This sounds kludgy to me tho.

this brings up a few other things... set_sender() actually sets the
From address but the API suggests it sets the Sender: header. Sender:
can only have 1 address (the real person who sent the message),
whereas From: may actually contain a list of addresses.

for now, I suggest using InternetAddress to create the sender string
Comment 4 Tõivo Leedjärv 2003-04-16 21:41:08 UTC
Fix confirmed.

Thanks guys!