Changeset 8757f5b in github


Ignore:
Timestamp:
Aug 30, 2011 5:10:27 AM (22 months ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.7, release-0.8
Children:
682819f
Parents:
95192c6d
Message:
  • Fix handling of attachments inside message/rfc822 parts (#1488026)
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    rf7b58af r8757f5b  
    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 
  • program/include/rcube_message.php

    rdd0ae62 r8757f5b  
    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.