[Svn] r3795 - in trunk/roundcubemail: . program/include

trac at roundcube.net trac at roundcube.net
Wed Jun 30 11:44:33 CEST 2010


Author: alec
Date: 2010-06-30 04:44:33 -0500 (Wed, 30 Jun 2010)
New Revision: 3795

Modified:
   trunk/roundcubemail/CHANGELOG
   trunk/roundcubemail/program/include/rcube_message.php
Log:
- Fix handling of messages with Content-Type: application/* and no filename (#1484050)


Modified: trunk/roundcubemail/CHANGELOG
===================================================================
--- trunk/roundcubemail/CHANGELOG	2010-06-30 09:13:45 UTC (rev 3794)
+++ trunk/roundcubemail/CHANGELOG	2010-06-30 09:44:33 UTC (rev 3795)
@@ -1,6 +1,7 @@
 CHANGELOG RoundCube Webmail
 ===========================
 
+- Fix handling of messages with Content-Type: application/* and no filename (#1484050)
 - Improved compose screen: resizable body and attachments list, vertical splitter, options menu
 - Fix RC forgets search results (#1483883)
 - TinyMCE 3.3.7

Modified: trunk/roundcubemail/program/include/rcube_message.php
===================================================================
--- trunk/roundcubemail/program/include/rcube_message.php	2010-06-30 09:13:45 UTC (rev 3794)
+++ trunk/roundcubemail/program/include/rcube_message.php	2010-06-30 09:44:33 UTC (rev 3795)
@@ -488,6 +488,11 @@
         else if ($structure->filename) {
             $this->attachments[] = $structure;
         }
+        // message is a single part non-text (without filename)
+        else if (preg_match('/application\//i', $mimetype)) {
+            $structure->filename = 'Part '.$structure->mime_id;
+            $this->attachments[] = $structure;
+        }
     }
 
 

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list