Closed Bug 764197 Opened 12 years ago Closed 8 years ago

Sending, replying to or saving as draft of e-Mail message with graphic images inline fails with error message "Sending of message failed. There was an error attaching .[sic] Please check if you have access to the file."

Categories

(MailNews Core :: Composition, defect)

x86
Windows 7
defect
Not set
normal

Tracking

(thunderbird-esr17 affected, seamonkey2.15 affected)

RESOLVED DUPLICATE of bug 532395
Tracking Status
thunderbird-esr17 --- affected
seamonkey2.15 --- affected

People

(Reporter: johnroenigk, Unassigned)

References

(Blocks 2 open bugs)

Details

(Whiteboard: dupeme)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20120604 Firefox/13.0 SeaMonkey/2.10
Build ID: 20120604225435

Steps to reproduce:

Tried to send, reply to or save as draft e-Mail message with graphic image(s) inline. Neither would the message be saved to "Send Later".


Actual results:

Sending, replying to or saving as draft of e-Mail message with graphic images inline fails with error message "Sending of message failed. There was an error attaching .[sic] Please check if you have access to the file." Seems same as Bug 542872, but this is SeaMonkey on Windows 7.




Expected results:

Message(s) should have successfully sent or have been saved as draft.
This "graphic image(s) inline", is it intended to be your email "signature"?



"If you get a "Sending of message failed. There was an error attaching . Please check if you have access to the file" error message you might be running into a bug that changes the path of the image file. Try installing the QuoteAndComposeManager add-on and checking "Try to fix images paths in functions etc" if that occurs."

http://kb.mozillazine.org/Thunderbird_:_FAQs_:_Signatures
(In reply to therube from comment #1)
> This "graphic image(s) inline", is it intended to be your email "signature"?
> 
> 
> 
> "If you get a "Sending of message failed. There was an error attaching .
> Please check if you have access to the file" error message you might be
> running into a bug that changes the path of the image file. Try installing
> the QuoteAndComposeManager add-on and checking "Try to fix images paths in
> functions etc" if that occurs."
> 
> http://kb.mozillazine.org/Thunderbird_:_FAQs_:_Signatures

No, the graphic is not intended to be my signature. I don't use a signature per se. The Send fails, apparently, with any graphic image included in the message. Thank you!
(In reply to therube from comment #1)

Don't mean to be a ditz, but does this QuoteAndComposeManager Add-On work with SeaMonkey? It mentions Thunderbird as a requirement. I'm using SeaMonkey 2.10.
I am seeing the same thing in Thunderbird, which I filed as Bug 764502  I did not originally dup here because I thought that my issue started with TB 15, but in fact I can now confirm that it fails in TB 13 but works in TB10. My issue occurs when I drag an image into the message.

I suspect that this is the same bug. Perhaps we should consolidate? I'm happy to dup here if there are no objections to changing the Component to, say, Core/Composition (though I suspect it is a backend bug related to security permissions).
> if there are no objections to changing the Component to, say, Core/Composition 
Sure please do.
Blocks: tb-drafts
I can confirm the error and can add some extra info. 

Seamonkey mail does not send inline images any more. At least, in my Seamonkey 2.15.2 mail program, two different png-images failed, one gif-image succeeded, a third png failed, one jpg succeeded and two jpg's failed.

Can this be repaired? This is a severe error. It used to work.
Is this reproducible on TB?
Whiteboard: dupeme
Yes, it is reproducible on TB. I just downloaded TB 17.0.2. en-us, and installed and ran it on Windows XP. Inserting my same local PNG-file in the e-mail that produced the error in SM and then sending it, lets TB hang, ultimately producing the error message as described in the title of this bug.

I can't show you the image file as uploading this PNG file as attachment here on this bugzilla page make this bugzilla page hang also :) 

So I took a PNG image from the web, the three dices image on the Wikipedia PNG-page http://en.wikipedia.org/wiki/Portable_Network_Graphics, at http://en.wikipedia.org/wiki/File:PNG_transparency_demonstration_1.png. Using Insert, Image... and then inserting the http-address at Image location does not work either, the image does not show up in the e-mail :) But *dragging* the dices image from the Wikipedia page in the TB e-mail works, the image shows up. But then sending it to myself lets TB hang, ultimately producing the same error message.

This example you can try yourself.
Component: MailNews: Composition → Composition
Product: SeaMonkey → MailNews Core
Version: SeaMonkey 2.10 Branch → Trunk
Status: UNCONFIRMED → NEW
Ever confirmed: true
May or may not be similar to Bug 532395.
(In reply to Johannes Leushuis from comment #8)
> So I took a PNG image from the web, the three dices image on the Wikipedia
> PNG-page http://en.wikipedia.org/wiki/Portable_Network_Graphics, at
> http://en.wikipedia.org/wiki/File:PNG_transparency_demonstration_1.png.
> Using Insert, Image... and then inserting the http-address at Image location
> does not work either, the image does not show up in the e-mail :)

Which is URL string what you actually put in Image location: field?
a) http://en.wikipedia.org/wiki/Portable_Network_Graphics
   Content-Type: text/html
b) http://en.wikipedia.org/wiki/File:PNG_transparency_demonstration_1.png
   Content-Type: text/html
c) http://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png
   Content-Type: image/png

