Closed Bug 1825963 Opened 1 year ago Closed 1 year ago

Attachment icon not removed once we realize multipart/mixed email didn't have attachment after all

Categories

(MailNews Core :: MIME, defect)

Thunderbird 112
defect

Tracking

(thunderbird_esr102 unaffected, thunderbird113 fixed)

RESOLVED FIXED
114 Branch
Tracking Status
thunderbird_esr102 --- unaffected
thunderbird113 --- fixed

People

(Reporter: steve, Assigned: mkmelin)

References

(Blocks 1 open bug)

Details

(Keywords: regression, Whiteboard: [Supernova3p])

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0

Steps to reproduce:

Clicked on an email in the message list with an attachment icon (paperclip) showing.

Actual results:

The email when displayed, had no attachment

Expected results:

The attachment icon should not have shown.

This is in 112.0b4 on openSuse.
This occurs with all emails from https://groups.google.com/g/diy-pid-control
Their structure is;

List-Unsubscribe: <mailto:googlegroups-manage+396384984924+unsubscribe@googlegroups.com>,
 <https://groups.google.com/group/diy-pid-control/subscribe>

------=_Part_104_1120712532.1680021669573
Content-Type: multipart/alternative; 
	boundary="----=_Part_105_654613545.1680021669573"

------=_Part_105_654613545.1680021669573
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

My reply didn't make it, and I've had a little experience since then.
I'm using a ThermoElectricCooler

More plain text

------=_Part_105_654613545.1680021669573
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

My reply didn't make it, and I've had a little experience since then.<div><=
br /></div><div>I'm using a ThermoElectricCooler, also for heating, reversi=

more HTML
<br />

------=_Part_105_654613545.1680021669573--

------=_Part_104_1120712532.1680021669573--
Whiteboard: [Supernova]

Another place this occurs is with emails from Aliexpress.

MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_6593445_1169623937.1679576167387"
Feedback-ID: default:transaction@notice.aliexpress.com:S-others:151973

------=_Part_6593445_1169623937.1679576167387
Content-Type: text/html;charset=utf-8
Content-Transfer-Encoding: quoted-printable

<div style=3D"display:none"><img style=3D"display:none" src=3D"http://ae.mm=

more html

</body>
</html>
------=_Part_6593445_1169623937.1679576167387--

Bug 479017 from 2009. In comment #2 you've pasted multipart/mixed, in messages from Google Groups, there's also a defective Content-Type: multipart/mixed; header further up in the message source:

Subject: Re: Bug - File is missing
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_6328_410490908.1680404150017"
X-Original-Sender: milosp2008@gmail.com
Precedence: list
Mailing-list: list onecommander@googlegroups.com; contact onecommander+owners@googlegroups.com
List-ID: <onecommander.googlegroups.com>
X-Google-Group-Id: 64225701208
List-Post: <https://groups.google.com/group/onecommander/post>, <mailto:onecommander@googlegroups.com>
List-Help: <https://groups.google.com/support/>, <mailto:onecommander+help@googlegroups.com>
List-Archive: <https://groups.google.com/group/onecommander
List-Subscribe: <https://groups.google.com/group/onecommander/subscribe>, <mailto:onecommander+subscribe@googlegroups.com>
List-Unsubscribe: <mailto:googlegroups-manage+64225701208+unsubscribe@googlegroups.com>,
 <https://groups.google.com/group/onecommander/subscribe>
  • Steve, does TB release version 102 also show the attachment icon for such messages?
  • What makes you think that this issue was introduced by Supernova?
Component: Untriaged → MIME
Flags: needinfo?(steve)
Product: Thunderbird → MailNews Core

I have only noticed it since Supernova, I will check as far back as I can with mozregression.

Flags: needinfo?(steve)

If you read bug 479017 comment #12 you will see that multipart/mixed messages are treated as having an attachment until you click on them and the system notices that there isn't one. No need to use mozregression (besides, it won't work since there is no "good" state since 2009 and likely before). Just use any TB ESR with version 102, 91, 78, 68, 60, 52, 45, 31, 24, 17 or so.

(In reply to Thomas D. (:thomas8) from comment #4)

  • Steve, does TB release version 102 also show the attachment icon for such messages?
  • What makes you think that this issue was introduced by Supernova?

TB release version 102 shows the attachment icon and when you click on the message the icon goes away.
TB release version 112 shows the attachment icon and when you click on the message the icon does not go away.

Apologies, thanks for clarifying. Yes, at least when clicked, the icon should go away.

Confirmed.
(See markHasAttachments)

Blocks: sn-msglist
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
Summary: Attachment icon showing but no attachment to open/download → Attachment icon not removed once we realize multipart/mixed email didn't have attachment after all

Thanks Francesco!

Assignee: nobody → mkmelin+mozilla
Status: NEW → ASSIGNED
Target Milestone: --- → 114 Branch

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/8ba66a78ae60
Reinstate code to remove attachment icon once we realize multipart/mixed email didn't have attachment after all. r=darktrojan

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED

Comment on attachment 9329183 [details]
Bug 1825963 - Reinstate code to remove attachment icon once we realize multipart/mixed email didn't have attachment after all. r=darktrojan

[Triage Comment]
Approved for beta - restoring removed code

Attachment #9329183 - Flags: approval-comm-beta+

Updating whiteboard to [supernova3p]. 20230424_2303

Whiteboard: [Supernova] → [Supernova3p]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: