diff options
| author | robin <robin@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-12-18 09:07:42 +0000 |
|---|---|---|
| committer | robin <robin@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-12-18 09:07:42 +0000 |
| commit | 48a5e46f62a5da5b282a11dceefeeef5b79564f9 (patch) | |
| tree | d9ba6d384f5777f5528f5a7fcef3cf48d22e6237 /roundcubemail/program/steps/mail | |
| parent | 69bb5dd8808a57cadde7a419a1abd9edde4e3994 (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.
git-svn-id: https://svn.roundcube.net/trunk@413 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail')
| -rw-r--r-- | roundcubemail/program/steps/mail/func.inc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc index 9bda8906d..5e91d162f 100644 --- a/roundcubemail/program/steps/mail/func.inc +++ b/roundcubemail/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); } |
