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.
| | |
| | | } |
| | | //echo "s - part: $part rest: $rest array: ".implode(" ", $a)."<br>\n"; |
| | | if (is_array($a[$part-1])) return $a[$part-1]; |
| | | else return false; |
| | | else return $a; |
| | | }else if (($part==0) || (empty($part))){ |
| | | return $a; |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | // message is single part non-text |
| | | else |
| | | { |
| | | if (($fname = $structure->d_parameters['filename']) || |
| | | ($fname = $structure->ctype_parameters['name']) || |
| | | ($fname = $structure->headers['content-description'])) |
| | | { |
| | | $structure->filename = rcube_imap::decode_mime_string($fname); |
| | | $a_attachments[] = $structure; |
| | | } |
| | | } |
| | | |
| | | return array($a_return_parts, $a_attachments); |
| | | } |
| | | |