Author Topic: Attached file icon ppt(x) unrecognised  (Read 5793 times)

Offline Franck

  • Jr. Member
  • **
  • Posts: 26
Attached file icon ppt(x) unrecognised
« 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.
« Last Edit: January 20, 2016, 04:41:46 AM by Franck »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Attached file icon ppt(x) unrecognised
« Reply #1 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:
Code: [Select]
// 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;

Offline Franck

  • Jr. Member
  • **
  • Posts: 26
Re: Attached file icon ppt(x) unrecognised
« Reply #2 on: January 20, 2016, 04:37:31 AM »
Tnx for your proposal SKaero,
But these options are like that already defined.
Code: [Select]
// 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;

Offline Franck

  • Jr. Member
  • **
  • Posts: 26
Re: Attached file icon ppt(x) unrecognised
« Reply #3 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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Attached file icon ppt(x) unrecognised
« Reply #4 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.

Offline Franck

  • Jr. Member
  • **
  • Posts: 26
Re: Attached file icon ppt(x) unrecognised
« Reply #5 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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Attached file icon ppt(x) unrecognised
« Reply #6 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?

Offline Franck

  • Jr. Member
  • **
  • Posts: 26
Re: Attached file icon ppt(x) unrecognised
« Reply #7 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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Attached file icon ppt(x) unrecognised
« Reply #8 on: January 26, 2016, 10:09:02 AM »
Roundcube requires PHP 5.3.7 or greater http://trac.roundcube.net/wiki/Howto_Requirements

Offline Franck

  • Jr. Member
  • **
  • Posts: 26
Re: Attached file icon ppt(x) unrecognised
« Reply #9 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

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
Re: Attached file icon ppt(x) unrecognised
« Reply #10 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
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦

Offline Franck

  • Jr. Member
  • **
  • Posts: 26
Re: Attached file icon ppt(x) unrecognised
« Reply #11 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 ...


Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Attached file icon ppt(x) unrecognised
« Reply #12 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

Offline Franck

  • Jr. Member
  • **
  • Posts: 26
Re: Attached file icon ppt(x) unrecognised
« Reply #13 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