From 12217da8b32a4e941d6b1c48601b223679224233 Mon Sep 17 00:00:00 2001 From: alecpl Date: Thu, 28 May 2009 17:47:59 +0000 Subject: - simplified attachments handling on reply/forward/draft compose (possible regressions) - also fix #1485847 --- program/steps/mail/compose.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'program') diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index f167053de..8d43de050 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -601,9 +601,8 @@ function rcmail_write_compose_attachments(&$message, $bodyIsHtml) $cid_map = array(); foreach ((array)$message->mime_parts as $pid => $part) { - if (($part->ctype_primary != 'message' || !$bodyIsHtml) && - ($part->disposition=='attachment' || $part->disposition=='inline' || $part->headers['content-id'] - || (empty($part->disposition) && $part->filename))) + if (($part->ctype_primary != 'message' || !$bodyIsHtml) && $part->filename && + ($part->disposition=='attachment' || ($part->disposition=='inline' && $bodyIsHtml) || (empty($part->disposition)))) { if ($attachment = rcmail_save_attachment($message, $pid)) { $_SESSION['compose']['attachments'][$attachment['id']] = $attachment; -- cgit v1.2.3