Roundcube Community Forum

Release Support => Pending Issues => Topic started by: Franck on January 20, 2016, 03:55:44 AM

Title: Attached file icon ppt(x) unrecognised
Post by: Franck on January 20, 2016, 03:55:44 AM
Good morning,
I  meet a problem with .ppt and .pptx icons in "attach a file" column in the compose interface.
The icon is replaced by "? ? ?" icon.
The sending works find and the attached file readable.
Tnx for your help and best regards.
Title: Re: Attached file icon ppt(x) unrecognised
Post by: SKaero on January 20, 2016, 04:04:55 AM
That would tend to indicate that there is a problem with mimetype's on your server. You may need to set the following options in the Roundcube config:

// Path to a local mime magic database file for PHPs finfo extension.
// Set to null if the default path should be used.
$config['mime_magic'] = null;
// Absolute path to a local mime.types mapping table file.
// This is used to derive mime-types from the filename extension or vice versa.
// Such a file is usually part of the apache webserver. If you don't find a file named mime.types on your system,
// download it from http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
$config['mime_types'] = null;
Title: Re: Attached file icon ppt(x) unrecognised
Post by: Franck on January 20, 2016, 04:37:31 AM
Tnx for your proposal SKaero,
But these options are like that already defined.
// attachments of these types will open in a preview window
// either a comma-separated list or an array: 'text/plain,text/html,text/xml,image/jpeg,image/gif,image/png,application/pdf'
$rcmail_config['client_mimetypes'] = null;  # null == default

// Path to a local mime magic database file for PHPs finfo extension.
// Set to null if the default path should be used.
$rcmail_config['mime_magic'] = null;

// Absolute path to a local mime.types mapping table file.
// This is used to derive mime-types from the filename extension or vice versa.
// Such a file is usually part of the apache webserver. If you don't find a file named mime.types on your system,
// download it from http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
$rcmail_config['mime_types'] = null;
Title: Re: Attached file icon ppt(x) unrecognised
Post by: Franck on January 20, 2016, 05:48:32 AM
I also tried the absolute path toward the mime.types file and the issue is the same
Title: Re: Attached file icon ppt(x) unrecognised
Post by: SKaero on January 20, 2016, 12:06:08 PM
I meant those where the options you may need to set since the null values are the defaults. My guess would be that the mime magic database file for PHPs finfo extension is not correct.
Title: Re: Attached file icon ppt(x) unrecognised
Post by: Franck on January 25, 2016, 09:56:18 AM
Thank's SKaero, i now understood.
I'm sorry but i don't know what's the good syntax to add the magic file for .ppt and .pptx files.
I have read some subjects about that but i don't understand very well.
Please can you help me ?

Best regards
Title: Re: Attached file icon ppt(x) unrecognised
Post by: SKaero on January 25, 2016, 01:00:00 PM
The mime magic database is located in different places depending on the OS. What OS and PHP version are you using?
Title: Re: Attached file icon ppt(x) unrecognised
Post by: Franck on January 26, 2016, 02:12:45 AM
The OS is a Red Hat Entreprise Linux Server 6.5 and  PHP 5.3.3

Best regards
Title: Re: Attached file icon ppt(x) unrecognised
Post by: SKaero on January 26, 2016, 10:09:02 AM
Roundcube requires PHP 5.3.7 or greater http://trac.roundcube.net/wiki/Howto_Requirements
Title: Re: Attached file icon ppt(x) unrecognised
Post by: Franck on January 26, 2016, 04:49:36 PM
My Roundcube release is 0.9.5 and unless I'm mistaken PHP 5.3.3 answered to the requires.
He is fully functional from 2 years but i would like to find a solution for this ppt(x) icon and mime type.

Thank's a lot
Title: Re: Attached file icon ppt(x) unrecognised
Post by: JohnDoh on January 27, 2016, 02:40:03 AM
icons for ppt(x) were added in 1.0. you need to upgrade your version of Roundcube
Title: Re: Attached file icon ppt(x) unrecognised
Post by: Franck on January 27, 2016, 04:43:03 AM
Ouuhhh ! The upgrade was not in my projects at this time.

No way to add a patch for the icon issue ?

I must verify the requires for Roundcube and my OS but i think that i gonna have to do a fresh install.
It's a very bad new ...

Title: Re: Attached file icon ppt(x) unrecognised
Post by: SKaero on January 27, 2016, 08:22:48 AM
It looks like you may be able to patch it, here is the ticket with the change set where it was added: http://trac.roundcube.net/ticket/1489225
Title: Re: Attached file icon ppt(x) unrecognised
Post by: Franck on January 28, 2016, 05:59:08 AM
Thank you very much.
It works find with the patch.

Best regards and have a nice day,
Franck