Click here to Skip to main content
15,906,335 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon6-Oct-20 7:34
markrlondon6-Oct-20 7:34 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon6-Oct-20 7:50
markrlondon6-Oct-20 7:50 
QuestionRe: Oh come on Microsoft ... get your act together. Pin
Randor 6-Oct-20 9:56
professional Randor 6-Oct-20 9:56 
AnswerRe: Oh come on Microsoft ... get your act together. Pin
markrlondon6-Oct-20 10:47
markrlondon6-Oct-20 10:47 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
Randor 6-Oct-20 10:58
professional Randor 6-Oct-20 10:58 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon6-Oct-20 11:37
markrlondon6-Oct-20 11:37 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
Randor 6-Oct-20 11:54
professional Randor 6-Oct-20 11:54 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon6-Oct-20 13:08
markrlondon6-Oct-20 13:08 
Sh!4, I admit it. Whilst you really did make mistakes, I made one too. Read on.

Here: 04/10/20 21:38, The Lounge[^] : You wrote that "I would hazard a guess that the display problem @OriginalGriff is having is caused by Outlook generating a MHT file with the MIME type set to 'Content-Type: text/plain'" and I rejected this as a possibility because I misread what you meant. I'm really sorry.

In fact you identified pretty much the exact bug I later found, except that as far as I can see it is a bug in Edge, not Outlook. Outlook (or MimeOLE) seems to me to create correct MHT files for emails and it is (or should be) up to Edge to replicate IE's behaviour by rendering the text/html part and not the text/plain part in such a MHT.[1]

Here is why I got the wrong end of the stick: You referred to the Content-Type header within the MHT file as "the MIME type" and for some reason I read it as if you were referring to the MIME type in a HTTP download. I completely got the wrong end of the stick on that.

I am really sorry about that. I should have been more cautious.

However, you did then go on to say that "The reason it opens in IE11 is an operating system team build issue" and that is certainly an error. The reason the MHT file opens in IE is because IE is the default handler for .MHT and .MHTML files. This is, as I said, nothing to do with COM. I fully appreciate that the CLSID you refer to in that message points to the component Outlook uses to generate the MHT file but it is absolutely not the reason that IE is then used to open the file.

You also went on to say that "A COM object wrapper for launching Chromium-Edge does not exist yet" but this would not in and of itself change anything in terms of IE still being the default handler for .mht/.mhtml files in the registry.

So, I apologise very humbly for getting the wrong end of the stick but you did make mistakes too. MIME is of course not used to select the target program to open a file but, I now realise, you never said it did!

On the other hand, I was right to say that COM was and is irrelevant to the way that IE or Edge are opened to view the saved MHT file.

Also you also went on to say in a later message that "Outlook is not opening MHT file via the shell" but, as I pointed out, it's the other way: Outlook demonstrably does save MHT files (generated by the COM component) to the file system and then uses the shell to run a target program to open the saved MHT file.

Anyway, I apologise for my error to begin with. We both made errors of fact and of interpretation.



Footnote:-
1: Just to recap the Edge bug for reference: As I went on to mention, Thunderbird creates MHT files with text/plain and text/html parts within a multipart/alternative structure exactly as Outlook/MimeOLE do, so I think it is Edge that needs to change to match IE's behaviour in terms of rendering the text/html part in a multipart/alternative structure. Both IE and Edge successfully render web pages saved by browsers into MHT files since these all seem to use multipart/related;type="text/html" structures instead.


** edit ** Fixed the message link.

modified 6-Oct-20 21:46pm.

GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon6-Oct-20 10:22
markrlondon6-Oct-20 10:22 
PraiseRe: Oh come on Microsoft ... get your act together. Pin
Randor 6-Oct-20 10:53
professional Randor 6-Oct-20 10:53 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon6-Oct-20 11:57
markrlondon6-Oct-20 11:57 
PraiseRe: Oh come on Microsoft ... get your act together. Pin
Randor 6-Oct-20 12:10
professional Randor 6-Oct-20 12:10 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon6-Oct-20 16:12
markrlondon6-Oct-20 16:12 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
Randor 7-Oct-20 3:22
professional Randor 7-Oct-20 3:22 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon3-Oct-20 13:42
markrlondon3-Oct-20 13:42 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon3-Oct-20 13:54
markrlondon3-Oct-20 13:54 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
dandy723-Oct-20 3:54
dandy723-Oct-20 3:54 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon3-Oct-20 13:36
markrlondon3-Oct-20 13:36 
GeneralMy Car battery fizzed off Pin
Sandeep Mewara2-Oct-20 22:59
mveSandeep Mewara2-Oct-20 22:59 
GeneralRe: My Car battery fizzed off Pin
OriginalGriff2-Oct-20 23:40
mveOriginalGriff2-Oct-20 23:40 
GeneralRe: My Car battery fizzed off Pin
Sandeep Mewara3-Oct-20 0:27
mveSandeep Mewara3-Oct-20 0:27 
GeneralRe: My Car battery fizzed off Pin
Richard MacCutchan2-Oct-20 23:49
mveRichard MacCutchan2-Oct-20 23:49 
GeneralRe: My Car battery fizzed off Pin
Sandeep Mewara3-Oct-20 0:28
mveSandeep Mewara3-Oct-20 0:28 
GeneralRe: My Car battery fizzed off Pin
Richard MacCutchan3-Oct-20 1:50
mveRichard MacCutchan3-Oct-20 1:50 
GeneralRe: My Car battery fizzed off Pin
honey the codewitch3-Oct-20 2:11
mvahoney the codewitch3-Oct-20 2:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.