Hello,

 I'm thinking about the point raised in a recent message to m-users about
automatically selecting the HTML viewer for pure HTML messages. This would,
of course, be easy to do, but, as usual, I want to do something more. I
think it would make sense to use HTML viewer for multipart/alternative text
+ HTML messages as well. And I suppose one also might want to use text
viewer for most messages but switch to the default (or HTML?) one for
messages containining inlined images. But, OTOH, of course this shouldn't
happen unconditionally, i.e. you should have a way to configure M to [not]
do it.

 The trouble is that there are simply too many variants and possibilities.
Ideally I'd also like to not hardcode anything for the existing set of
viewers but write a generic algorithm which would choose the best viewer
(as defined by the current options...) using only the MessageViewer methods
such as CanInlineImages() (this returns true for default and HTML and false
for text) and CanProcess(mimetype) (this returns true for "text/html" for
the HTML viewer).

 Does anyone see a way to do it? It would seem we'd need to be able to
assign different "weights" for the viewers and then, for each message,
calculate the score of each viewer using its weight and its capabilities.
This is all quite vague however and I don't see very well how to do it.

 Any ideas/suggestions wuold be much appreciated!

 Thanks,
VZ



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Mahogany-Developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-developers

Reply via email to