Open Bug 1544657 Opened 6 years ago Updated 3 years ago

images in Templates saved to subfolders causes "Thunderbird has blocked a file from loading into this message."

Categories

(Thunderbird :: Message Compose Window, defect)

defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: sinstr69, Unassigned, NeedInfo)

Details

Attachments

(7 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0

Steps to reproduce:

Creating new email from a template is fine if template is directly in Template folder.
However (for organizational purposes) template is saved in a subfolder of Templates folder the images (in signature) report as being blocked and cannot be unblocked.
Using an Exchange shared mailbox/Imap

Actual results:

Thunderbird has blocked a file from loading into this message. Unblocking the file will include it in your sent message. Clicking options and unblock fails

Expected results:

unblocking should work or as per templates not in subfolders are not blocked to begin with

Sorry for the delay here. How does the template actually reference the image? Using a file: URL or a http(s): URL? Maybe you can view the source of the template and copy/paste the image information here.

in the above email the signature picture is working, but if I was to move this into a sub-folder of the templates menu the picture is broken

Please don't paste message content into comments. Attach the .eml file instead using "Attach File" above.

Attached file template.eml

Here's the message. I had to correct the encoding in the part header to UTF-8. Like this, it displays fine. I don't see an issue if the template is moved into a subfolder of Templates, but then, I'm not using IMAP right now. However, the linkage is from <img id="Picture_x0020_1" src="cid:part3.301090AA.0FB10BCC@gippswifi.com.au" alt="Gipps Wifi Logo EDITED" class="" width="244" height="73"> to the image part

--------------17BA7CC9626EBBBD22BC6CDD
Content-Type: image/jpeg;
name="image001.jpg"
Content-Transfer-Encoding: base64
Content-ID: <part3.301090AA.0FB10BCC@gippswifi.com.au>
Content-Disposition: inline;
filename="image001.jpg"

and that should always work. I'll try IMAP in a minute.

Hmm, no difference when using IMAP. Template displays fine in subfolder and "New Message from Template" also works. You're really using IMAP or are you perhaps accessing your Exchange server via a 3rd-party add-on like Owl or ExQuilla?

Not using 3rd party exchange client.
This when moved into sub-folder makes the picture break.

this is an emial that had the missing picture copy and pasted in. When I created it it seemed to work, but after sending this is what is left in the sent items folder. Not sure if it is related but hope it helps.
I will attach a copy of the other email with broken signature when
I get back to work.

Attachment #9118693 - Attachment mime type: message/rfc822 → text/plain
Attachment #9118694 - Attachment mime type: message/rfc822 → text/plain

I don't know what the problem is or how that relates to templates, or templates stored in subfolder. The message "Example of a broken image email" displays fine for me after unblocking the remote content which comes in from https://www.groovypost.com/wp-content/uploads/2017/04/OOBE-2-640x480.png

    <p><img class="lazy alignnone size-medium wp-image-107143
        lazy-loaded" src="https://www.groovypost.com/wp-content/uploads/2017/04/OOBE-2-640x480.png" data-lazy-type="image" data-lazy-src="https://www.groovypost.com/wp-content/uploads/2017/04/OOBE-2-640x480.png" alt="" data-lazy-srcset="https://www.groovypost.com/wp-content/uploads/2017/04/OOBE-2-640x480.png
        640w,
        https://www.groovypost.com/wp-content/uploads/2017/04/OOBE-2-768x576.png
        768w,
        https://www.groovypost.com/wp-content/uploads/2017/04/OOBE-2.png
        1026w" data-lazy-sizes="(max-width: 640px) 100vw, 640px" width="640" height="480"></p>

Or that exactly isn't displaying correctly?

Sorry It had been some time since I looked at this issue myself.
As mentioned in previous reply unblocking should show the picture.
The I ssue I have been finding is that when the template is in a subfolder the unblock crashes and does nothing except prevent the options button from responding again.

Attached image bkkkkmbdcfanailf.png

This comes from blockedContentMessage https://searchfox.org/comm-central/source/mail/components/compose/content/MsgComposeCommands.js#8825

Why we would relax this for a message that isn't in the templates folder?

Component: Untriaged → Message Compose Window
Flags: needinfo?(bugzilla2007)
Summary: images in Templates saved to subfolders → images in Templates saved to subfolders causes "Thunderbird has blocked a file from loading into this message."

I have the same issue: images in sub-folder templates are blocked. Clicking option then unblock on yellow alert message does not solve problem.
My personal observation re this bug is in 'image properties' with a location changing from 'data:image/png;filename=etc...' working properly to 'imap://info%40 etc...'

I have attached screenshot

So the question is : why images are blocked and change of location when you move message from templates to a sub-folder template?

It is just annoying in term of time waste as you have to insert a proper image every time you use a template stored in a template sub-folder. Meaning that it is impossible to sort our templates in different subfolders

Many thanks

Attached image TB images 2.png
Attached image TB images 2.png
Attached image TB images 1.png

Are you still seeing this with version 91 or newer?

Flags: needinfo?(sinstr69)
Flags: needinfo?(philippe)
Flags: needinfo?(bugzilla2007)

Yes I do (last version)

Flags: needinfo?(philippe)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: