You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@bergbria
I saw this new setting 'EnableExperimentalHtmlFeatures' and activated it in my configuration.
The latest githubmaster branch is running on my TFS test server.
I thought, from the commit messages, that inline images in html emails should now appear inline in the Description field and even in the Comment fields, but they don't.
After the pickup of the mail by Mail2Bug, I get an empty box in the Description field.
Looking inside I see:
When hovering, the browser says : Cannot load image
(the images is attached to the ticket in the attachements, like before)
Is there some other configuration to do?
Or am I seeing this in the wrong context?
The text was updated successfully, but these errors were encountered:
I unfortunately no longer have access to a Mail2Bug deployment to test this on. It worked in my team's instance when we deployed it but I don't immediately know why it would fail in yours.
If I had to guess the problem, I'd say the elements in your email html have src attributes which don't match the pattern expected by UpdateEmbeddedImageLinks(). You should be able to confirm that by attaching a debugger and seeing what the attachment ContentIds come through as.
string originalImgSrc = $"cid:{attachment.ContentId}";
var matchingImgLinks = dom[$"img[src$='{originalImgSrc}']"];
I believe I'm seeing this same issue with HTML emails and embedded images in Azure DevOps. In the below example you can see the text is formatting correctly (bold, red, etc) but the image embedded in the email is not displayed properly. I'm using the following mapping option to generate the below.
Possibly related is that the image is also not displaying properly in the Attachments area. Even when I attempt to preview the image in ADO it is not displayed properly (see below). The only way to see the image is to download it or open the attached original email.
I tried debugging the code (using a clone taken on Feb 19th 2021), looking at class EmailBodyProcessingUtils and method UpdateEmbeddedImageLinks, but this was never hit.
@bergbria
I saw this new setting 'EnableExperimentalHtmlFeatures' and activated it in my configuration.
The latest githubmaster branch is running on my TFS test server.
I thought, from the commit messages, that inline images in html emails should now appear inline in the Description field and even in the Comment fields, but they don't.
![image](https://user-images.githubusercontent.com/3419875/74334909-36a0d100-4d9b-11ea-84b8-46964d159aa9.png)
After the pickup of the mail by Mail2Bug, I get an empty box in the Description field.
Looking inside I see:
When hovering, the browser says : Cannot load image
(the images is attached to the ticket in the attachements, like before)
Is there some other configuration to do?
Or am I seeing this in the wrong context?
The text was updated successfully, but these errors were encountered: