[imp] IMP inlining, Horde Charset Settings

Jan Schneider jan@horde.org
Thu, 29 Nov 2001 17:15:53 +0100


Zitat von "Marcus I. Ryan" <marcus@riboflavin.net>:

> I hope crossposting isn't a faux pass...if so, sorry, and let the
> flogging begin.
> 
> I am running HORDE 3.0-cvs and IMP 4.0-cvs (updated yesterday - 11/28).
> 
> I noticed that several text/plain messages would not display inline
> when viewed with the new IMP, despite the settings mime viewer
> settings.  This included messages sent by my new IMP installation
> (different machine, etc.).
> 
> It appears that in message.php the function canDisplayInline()
> (starting line 104) does a check to see if the character set matches
> either the global registry setting or 'us-ascii'.  My default horde
> charset comes out as iso-8859-1 (the default).  However, the messages
> sent by my installation of IMP get transerred as utf-8, and messages
> from KMail (and probably others) uses iso-8859-15, a replacement for
> iso-8859-1 from what I can find on google.
> 
> I have patched it myself by changing line 114 to:
>         strtolower($mime->charset) == 'us-ascii' ||
>         strtolower($mime->charset) == 'utf-8' ||
>         strtolower($mime->charset) == 'iso-8859-15')) {
> but that seems more like a bad hack than a proper solution, especially
> the iso-8859-15 check, since some people might be using a different
> charset and not want to inline iso-8859-15.

You're right with everything you said. Especially the 'bad hack' 
statement. ;-)

If anyone knows a clean solution how to solve this ambiguity between 'not 
showing messages though they may be viewable' and 'showing messages but 
only seeing garbage' it would be great to hear from it.

Even a huge matrix of charsets that can be mixed more or less safe would 
help us.

Jan.

::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax  +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::