summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authorvengadrew <vengadrew@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-04-26 21:31:53 +0000
committervengadrew <vengadrew@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-04-26 21:31:53 +0000
commit534fc8827992919df5f11f0b2cae0464b00c47a9 (patch)
treedd41f8db6a7bb3b5dfeeee4a6c85172f3e2b46d2 /roundcubemail/program
parentf675365493b2d2a4d175fe9c9db769c88999ceef (diff)
Corrected issue displaying attachments that use content-description rather than filename or name disposition headers
git-svn-id: https://svn.roundcube.net/trunk@200 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/steps/mail/func.inc8
1 files changed, 7 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc
index 21ae0b56d..6a24c02d5 100644
--- a/roundcubemail/program/steps/mail/func.inc
+++ b/roundcubemail/program/steps/mail/func.inc
@@ -917,7 +917,13 @@ function rcmail_parse_message($structure, $arg=array(), $recursive=FALSE)
'size' => strlen($IMAP->mime_decode($mail_part->body, $mail_part->headers['content-transfer-encoding'])) /*,
'content' => $mail_part->body */);
-
+ else if ($mail_part->headers['content-description'])
+ $a_attachments[] = array('filename' => rcube_imap::decode_mime_string($mail_part->headers['content-description']),
+ 'encoding' => strtolower($mail_part->headers['content-transfer-encoding']),
+ 'mimetype' => strtolower("$primary_type/$secondary_type"),
+ 'part_id' => $mail_part->mime_id,
+ 'size' => strlen($IMAP->mime_decode($mail_part->body, $mail_part->headers['content-transfer-encoding'])) /*,
+ 'content' => $mail_part->body */);
}
}