[imp] unnamed text/html or unnamed text/plain

Ziaur Rahman zrahman@partex.net
Wed Oct 16 06:10:15 2002


Thanks for the in-depth explanation. Just an idea: right now the alternative
parts are scattered all over the message body. This make the message body
ugly.
Is it a good idea to have a link right on top or bottom of the message body
like "Alternative Parts" and this link will provide a page where all the
Alternative Parts will be listed?

Regards,

Zia

|-----Original Message-----
|From: imp-bounces@lists.horde.org [mailto:imp-bounces@lists.horde.org]On
|Behalf Of Michael M Slusarz
|Sent: Wednesday, October 16, 2002 12:09 AM
|To: imp@lists.horde.org
|Subject: Re: [imp] unnamed text/html or unnamed text/plain
|
|
|Quoting Chuck Hagenbuch <chuck@horde.org>:
|
|| Quoting Ziaur Rahman <zrahman@partex.net>:
||
|| > How can I get rid of the Alternatives parts to show on the message view
|| > page? If you are not sure what am I talking about,pls follow the URL
|| > below and you will see 'unnamed text/html' and 'unname text/plain':
|| >
|| > http://mzrahman.com/snaps/snapshot-imp-15thoct02.jpg
|| >
|| > Is it possible not to show them in the page?
||
|| No, doing so violates the RFC.
|
|Actually, that is not entirely correct.  From RFC 2046 [5.1.4]:
|
|   It may be the case that some user agents, if they can recognize more
|   than one of the formats, will prefer to offer the user the choice of
|   which format to view.  This makes sense, for example, if a message
|   includes both a nicely- formatted image version and an easily-edited
|   text version.  **What is most critical, however, is that the user not
|   automatically be shown multiple versions of the same data.**  Either
|   the user should be shown the last recognized version or should be
|   given the choice.
|
|Thus, to be RFC compliant, all the mail user agent (e.g. IMP) needs to do
|is show the _last_ alternative part that can be displayed.  The
|language in
|RFC 2046 does not require the mail user agent to show all of the internal
|alternative parts.  We happen to combine the functionality identified in
|the last sentence of the excerpt (we show the last recognized version AND
|give the user a choice).  But we NEVER automatically show more than a
|single version of the same data so we are RFC compliant.
|
|That being said, there is currently no way of "turning off" this
|functionality.  However, it should be easy enough to make the necessary
|changes in the alternative MIME_Viewer
|(imp/lib/MIME/Viewer/alternative.php).  I think that showing the
|alternative parts is a good thing (after all, it contains the exact same
|data as the part that is displayed), so I am personally not receptive to
|making this something that can be turned on/off.
|
|michael
|______________________________________________
|Michael Slusarz [slusarz@bigworm.colorado.edu]
|The University of Colorado at Boulder
|
|--
|IMP mailing list
|Frequently Asked Questions: http://horde.org/faq/
|To unsubscribe, mail: imp-unsubscribe@lists.horde.org