diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-06-16 08:06:53 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-06-16 08:06:53 +0000 |
| commit | 3313bd411c986625ef16d242667c2beb6d416bbf (patch) | |
| tree | 33821f2a294e296df1d0764d66da0a50f7a20b85 /roundcubemail/program/steps | |
| parent | 858bfcf7e3d0d53dfcf442fdd9bffc4822064a5b (diff) | |
- Fixed forwarding messages with one HTML attachment (#1484442)
- Fixed encoding of message/rfc822 attachments and image/pjpeg handling (#1484914)
git-svn-id: https://svn.roundcube.net/trunk@1551 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
| -rw-r--r-- | roundcubemail/program/steps/mail/compose.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/roundcubemail/program/steps/mail/compose.inc b/roundcubemail/program/steps/mail/compose.inc index 855066b0c..0bfcaf2cd 100644 --- a/roundcubemail/program/steps/mail/compose.inc +++ b/roundcubemail/program/steps/mail/compose.inc @@ -522,7 +522,7 @@ function rcmail_create_forward_body($body, $bodyIsHtml) // add attachments if (!isset($_SESSION['compose']['forward_attachments']) && is_array($MESSAGE->mime_parts)) - rcmail_write_compose_attachments($MESSAGE); + rcmail_write_compose_attachments($MESSAGE, $bodyIsHtml); return $prefix.$body; } @@ -539,13 +539,13 @@ function rcmail_create_draft_body($body, $bodyIsHtml) if (!isset($_SESSION['compose']['forward_attachments']) && is_array($MESSAGE->mime_parts) && count($MESSAGE->mime_parts) > 0) - rcmail_write_compose_attachments($MESSAGE); + rcmail_write_compose_attachments($MESSAGE, $bodyIsHtml); return $body; } -function rcmail_write_compose_attachments(&$message) +function rcmail_write_compose_attachments(&$message, $bodyIsHtml) { global $RCMAIL, $IMAP; @@ -556,7 +556,7 @@ function rcmail_write_compose_attachments(&$message) foreach ((array)$message->mime_parts as $pid => $part) { - if ($part->ctype_primary != 'message' && + if (($part->ctype_primary != 'message' || !$bodyIsHtml) && ($part->disposition=='attachment' || $part->disposition=='inline' || $part->headers['content-id'] || (empty($part->disposition) && $part->filename))) { |
