diff --git a/CHANGELOG b/CHANGELOG index fb37dafba..fd608c3d2 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,8 @@ CHANGELOG Roundcube Webmail =========================== +- Fix bug where a message/rfc822 part without a filename wasn't listed on the attachments list (#6494) + RELEASE 1.3.8 ------------- - Fix PHP warnings on dummy QUOTA responses in Courier-IMAP 4.17.1 (#6374) diff --git a/program/lib/Roundcube/rcube_message.php b/program/lib/Roundcube/rcube_message.php index eff9b47bc..9be244d7b 100644 --- a/program/lib/Roundcube/rcube_message.php +++ b/program/lib/Roundcube/rcube_message.php @@ -769,12 +769,12 @@ class rcube_message // multipart/alternative or message/rfc822 if ($primary_type == 'multipart' || $part_mimetype == 'message/rfc822') { - $this->parse_structure($mail_part, true); - - // list message/rfc822 as attachment as well (mostly .eml) - if ($primary_type == 'message' && !empty($mail_part->filename)) { + // list message/rfc822 as attachment as well + if ($part_mimetype == 'message/rfc822') { $this->add_part($mail_part, 'attachment'); } + + $this->parse_structure($mail_part, true); } // part text/[plain|html] or delivery status else if ((($part_mimetype == 'text/plain' || $part_mimetype == 'text/html') && $mail_part->disposition != 'attachment') ||