diff options
author | svncommit <devs@roundcube.net> | 2006-12-18 09:07:42 +0000 |
---|---|---|
committer | svncommit <devs@roundcube.net> | 2006-12-18 09:07:42 +0000 |
commit | 04d6304b4d1b272d5cd533abfbc2240d8ce77c38 (patch) | |
tree | dc31178d74f761e4afc1c544ced03b6a55276eed /program/steps/mail/func.inc | |
parent | a7d5c6480cdef191b04e71005ffea0e35b84ac24 (diff) |
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.
Diffstat (limited to 'program/steps/mail/func.inc')
-rw-r--r-- | program/steps/mail/func.inc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 9bda8906d..5e91d162f 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -1004,6 +1004,18 @@ function rcmail_parse_message(&$structure, $arg=array(), $recursive=FALSE) } } + // 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); } |