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

trac at roundcube.net trac at roundcube.net
Mon Nov 29 10:54:15 CET 2010


Author: alec
Date: 2010-11-29 03:54:15 -0600 (Mon, 29 Nov 2010)
New Revision: 4288

Modified:
   trunk/roundcubemail/CHANGELOG
   trunk/roundcubemail/program/include/rcube_message.php
Log:
- Fix attachments of type message/rfc822 are not listed on attachments list


Modified: trunk/roundcubemail/CHANGELOG
===================================================================
--- trunk/roundcubemail/CHANGELOG	2010-11-29 08:50:39 UTC (rev 4287)
+++ trunk/roundcubemail/CHANGELOG	2010-11-29 09:54:15 UTC (rev 4288)
@@ -2,6 +2,7 @@
 ===========================
 
 - Plugin API: Add 'pass' argument in 'authenticate' hook (#1487134)
+- Fix attachments of type message/rfc822 are not listed on attachments list
 
 RELEASE 0.5-BETA
 ----------------

Modified: trunk/roundcubemail/program/include/rcube_message.php
===================================================================
--- trunk/roundcubemail/program/include/rcube_message.php	2010-11-29 08:50:39 UTC (rev 4287)
+++ trunk/roundcubemail/program/include/rcube_message.php	2010-11-29 09:54:15 UTC (rev 4288)
@@ -426,7 +426,7 @@
                         $mail_part->type = 'content';
                         $this->parts[] = $mail_part;
                     }
-          
+
                     // list as attachment as well
                     if (!empty($mail_part->filename))
                         $this->attachments[] = $mail_part;
@@ -473,6 +473,10 @@
                     // attachment encapsulated within message/rfc822 part needs further decoding (#1486743)
                     else if ($part_orig_mimetype == 'message/rfc822') {
                         $this->parse_structure($mail_part, true);
+
+                        // list as attachment as well (mostly .eml)
+                        if (!empty($mail_part->filename))
+                            $this->attachments[] = $mail_part;
                     }
                     // is a regular attachment (content-type name regexp according to RFC4288.4.2)
                     else if (preg_match('/^[a-z0-9!#$&.+^_-]+\/[a-z0-9!#$&.+^_-]+$/i', $part_mimetype)) {

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



More information about the Svn mailing list