Michael Heydekamp wrote:
Am 18.11.2012 02:34, schrieb Michael Heydekamp:
Argh... Somewhat later, I found another message (the one with the Classic and Larry screenshots I posted to this list at 20:29 on Nov 17th) where I do neither see a link "Show" at all, nor that a click on the thumbnail would display the screenshot within the browser (it gets downloaded instead). Now what the heck is this again...?
Even more funny: The link "Show" does not appear in all messages with image attachments which have been produced by ... tadaa ... Roundcube. The same applies to the function of displaying them in a separate browser window upon clicking on the thumbnail.
I see one of your messages to the list where all the image attachments having Content-Type: application/octet-stream instead of image/jpeg or whatever. This is also the reason why those attachment are not detected as images and thus no thumbnails are displayed and no inline viewing is offered.
Roundcube tries to detect the mimetypes of uploaded attachment files and this again depends on your server's environment and configuration:
First, there is a mapping file in <roundcubedir>/config/mimetypes.php for simple filename extension to mimetype mapping.
Second, check the 'mime_magic' option which should point to a valid mime description file on your server which is used by PHP fileinfo extension (http://www.php.net/manual/en/book.fileinfo.php).
And third, Roundcube tries mime_content_type() which again is a function provided by PHP.
An easy fix is to add entries for image file extensions to your local confog/mimetypes.php file. But try to fix the 'mime_magic' path first.
~Thomas