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 <email@example.com>
| Newsgroups: opera.beta
| Subject: Re: favicons
| Date: Wed, 13 Nov 2002 09:58:35 -0500
| References: <firstname.lastname@example.org>
| 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
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:
ok, my patch went in for gmime as well as pan trunk so this bug can be