Closed Bug 1464825 Opened 6 years ago Closed 6 years ago

Unable to open certain jpg file attachments

Categories

(Thunderbird :: Untriaged, defect)

52 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1418444

People

(Reporter: pwalsh, Unassigned)

Details

Attachments

(4 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36

Steps to reproduce:

Unable to open certain jpeg files. Message from image viewer Can't read file header


Actual results:

When I try to open image 
Message from image viewer: 
Can't read file header. 
Unknown file format, empty/damaged file or file not found.
When I save the file , file size is 1kb.

When I forward message to gmailor outlook  I am able to open the image.



Expected results:

Image viewer should open attached image file.
Please attach the message in question.
email with 3 jpg\jpeg files attached.
When I save as eml and then open the eml 2 of the 3 images will open.

I am unable to open any directly from Thunderbird.
Attachment #8982236 - Attachment mime type: message/rfc822 → text/plain
(In reply to pwalsh from comment #2)
> When I save as eml and then open the eml 2 of the 3 images will open.

Right, only 0525_1.jpg and packing list.jpeg open. The other attachment is external and/or deleted, please check the message source:

------=_NextPart_5B080746_0A53E9E8_0DF40D4E
Content-Type: application/octet-stream;
	charset="gb18030";
	name="=?gb18030?B?Y29tbWVyY2lhbCBpbnZvaWNlLmpwZWc=?="
Content-Disposition: attachment; filename="commercial invoice.jpeg"
X-Mozilla-External-Attachment-URL: file:///C:/Users/admin/Desktop/eLocal/commercial%20invoice.jpeg
X-Mozilla-Altered: AttachmentDetached; date="Mon May 28 10:16:19 2018"

You deleted an attachment from this message. The original MIME headers for the attachment were:
Content-Type: application/octet-stream;
	charset="gb18030";
	name="=?gb18030?B?Y29tbWVyY2lhbCBpbnZvaWNlLmpwZWc=?="
Content-Disposition: attachment; filename="=?gb18030?B?Y29tbWVyY2lhbCBpbnZvaWNlLmpwZWc=?="
Content-Transfer-Encoding: base64
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
(In reply to Jorg K (GMT+2) (bustage-fix and urgent reviews only) from comment #3)
> (In reply to pwalsh from comment #2)
> > When I save as eml and then open the eml 2 of the 3 images will open.
> 
> Right, only 0525_1.jpg and packing list.jpeg open. The other attachment is
> external and/or deleted, please check the message source:
> 
> ------=_NextPart_5B080746_0A53E9E8_0DF40D4E
> Content-Type: application/octet-stream;
> 	charset="gb18030";
> 	name="=?gb18030?B?Y29tbWVyY2lhbCBpbnZvaWNlLmpwZWc=?="
> Content-Disposition: attachment; filename="commercial invoice.jpeg"
> X-Mozilla-External-Attachment-URL:
> file:///C:/Users/admin/Desktop/eLocal/commercial%20invoice.jpeg
> X-Mozilla-Altered: AttachmentDetached; date="Mon May 28 10:16:19 2018"
> 
> You deleted an attachment from this message. The original MIME headers for
> the attachment were:
> Content-Type: application/octet-stream;
> 	charset="gb18030";
> 	name="=?gb18030?B?Y29tbWVyY2lhbCBpbnZvaWNlLmpwZWc=?="
> Content-Disposition: attachment;
> filename="=?gb18030?B?Y29tbWVyY2lhbCBpbnZvaWNlLmpwZWc=?="
> Content-Transfer-Encoding: base64

My issue is that I cannot open the images without saving the message as an eml file. From the Thunderbird interface the ia=mage viewer is unable to open the image. I get an invalid file header message.
Sorry, but the message you supplied had the attachment deleted:
  You deleted an attachment from this message. The original MIME headers for the attachment were ...
(In reply to Jorg K (GMT+2) (bustage-fix and urgent reviews only) from comment #5)
> Sorry, but the message you supplied had the attachment deleted:
>   You deleted an attachment from this message. The original MIME headers for
> the attachment were ...

Yes I realise I deleted the attachment. That has created confusion. My apologies. 
My problem is not with the particular attachment I deleted.  I have several emails with attachments I cannot open in Thunderbird.  My workaround is to save as eml file.  
However I am unable to view the attachments unless I save them as an eml file.  We have several Thunderbird users who are encountering the same problem.  Do you have a Thunderbird email account so that I can send one of the problem emails and you can see what is happening.
So attach an e-mail where the attachment cannot be opened but is *not* deleted.

Also, do these messages reside in IMAP folders? I noticed that some of the attachments don't have the correct type of image/jpeg but instead application/octet-stream.

Not being able to open attachments of type application/octet-stream in IMAP folders is bug 1418444.
I'm getting a bit bored here :-(

The attachments in the e-mail are deleted:

Content-Type: application/octet-stream;
 name="WechatIMG10.jpeg"
Content-Disposition: attachment; filename="WechatIMG10.jpeg"
X-Mozilla-External-Attachment-URL: file:///C:/Users/admin/Desktop/eLocal/WechatIMG10.jpeg
X-Mozilla-Altered: AttachmentDetached; date="Tue May 08 15:02:18 2018"

You deleted an attachment from this message. The original MIME headers for the attachment were:
Content-Type: application/octet-stream;
 name="WechatIMG10.jpeg"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="WechatIMG10.jpeg"
(In reply to Jorg K (GMT+2) (bustage-fix and urgent reviews only) from comment #9)
> I'm getting a bit bored here :-(
> 
> The attachments in the e-mail are deleted:
> 
> Content-Type: application/octet-stream;
>  name="WechatIMG10.jpeg"
> Content-Disposition: attachment; filename="WechatIMG10.jpeg"
> X-Mozilla-External-Attachment-URL:
> file:///C:/Users/admin/Desktop/eLocal/WechatIMG10.jpeg
> X-Mozilla-Altered: AttachmentDetached; date="Tue May 08 15:02:18 2018"
> 
> You deleted an attachment from this message. The original MIME headers for
> the attachment were:
> Content-Type: application/octet-stream;
>  name="WechatIMG10.jpeg"
> Content-Transfer-Encoding: base64
> Content-Disposition: attachment;
>  filename="WechatIMG10.jpeg"

Sorry.  Have now attached the original message before I messed around with it.
All these pictures open when the message is in a local folder. Kindly answer comment #7:

Also, do these messages reside in IMAP folders? I noticed that some of the attachments don't have the correct type of image/jpeg but instead application/octet-stream.

Not being able to open attachments of type application/octet-stream in IMAP folders is bug 1418444.
(In reply to Jorg K (GMT+2) (bustage-fix and urgent reviews only) from comment #7)
> So attach an e-mail where the attachment cannot be opened but is *not*
> deleted.
> 
> Also, do these messages reside in IMAP folders? I noticed that some of the
> attachments don't have the correct type of image/jpeg but instead
> application/octet-stream.
> 
> Not being able to open attachments of type application/octet-stream in IMAP
> folders is bug 1418444.

Messages do reside in IMAP folders.  Users using Outlook are able to open the attachments.
You can either copy the message to a local folder or select the IMAP folder for offline use in the synchronisation settings. Both will make the images available until bug 1418444 is fixed.
Resolution: INVALID → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: