Changeset 9e8a175 in github for program/include/rcube_message.php


Ignore:
Timestamp:
Dec 8, 2008 2:42:31 PM (4 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
832a7da
Parents:
b754889
Message:

#1485616: read content-id/content-location only for multipart/related type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_message.php

    rffbf910 r9e8a175  
    351351            $this->parts[] = $mail_part; 
    352352          } 
    353            
     353 
    354354          // list as attachment as well 
    355355          if (!empty($mail_part->filename)) 
     
    374374          if ($message_ctype_secondary == 'appledouble' && $secondary_type == 'applefile') 
    375375            continue; 
     376 
     377          // part belongs to a related message 
     378          if ($message_ctype_secondary == 'related') { 
     379            if ($mail_part->headers['content-id']) 
     380              $mail_part->content_id = preg_replace(array('/^</', '/>$/'), '', $mail_part->headers['content-id']); 
     381            if ($mail_part->headers['content-location']) 
     382              $mail_part->content_location = $mail_part->headers['content-base'] . $mail_part->headers['content-location']; 
    376383             
    377           if ($message_ctype_secondary == 'related' && $mail_part->headers['content-id']) 
    378             $mail_part->content_id = preg_replace(array('/^</', '/>$/'), '', $mail_part->headers['content-id']); 
    379           if ($message_ctype_secondary == 'related' && $mail_part->headers['content-location']) 
    380             $mail_part->content_location = $mail_part->headers['content-base'] . $mail_part->headers['content-location']; 
    381              
    382           // part belongs to a related message 
    383           if ($mail_part->content_id || $mail_part->content_location) { 
    384             $this->inline_parts[] = $mail_part; 
    385           } 
     384            if ($mail_part->content_id || $mail_part->content_location) { 
     385              $this->inline_parts[] = $mail_part; 
     386            } 
     387          } 
    386388          // is regular attachment 
    387389          else { 
Note: See TracChangeset for help on using the changeset viewer.