diff --git a/CHANGELOG b/CHANGELOG index eb20920d1..f65e6573d 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -33,6 +33,7 @@ CHANGELOG Roundcube Webmail - Fix PHP warning: count(): Parameter must be an array or an object... in ID command handler (#7392) - Fix error when user-configured skin does not exist anymore (#7271) - Elastic: Fix aspect ratio of a contact photo in mail preview (#7339) +- Fix bug where PDF attachments marked as inline could have not been attached on mail forward (#7382) RELEASE 1.4.4 ------------- diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index 9bf17558f..387b5d653 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -982,8 +982,9 @@ function rcmail_write_compose_attachments(&$message, $bodyIsHtml, &$message_body $replace = null; - // skip inline images when not used in the body - if ($part->disposition == 'inline') { + // Skip inline images when not used in the body + // Note: Apple Mail sends PDF files marked as inline (#7382) + if ($part->disposition == 'inline' && $part->mimetype != 'application/pdf') { if (!$bodyIsHtml) { continue; }