Roundcube Community Forum

 

Inline images are still not displayed correctly

Started by mr.b, June 17, 2007, 08:41:04 AM

Previous topic - Next topic

mr.b

Hi folks,

I am still having issues with inline images not being displayed correctly. I have tried all kinds of browsers (IE5.5, IE6, IE7, FF2, Opera) on Windows XP although I do not think that it is a browser issue. I have created an example e-mail using Outlook 2003 on Windows XP. The e-mail is displayed correctly by Outlook Express, Apple Mail, Squirrelmail and (of course) Outlook 2003.

I can provide the source code of the e-mail on request.

Thanks
Mr. B

mr.b

Anyone? Does it work on your servers? Just give me a quick hint so I know whether it is a roundcube issue or not.

Thanks
Mr. B

mr.b

Well, meanwhile I did notice that nobody is interested in helping me ;-)

Anyway, I did solve the problem now. The issue is caused by the German localization files (de_DE). I do not exactly know why, but if you use these language files a "Content-Type: text/html" header is sent which apparently cannot be overwritten by the content type header of the inline image. Without the correct media type, of course, the image cannot be displayed.

I have simply replaced the German localization files with the Swiss ones (de_CH) and now everything works fine.

Regards
Mr. B

myon

Hi Mr.B,

i had the same problem, but thanks to your thread I knew where to search.

How to solve the problem:

The problem was the de_DE/messages.inc

There are 2 ways of saving an UTF-8 encoded file, with or without BOM (Byte Order Mark). These 3 bytes (EF BB BF) saved at the beginning of the utf-8 file cause Apache to send all attachments as content-type:text.

This should be corrected in the roundcube release candidate!!!
If you cannot tell your text-editor to save the utf-8 encoded file without BOM, you can open the 'messages.inc' in a hex editor and delete the 3 bytes at the beginning of the file before "
regards,
myon

Florianer

Just my two cents... I have installed SVN 666 yesterday and now tried to change my language to German. I have all the inline images shown properly... think, this is now fixed... just install the latest SVN.
it\'s not a bug - it\'s a feature