GNOME Bugzilla – Bug 98463
Missing semi-colon in Content-Type => Empty message in Pan
Last modified: 2004-12-22 21:47:04 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.
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 :-)
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
ok, my patch went in for gmime as well as pan trunk so this bug can be closed now.