Closed Bug 246155 Opened 22 years ago Closed 21 years ago

Drag'n'drop local files [images] aren't embedded in composed mails

Categories

(MailNews Core :: Composition, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 180997

People

(Reporter: david, Assigned: sspitzer)

References

Details

drag an image from file:///something into a compose window. the email seems fine but when it is sent, the image is not embedded into the email - instead, the text "The image file:///something cannot be displayed because it contains errors" is put into the message body and there is no cid part. cvs head, 2004-6-9, tested using jpg files which render fine in all other circumstances
> drag an image from file:///something into a compose window. Could you spell this out in a little more detail? Drag from where, exactly?
Open up two components, browser and mail. load up file:///some/path/to/image.jpg in the browser. Start a compose window from mail. Grab the image from the browser and drag it into the compose window. Seemingly looks fine. Now send the message. the sent message contains the text "The image file:///some/path/to/image.jpg cannot be displayed because it contains errors." instead of the image.
WFM with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a2) Gecko/20040604 I was able to drag both into the message body of an HTML mail, and into the attachment pane, send and receive the mails, and have them render successfully. Have you seen correct behavior in previous builds? Could be Linux thing.
yes, it used to work just fine until last week.
*** Bug 264885 has been marked as a duplicate of this bug. ***
in further investigation, it appears that it happens when mozilla silently starts a composition as a text only email. not sure what is prompting that however. If I reply to a given email, I can insert images and they display fine. When I send it however, it gets converted to text/plain. I have since figured out that my address book mistakenly had this recipient as preferring to receive plain text but that's another bug or disk file corruption issue. I consider this a silent failure, if mozilla is going to send this out as plain text, then it should pop up a warning that the embedded image content will be lost. OR, it shouldn't allow me to paste rich content in the first place. If I start a plain text compose, mozilla inserts the "file:///......." text instead of an image. There should be a warning anytime the composition format is changed and content will be lost. So in short, the actual problem is the lack of feedback that the mailer is changing the content type when you send the message (because it starts out as an HTML compose). Mozilla isn't actually buggy about embedding images.
(In reply to comment #6) > I consider this a silent failure, if mozilla is going to send this out as > plain text, then it should pop up a warning that the embedded image content > will be lost. Agreed; that's bug 180997 -- vote for it. See also bug 113435. (In reply to comment #0) > "The image file:///something cannot be displayed because it contains > errors" is put into the message body and there is no cid part. This is the automatic 'alt' text provided by Mozilla when you open an image file into the browser -- it's what's seen when the image fails to display. If you drag an image with a proper 'alt' from a webpage to a plain-text compose window, that 'alt' text is displayed under the image's URL. If you drag such an image to the HTML, the 'alt' from the browser is preserved, and when the message is converted to plain text, that's what gets substituted for it.
Product: MailNews → Core
*** This bug has been marked as a duplicate of 180997 ***
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.