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 98463 - Missing semi-colon in Content-Type => Empty message in Pan
Missing semi-colon in Content-Type => Empty message in Pan
Status: RESOLVED FIXED
Product: Pan
Classification: Other
Component: general
0.11.4
Other Linux
: Normal normal
: 0.13.3
Assigned To: Charles Kerr
Pan QA Team
Depends on:
Blocks:
 
 
Reported: 2002-11-14 08:29 UTC by schrode
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description schrode 2002-11-14 08:29:35 UTC
Someone used the following wrong Content-Type:

Content-Type: text/plain charset=us-ascii

Note: missing semi-colon ";" between "plain" and "charset".

Pan will not be able to display the message.

Sample message header:

| Message-ID: <dna92C5657C6A936code9@no.suprise>
| From: tranquilo <tranquilo@subdimension.com>
| Newsgroups: opera.beta
| Subject: Re: favicons
| Date: Wed, 13 Nov 2002 09:58:35 -0500
| References: <ato4tu4da6h7n5ai1si6lpg2a8jvk834ig@4ax.com>
| Content-Type: text/plain charset=us-ascii

tranquilo fixed his "news reader" in the meantime but I think Pan should have been able to display the message even if it doesn't contain a valid Content-Type.
Comment 1 Jeffrey Stedfast 2002-11-14 19:02:32 UTC
partly a gmime poblem and partly a pan problem, depending on how ya
look at it :-)

GMime parses the Content-Type as:

type = "text"
subtype = "plain charset=us-ascii"

clearly this is wrong... tho I've just fixed it.

I assume the reason that Pan isn't displaying the mime part is because
it is looking for a "text/plain" part and so doesn't match "text/plain
charset=us-ascii"

I'll commit th fixes as soon as I get off work tonight :-)
Comment 2 Charles Kerr 2002-11-14 20:13:03 UTC
I'll leave this bug open for now until fejj's patches
get into pan cvs head, but for pan's code's part,
it now handles displays text-type messages regardless of the subtype:
http://cvs.gnome.org/bonsai/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=pan/pan&command=DIFF_FRAMESET&file=text.c&rev1=1.329&rev2=1.330&root=/cvs/gnome
Comment 3 Jeffrey Stedfast 2002-11-15 02:46:10 UTC
ok, my patch went in for gmime as well as pan trunk so this bug can be
closed now.