Changeset 04d6304 in github


Ignore:
Timestamp:
Dec 18, 2006 4:07:42 AM (7 years ago)
Author:
svncommit <devs@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
23796ec
Parents:
a7d5c648
Message:

If the message is single mime part and non-text, show it as an empty message with an attachment, instead of not displaying anything at all.

Location:
program
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • program/lib/mime.inc

    r4e17e6c r04d6304  
    109109                //echo "s - part: $part rest: $rest array: ".implode(" ", $a)."<br>\n"; 
    110110                if (is_array($a[$part-1])) return $a[$part-1]; 
    111                 else return false; 
     111                else return $a; 
    112112        }else if (($part==0) || (empty($part))){ 
    113113                return $a; 
  • program/steps/mail/func.inc

    r421f5e3 r04d6304  
    10051005    } 
    10061006 
     1007  // message is single part non-text 
     1008  else 
     1009    { 
     1010    if (($fname = $structure->d_parameters['filename']) || 
     1011        ($fname = $structure->ctype_parameters['name']) || 
     1012        ($fname = $structure->headers['content-description'])) 
     1013      { 
     1014      $structure->filename = rcube_imap::decode_mime_string($fname); 
     1015      $a_attachments[] = $structure; 
     1016      } 
     1017    } 
     1018 
    10071019  return array($a_return_parts, $a_attachments); 
    10081020  } 
Note: See TracChangeset for help on using the changeset viewer.