From f304d177eb014f497694c362e7773d3e77c50f16 Mon Sep 17 00:00:00 2001 From: bohwaz Date: Thu, 21 Sep 2023 14:27:17 +0200 Subject: [PATCH] Fix #5051 by always showing inline attachments in list of attachments --- program/lib/Roundcube/rcube_message.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/program/lib/Roundcube/rcube_message.php b/program/lib/Roundcube/rcube_message.php index d95fc6c16c5..e10d82b991f 100644 --- a/program/lib/Roundcube/rcube_message.php +++ b/program/lib/Roundcube/rcube_message.php @@ -939,6 +939,13 @@ private function parse_structure($structure, $recursive = false) && (!empty($mail_part->content_id) || !empty($mail_part->content_location)) ) { $this->add_part($mail_part, 'inline'); + + // Always show inline attachements in the list of attachments, + // as sometimes the attachment has a content-id but is not referred to in + // the HTML. Also if you switch to plaintext you won't be able to + // see the attachments. #5051 + // https://github.com/roundcube/roundcubemail/issues/5051 + $this->add_part($mail_part, 'attachment'); } // Any non-inline attachment