[rt-users] REG: HTML mails

Dave Sherohman dsherohman at westling.com
Mon May 7 09:39:58 EDT 2001


On Fri, May 04, 2001 at 03:35:28PM -0700, Eric Goodman wrote:
> Each "part" of a MIME message has a name (like "message", "message, 
> part 1"), a type ("text", "application"), and a subtype ("text"?, 
> "html", etc.)

Note that parts are not required to be named.

> A plaintext message body (named 
> "message") comes with a type/subtype of "text/text" (I think).

text/plain

> The case you describe is HTML only. For this I think you typically 
> see a message body with name "message, part 1" (though I would expect 
> you might see just "message") and type/subtype "text/html".

The body's name is MTA-dependent.  A safer way to check for this would be
to look for messages which have a text/html part, but no text/plain part.
(You wouldn't want to look for text/html as the only part because it
could have attachments, but still lack a plaintext version of the body.)




More information about the rt-users mailing list