> But *dragging* the dices image from the Wikipedia page in the TB e-mail works, the image shows up.
> But then sending it to myself lets TB hang, ultimately producing the same error message.

What URL string is shown at Image location: field of the image in mail composition windows?

(i) Image location: is kept while a mail composing.
- Insert local image file, Drag&Drop image of web page,
  Drag&Drop local image file from Windows Explorer, ...
  => file:// URL 
- Insert http:// ... URL, Drag&Drop URL
  hyyp:// URL 
- Edit Draft, Edit As New
  => mailbox:// or imap: URL with pointing messageKey of referred mail
(ii) Phenomenon depends on the Image location:, for example,
- Edit As New or Forward, imap:// URL, refered mail is deleted
  => bug 453196
- Edit Draft, mailbox: URL, old draft is shifted by Compact
  => bug 817245
- Forward as attachment, mailbox: URL, mail is deleted
  => Bug 391190.
- If http: URL, image data is downloaded to Disk Cache of Tb,
  and image data is obtained from Disk Cache upon each draft save,
  and image data is embed in draft mail and pointed by cid: URL.
  This "embed image data in draft mail" is not used in the composition.
  So, phenomenon like next ca be observed.
  - Insert http: URL image, save as draft
  - Go Work Offline
  - Delete all files in Tb's Disk Cache
  - Save As Draft => Endles dialog of "Attaching" by trying of HTTP GET
  - Cancel, Go Work Online, View image property
    => HTTP GET is issued, and image is saved in Disk Cache afain.
  If Disk Cache is somehow corrupted, similar thing may occur.
FYI.
If IMAP, bug 287674 may occur.
If http: URL and URL is re-directed, similar phenomenon to "intentionl Dsk Cache deletion" case occurs, perhaps because internal path name in Disk Cache is different from oridnal.(I can't recall bug number).
If "Forward of HTML mail with embade image" and "Insert image file/URL" and "HTML signature with image of file://, http://, data://" are used at same time, multiple problems of different cause may occur at same time. Please rule out such "multiple problems at same time" case.
See Also: → 532395
(In reply to John Roenigk from comment #0)
> Actual results:
> Sending, replying to or saving as draft of e-Mail message with graphic
> images inline fails with error message
> "Sending of message failed. There was an error attaching .[sic]
> Please check if you have access to the file."

Similar error dialog is easily reproduced in Tb by;
(1) Attach image file to composing mail(call C:\ ...\color-squre.PNG)
(2) Rename color-squre.PNG to color-squre.PNG-XXX
(3) Save, or Send Later, or Send
    => Following error dialog is shown.
> (Save as draft:) Unable to save your message as draft.
> (Send Later   :) Unable to save your message in order to send it later.
> (Send         :) Sending of message failed.  
> Unable to open the temporary file C:\ ...\color-squre.PNG. Check your 'Temporary Directory' setting.

Bug opener, what do you call by your "e-Mail message with graphic
> images inline"?
(a) Attached image file(image/jpeg part under multipart)
(a-1) Attached file in the new mail composing
(a-1-1) Local file : Internal path = file:///C:/.../FileName.JPG
(a-1-2) Remote file: Internal path = file://///Server/.../FileName.JPG
(a-2) Attachment in existent mail(Forward Inline/Edit As New/Edit Draft)
(a-2-1) Content-Type:image/xxx under multipart/mixed
      Internal path = mailbox:// or imap:// which points referred mail
(a-2-2) Content-Type:image/xxx under multipart(Non multipart/mixed)
      Internal path = mailbox:// or imap:// which points referred mail
(b) Embed image in existent HTML mail including draft/template mail
(b-1) file:// URI
      <img src="file://....JPG">, without moz-do-not-send="true"
(b-2) http:// URI
      <img src="http://....JPG">, without moz-do-not-send="true"
(b-3) data:// URI
      <img src="data:image/xxx;base64,...>, any moz-do-not-send
(b-4) cid:// URI
      <img src="cid:xxx>, and image subpart of Content-ID: <xxx>
(c) Other which refers to image resource
I can confirm this bug.
I was using TB 24.3.0 on a Windows 7 64 bit pro.
It appeared  when I was replying to an email with 5 different inline images.
The only way to bypass the problem was:
1. Save my reply as an html file
2. Close TB and reopen it
3. Re-create a reply starting from the original message sent to me.
4. Substitute the original content by pasting the content of the saved html, leaving some of the original images in between text.

Please note that the original message was in the inbox and was moved nowhere during all these operations.

Leopoldo Saggin
I also get this error even with Thunderbird 28. A good workaround is to find the offending picture and then cut and paste it back, which seems to work in most of the cases. Only problem is that it can take a long time to find the correct image when you are working with screen shots a lot.
I have the same issue with TB 24.3.0 working on Win8 64bit.
For the less techy peeps out there.
I have found a work around for this problem.
I had copied phone numbers  into my email message. The page then called for the skype png file to send (with skype click to call tags presumably). I should think this applies to any invisibly embedded links not readily identified.
The work around is to cut the entire message out of the email message pane. Paste into MS Notebook and then cut and paste back into Thunderbird into a new mail message. 
A bit crude but it works. It appears to purge any hyperlinks or associations.
I think Thunderbird lacks some type property dialogue and this might be where the community could improve usability.
I would assume the same workaround might be good on Apple iOS as well.
This really is the same problem as bug 532395.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: