Re: [hypermail] Why hypermail don't handle html in this message?

From: Daniel Stenberg <>
Date: Fri, 2 Nov 2001 22:01:58 +0100 (MET)
Message-ID: <>

On Fri, 2 Nov 2001, Peter C. McCluskey wrote:

> >Attached file is a mailbox containig a message I can't
> >handle with hypermail. Coul you say me why hypermail
> >won't handle html part of the attached message?
> It looks like whoever wrote the part of hypermail that handles
> multipart/alternative choices decided that text/plain should always be
> the most prefered type, and that the "prefered_types" option should not
> be able to override that preference.

I don't think that is the correct reading.

If I recall this correctly (please excuse me, it's been years since I wrote that code), the alternatives are always included in mails in a way so that the plain text comes first and then more and more complicated formats.

The text/plain is always "preferred" so that it would first pick that type as the one to show, and then as the code advanced further to other types, each type is checked if that is preferred and then it is meant to pick the last one said to be preferred.

If I'm not mistaking, that's how the RFCs say we should deal with them.

Of course, there might be bugs in there that makes hypermail not do (correctly) this at times.

Then again, anyone who selects to have text/html as preferred content should be prepared to get his mail archives serverly screwed up the minute some clever person finds out about it and mails handicrafted mail with lots of odd HTML tags in them.

      Daniel Stenberg - - +46-705-44 31 77
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
Received on Fri 02 Nov 2001 11:06:59 PM GMT

This archive was generated by hypermail 2.3.0 : Sat 13 Mar 2010 03:46:12 AM GMT GMT