RE: tny-camel-mime-part.c needs some changes



Hi Philip, 

>-----Original Message-----
>From: tinymail-devel-list-bounces gnome org 
>[mailto:tinymail-devel-list-bounces gnome org] On Behalf Of 
>ext Philip Van Hoof
>Sent: Tuesday, December 05, 2006 12:25
>To: tinymail-devel-list gnome org
>Subject: tny-camel-mime-part.c needs some changes
>
>ps. tny-camel-mime-part.c needs some big changes related to 
>multipart mime parts.
>
>I will sooner or later do this. At this moment it's difficult 
>to get the content_object right. This API might or might not 
>get removed (not sure yet). I'm planning to rewrite large 
>parts of the implementation.
>
>The TnyGtkMsgView normally needs no big changes. 
>
>This is indeed to correctly support message/alternative mime parts.
>
>Such mime parts usually contain a text/plain and a text/html mime part.
>Only one of the two should be showed. A component with HTML 
>support should display the text/html one, and one without 
>should display a text/plain one.

Some background info on how we do this now in our project:

We actually use some simple code to find the appropriate body; the
algorithm is basically to find the first non-attachment mime-part
that is html (if you set the html_preferred flag) or txt
(if you didn't set that flag, or couldn't find the html).

Also note that we display *everything* as html; we convert
text to html (turning URL-looking things into hyperlinks in the 
process). Of course we could display text mails in a text view,
but then it will be very painful to ensure selection, default font,
zooming, ...., and other behaviour is exactly the same in these
two views. Better to use only one :)

Best wishes,
Dirk.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]