Roundcube Community Forum

Release Support => Pending Issues => Topic started by: TomC on December 07, 2009, 07:37:22 AM

Title: Attachment doesn't show up
Post by: TomC on December 07, 2009, 07:37:22 AM
Hi all,

since I have updated from 0.2beta to 0.3.1 some users report a strange behaviour of Roundcube regarding attachments.

A mail that definately does have an attachment (pdf-file) will not show the attachment when the message ist displayed in Roundcube. When I open the same message with Thunderbird the attachment gets displayed and I can download it.

I don't know if it has to do with the sender mail client (Outlook 2007) that uses the header flag X-MS-Has-Attach?!

Oh, and although the message is shown as a large one (516kbyte) when I open it, I don't see any binary stuff, but just the text part of the message. And - as I said - no link to the attachment.

Anyway, this is really a pain! Does anybody have any hint on how to solve this issue? If you need more input, let me know - I can post this or that.

Thanks and regards,
Tom
Title: Attachment doesn't show up
Post by: SKaero on December 07, 2009, 09:09:54 AM
http://www.roundcubeforum.net/general-discussion/5764-not-showing-some-attachments.html
Title: Attachment doesn't show up
Post by: TomC on December 07, 2009, 10:22:01 AM
Hi Skaero,

thanks for replying so fast. The answer makes a lot of sense.. ;-)

So, I have added the pdf-line to the mimetypes.php file. However, the attachments of the mails in question are still not shown. Anything I need to do? Logout/login didn't work. Caching is disabled. So why is it still the same?

Greetz,
Tom
Title: Attachment doesn't show up
Post by: SKaero on December 07, 2009, 11:09:54 AM
Adding the line and uploading the file should be work, try clearing the cache and try it in a different browser.
Title: Attachment doesn't show up
Post by: TomC on December 07, 2009, 12:03:21 PM
Nope, doesn't work! Cache is disabled anyway (although there was one entry for my user-id in the cache table, which I deleted).

Oh, and it's not about uploading attachments. It's about receiving mails with attachments. They simply don't get displayed. Although the attachment symbol is there in the list view.
Title: Attachment doesn't show up
Post by: SKaero on December 07, 2009, 03:53:43 PM
I ment your browser cache.
Title: Attachment doesn't show up
Post by: TomC on December 08, 2009, 03:00:39 AM
Yup, sorry. Of course I also deleted the browser cache. Tried it with another browser. Tried it from a completely differrent PC. All to no avail... Still no attachment on quite a number of mails.
Title: Attachment doesn't show up
Post by: SKaero on December 08, 2009, 08:03:00 AM
It there anything in the error log? Can you also post your mimetypes.php file.
Title: Attachment doesn't show up
Post by: TomC on December 08, 2009, 10:06:46 AM
hi again,

nope there is nothing in the roundcube/logs/errors file (if you thought of that one). However, I am running on loglevel=1. Would you expect an error to be logged when I click on a mail with an attachment and the link to the attachment isn't shown?

Here's the mimetypes.php:

matrix:/var/www/ssl/roundcube/config# cat mimetypes.php

return array(
  'pdf' => 'application/pdf',
  'jpg' => 'image/jpeg',
  'png' => 'image/png',
  'gif' => 'image/gif',
  'xls' => 'application/vnd.ms-excel',
  'xlm' => 'application/vnd.ms-excel',
  'xla' => 'application/vnd.ms-excel',
  'xlc' => 'application/vnd.ms-excel',
  'xlt' => 'application/vnd.ms-excel',
  'xlw' => 'application/vnd.ms-excel',
  'ppt' => 'application/vnd.ms-powerpoint',
  'pps' => 'application/vnd.ms-powerpoint',
  'pot' => 'application/vnd.ms-powerpoint',
  'doc' => 'application/msword',
  'dot' => 'application/msword',
  'odc' => 'application/vnd.oasis.opendocument.chart',
  'otc' => 'application/vnd.oasis.opendocument.chart-template',
  'odf' => 'application/vnd.oasis.opendocument.formula',
  'otf' => 'application/vnd.oasis.opendocument.formula-template',
  'odg' => 'application/vnd.oasis.opendocument.graphics',
  'otg' => 'application/vnd.oasis.opendocument.graphics-template',
  'odi' => 'application/vnd.oasis.opendocument.image',
  'oti' => 'application/vnd.oasis.opendocument.image-template',
  'odp' => 'application/vnd.oasis.opendocument.presentation',
  'otp' => 'application/vnd.oasis.opendocument.presentation-template',
  'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
  'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template',
  'odt' => 'application/vnd.oasis.opendocument.text',
  'otm' => 'application/vnd.oasis.opendocument.text-master',
  'ott' => 'application/vnd.oasis.opendocument.text-template',
  'oth' => 'application/vnd.oasis.opendocument.text-web',
  'docm' => 'application/vnd.ms-word.document.macroEnabled.12',
  'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
  'dotm' => 'application/vnd.ms-word.template.macroEnabled.12',
  'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
  'ppsm' => 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12',
  'ppsx' => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow',
  'pptm' => 'application/vnd.ms-powerpoint.presentation.macroEnabled.12',
  'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
  'xlsb' => 'application/vnd.ms-excel.sheet.binary.macroEnabled.12',
  'xlsm' => 'application/vnd.ms-excel.sheet.macroEnabled.12',
  'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
  'xps' => 'application/vnd.ms-xpsdocument',
  'rar' => 'application/x-rar-compressed',
  'vcf' => 'text/vcard'
);

?>

Thanks again for your help!

Regards,
Tom
Title: Attachment doesn't show up
Post by: TomC on December 09, 2009, 07:26:46 AM
...any chance to fix the problem? It's a big pain for the folks who use RoundCube on my server! *sigh*
Title: Attachment doesn't show up
Post by: SKaero on December 09, 2009, 07:47:44 AM
Does it happen on a fresh install of the SVN?
Title: Attachment doesn't show up
Post by: TomC on December 09, 2009, 08:48:02 AM
Have just installed the standard downloadable version. I will check the SVN and try again.