"edit as new message" broken for messages containing an inline image
Categories
(MailNews Core :: MIME, defect)
Tracking
(Not tracked)
People
(Reporter: b_james, Unassigned)
References
(Regression)
Details
(Keywords: regression)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:158.0) Gecko/20100101 Firefox/158.0
Steps to reproduce
Send a message whose message body contains only an inline image (.jpg). In the Sent folder, right-click that message then select "Edit as new message". The new message pops up with the image frame showing in the body, but no image in the frame. When that new message is sent, the image is still missing.
I do this operation frequently and I update Thunderbird frequently. This problem is quite new, though I cannot identify the exact version of Thunderbird where the problem started happening. The problem happens in Thunderbird 158.0 (installed today).
Actual results
The first message composes and sends correctly. But "Edit as new message" incorrectly changes one attribute in the SMTP header, from
moz-do-not-send="false"
to
moz-do-not-send="true"
when it pops up the new message composition window. (Seen by immediately saving the new message as a draft, then open the source of that message in the drafts folder.)
Example full headers of first message [recipient name redacted]:
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00800000
Content-Type: multipart/alternative;
boundary="------------Xnf81iRszacLxuiK6LTGLDF0"
Message-ID: <e03ae9c4-c3c4-41c3-884f-b1c8f1315d25@pacbell.net>
Date: Wed, 14 Oct 2026 14:25:23 -0700
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
To: XXX <XXX@sbcglobal.net>
From: Beau James <b_james@pacbell.net>
Subject: The real impact of Dementia Donnie's diesel deal with Putin
This is a multi-part message in MIME format.
--------------Xnf81iRszacLxuiK6LTGLDF0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
--------------Xnf81iRszacLxuiK6LTGLDF0
Content-Type: multipart/related;
boundary="------------ou80bbgOWkKM0HzwMUV7xOKh"
--------------ou80bbgOWkKM0HzwMUV7xOKh
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p><img src="cid:part1.j2ptKKZc.qTck1JV1@pacbell.net"
moz-do-not-send="false" class="" width="691" height="520"></p>
</body>
</html>
--------------ou80bbgOWkKM0HzwMUV7xOKh
Content-Type: image/jpeg; name="20261014_DrumpfsRussianDieselDeal001.jpg"
Content-Disposition: inline;
filename="20261014_DrumpfsRussianDieselDeal001.jpg"
Content-Id: <part1.j2ptKKZc.qTck1JV1@pacbell.net>
Content-Transfer-Encoding: base64
/9j/4AAQSkZJRgABAQECWAJYAAD/4gHMSUNDX1BST0ZJTEUAAQEAAAG8QVBQTAIgAABtbnRy
<encoded image >
tyOO+CarW0AluJCWIDAqVHQ4/kOKS3uil48RQPGxVVUk/LzirEZeK5uI1KhQw4CjGSK//9k=
--------------ou80bbgOWkKM0HzwMUV7xOKh--
--------------Xnf81iRszacLxuiK6LTGLDF0--
=================
However, the second message, started with "Edit as new" on the first message, shows:
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00800000
Content-Type: multipart/alternative;
boundary="------------2VLP0svkC4DqMuhs2bOR2q9P"
Message-ID: <1049336b-5399-4b3d-99ce-e83ba90fe321@pacbell.net>
Date: Wed, 14 Oct 2026 14:26:15 -0700
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
From: Beau James <b_james@pacbell.net>
Subject: The real impact of Dementia Donnie's diesel deal with Putin
To: Constance Fitzpatrick <mrsfitz1525@gmail.com>
Content-Language: en-US
This is a multi-part message in MIME format.
--------------2VLP0svkC4DqMuhs2bOR2q9P
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
--------------2VLP0svkC4DqMuhs2bOR2q9P
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p><img
src="mailbox:///C:/Users/bjames/AppData/Roaming/Thunderbird/Profiles/4ogly6i8.default/Mail/Local%20Folders/Sent6892c2d1?number=3&part=1.2.2&type=image%2Fjpeg&filename=20261014_DrumpfsRussianDieselDeal001.jpg"
moz-do-not-send="true" class="" width="691" height="520"></p>
</body>
</html>
--------------2VLP0svkC4DqMuhs2bOR2q9P--
Expected results
The new message created using "Edit as New Message" should start fully identical to the original message, included all inline images.
Comment 2•29 days ago
|
||
Also reported at https://support.mozilla.org/en-US/questions/1614231
Comment 3•29 days ago
|
||
Regressed by Bug 2075393? Right click on inline image in message pane zooms instead of bringing up context menu
Comment 4•29 days ago
|
||
Hello,
Managed to reproduce this issue using TB 158.0.1 on a macOS Sonoma 15.4.7.
Configured and IMAP account, went to Account Settings and changed Copies&Folders and set “Place a copy in” to Other ->Local Folder -> Sent.
Compose a new message and inset an inline image, send the message and went to Local Folders -> Sent folder and right click on the message sent and choose Edit as New message.
The image is missing.
Managed to find the regression range.
Seems the last good known build was from 2026-09-08 and the first bad build was from 2026-09-09.
The bisection returned:
2026-10-26T16:32:19.231000: DEBUG : Found commit message: Bug 2070049 - Make nsStreamConverter work with an nsIURI or an nsIChannel. r=mkmelin Only the nsIURI value is needed to make the converter work, and the channel provides one, but a channel shouldn't be required. Differential Revision: https://phabricator.services.mozilla.com/D324178 2026-10-26T16:32:19.231000: DEBUG : Did not find a branch, checking all integration branches 2026-10-26T16:32:19.235000: INFO : The bisection is done. 2026-10-26T16:32:19.236000: INFO : Stopped
Updated•29 days ago
|
Updated•28 days ago
|
Description
•