summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
authorsvncommit <devs@roundcube.net>2006-04-26 21:31:53 +0000
committersvncommit <devs@roundcube.net>2006-04-26 21:31:53 +0000
commitf1bed7462cf076270c53ca67979390741e812e7b (patch)
treeb0345962cba9f23f36284adbdafbac0e3a8b9ed7 /program/steps/mail
parentcbd62d9e75c17b87643cd1c4117e6719329c2399 (diff)
Corrected issue displaying attachments that use content-description rather than filename or name disposition headers
Diffstat (limited to 'program/steps/mail')
-rw-r--r--program/steps/mail/func.inc8
1 files changed, 7 insertions, 1 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 21ae0b56d..6a24c02d5 100644
--- a/program/steps/mail/func.inc
+++ b/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 */);
}
}