Changeset 5149 in subversion


Ignore:
Timestamp:
Aug 30, 2011 5:10:27 AM (22 months ago)
Author:
alec
Message:
  • Fix handling of attachments inside message/rfc822 parts (#1488026)
Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r5144 r5149  
    22=========================== 
    33 
     4- Fix handling of attachments inside message/rfc822 parts (#1488026) 
    45- Make list of mimetypes that open in preview window configurable (#1487625) 
    56- Added plugin hook 'message_part_get' for attachment downloads 
  • trunk/roundcubemail/program/include/rcube_message.php

    r4636 r5149  
    287287            $structure->type = 'content'; 
    288288            $this->parts[] = &$structure; 
    289              
     289 
    290290            // Parse simple (plain text) message body 
    291291            if ($message_ctype_secondary == 'plain') 
     
    307307            foreach ($structure->parts as $p => $sub_part) { 
    308308                $sub_mimetype = $sub_part->mimetype; 
    309          
     309 
    310310                // check if sub part is 
    311311                if ($sub_mimetype == 'text/plain') 
     
    324324                $this->parse_structure($structure->parts[$related_part], true); 
    325325                $this->parse_alternative = false; 
    326          
     326 
    327327                // if plain part was found, we should unset it if html is preferred 
    328328                if ($this->opt['prefer_html'] && count($this->parts)) 
     
    433433                } 
    434434                // part message/* 
    435                 else if ($primary_type=='message') { 
     435                else if ($primary_type == 'message') { 
    436436                    $this->parse_structure($mail_part, true); 
    437437 
     
    496496                        $this->attachments[] = $mail_part; 
    497497                    } 
     498                } 
     499                // attachment part as message/rfc822 (#1488026) 
     500                else if ($mail_part->mimetype == 'message/rfc822') { 
     501                    $this->parse_structure($mail_part); 
    498502                } 
    499503            } 
Note: See TracChangeset for help on using the changeset viewer.