Add-ons for Pegasus Mail
Error 415 - Unsupported media type

Sometimes someone answers my e-mail with an emoji, e.g. a Like, but the IErenderer produces an error instead: "Error 415 - unsupported media type":
6786a81592944
Is there a setting to prevent the error and show the emoji?


Sometimes someone answers my e-mail with an emoji, e.g. a Like, but the IErenderer produces an error instead: "Error 415 - unsupported media type": ![6786a81592944](serve/attachment&path=6786a81592944) Is there a setting to prevent the error and show the emoji?

You can prevent this from showing by updating your versions of Pegasus Mail and IERenderer to the latest available version, respectively: For Pegasus Mail goto https://www.pmail.com/v48x.htm, for IER see the link in my signature down below.


If this doesn't work please forward a sample message to <beta-reports [at] pmail.gen.nz>.


You can prevent this from showing by updating your versions of Pegasus Mail and IERenderer to the latest available version, respectively: For Pegasus Mail goto https://www.pmail.com/v48x.htm, for IER see the link in my signature down below. If this doesn&#039;t work please forward a sample message to &lt;beta-reports [at] pmail.gen.nz&gt;.
			Michael
--
IERenderer's Homepage
PGP Key ID (RSA 2048): 0xC45D831B
S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C
edited Jan 15 at 12:56 am

Sorry, Pmail is v4.8 and IERenderer 2.7.1.2. Additionally I updated IERenderer to 2.7.2.2 which was not advertised automatically.


I cannot reproduce the error myself (android, ios, outlook). Because of privacy I will not forward you the email that gave the problem. I copied a few lines from Raw view:


Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

[https://outlook-1.cdn.office.net/assets/reaction/like.png] Ev* *** *** **** reacted to your message:

On updating IERenderer to 2.7.2.2 a message window says: "... Image downloads as of Version 2.7: Due to Microsoft's end of support for IE and missing support of the TLS 1.3 security protocol by its WinInet connection library it became necessary to additionally use a different Windows library (WinHttp) which unfortunately only became available in a suitable version with Windows 10 20H2 (along with the Chromium based MS Edge browser version). In previous Windows versions you’ll may now occasionally see an error message offering a non-secured download in such cases. Unfortunately this issue can currently only be worked around by opening such a message in a suitable browser (i.e. not IE) by using the respective command in Pegasus Mail's reader's right click menu (clicking outside of an image placeholder). NB: It is not required to (re)install or use the Edge browser!" Is the problem related to this? I have W10 22H2.


Sorry, Pmail is v4.8 and IERenderer 2.7.1.2. Additionally I updated IERenderer to 2.7.2.2 which was not advertised automatically. I cannot reproduce the error myself (android, ios, outlook). Because of privacy I will not forward you the email that gave the problem. I copied a few lines from Raw view: ```` Content-Type: text/plain; charset=&quot;Windows-1252&quot; Content-Transfer-Encoding: quoted-printable [https://outlook-1.cdn.office.net/assets/reaction/like.png] Ev* *** *** **** reacted to your message: ```` On updating IERenderer to 2.7.2.2 a message window says: &quot;... Image downloads as of Version 2.7: Due to Microsoft&#039;s end of support for IE and missing support of the TLS 1.3 security protocol by its WinInet connection library it became necessary to additionally use a different Windows library (WinHttp) which unfortunately only became available in a suitable version with Windows 10 20H2 (along with the Chromium based MS Edge browser version). In previous Windows versions you&rsquo;ll may now occasionally see an error message offering a non-secured download in such cases. Unfortunately this issue can currently only be worked around by opening such a message in a suitable browser (i.e. not IE) by using the respective command in Pegasus Mail&#039;s reader&#039;s right click menu (clicking outside of an image placeholder). NB: It is not required to (re)install or use the Edge browser!&quot; Is the problem related to this? I have W10 22H2.

Sorry, Pmail is v4.8 and IERenderer 2.7.1.2. Additionally I updated IERenderer to 2.7.2.2 which was not advertised automatically.


You will need PM's public beta of v4.81 (check the link I sent) which provides an updated library for dealing with the latest image formats, v4.80 does not. It's more stable than v4.80 and fixes some issue of the latter even though it's formally "just a beta". it's already used by lots of other people without issues - unless you're running PM with new mail box and home mail box being located in separate locations. For figuring this out open Help > About Pegasus Mail > Info Button from its main menu which will show both these location paths.


I cannot reproduce the error myself (android, ios, outlook).


Did you ever try to open such an email in your browser (or only the image itself by using the right click context menu on the error frame displayed): Here's the result of clicking the link you provided:


6787e00a25033


This is from Firefox, and since it's a PNG there shouldn't be any issue with displaying it, but obviously even Firefox only displays garbage instead of a picture.


[] Ev ** * reacted to your reply which I quoted from:


Surprisingly in this reply it does get displayed which I can't explain especially since it doesn't do so in your reply above.


Is the problem related to this? I have W10 22H2.

No, it's not since you obviously are using a more recent version of Windows (22H2 > 20H2).


Because of privacy I will not forward you the email that gave the problem. I copied a few lines from Raw view:


Without investigating the original message within Pegasus Mail I cannot figure out what's going wrong, I'm sorry. How about asking the sender to just send a message only containing this emoticon?


[quote=&quot;pid:57322, uid:28408&quot;]Sorry, Pmail is v4.8 and IERenderer 2.7.1.2. Additionally I updated IERenderer to 2.7.2.2 which was not advertised automatically.[/quote] You will need PM&#039;s public beta of **v4.81** (check the link I sent) which provides an updated library for dealing with the latest image formats, **v4.80** does not. It&#039;s more stable than v4.80 and fixes some issue of the latter even though it&#039;s formally &quot;just a beta&quot;. it&#039;s already used by lots of other people without issues - unless you&#039;re running PM with _new mail box_ and _home mail box_ being located in separate locations. For figuring this out open _Help &gt; About Pegasus Mail &gt; Info Button_ from its main menu which will show both these location paths. [quote=&quot;pid:57322, uid:28408&quot;]I cannot reproduce the error myself (android, ios, outlook).[/quote] Did you ever try to open such an email in your browser (or only the image itself by using the right click context menu on the error frame displayed): Here&#039;s the result of clicking the link you provided: ![6787e00a25033](serve/attachment&amp;path=6787e00a25033) This is from Firefox, and since it&#039;s a PNG there shouldn&#039;t be any issue with displaying it, but obviously even Firefox only displays garbage instead of a picture. [quote=&quot;pid:57322, uid:28408&quot;][https://outlook-1.cdn.office.net/assets/reaction/like.png] Ev* *** *** **** reacted to your reply which I quoted from:[/quote] Surprisingly in this reply it *does* get displayed which I can&#039;t explain especially since it doesn&#039;t do so in your reply above. [quote=&quot;pid:57322, uid:28408&quot;]Is the problem related to this? I have W10 22H2.[/quote] No, it&#039;s not since you obviously are using a more recent version of Windows (22H2 &gt; 20H2). [quote=&quot;pid:57322, uid:28408&quot;]Because of privacy I will not forward you the email that gave the problem. I copied a few lines from Raw view:[/quote] Without investigating the original message within Pegasus Mail I cannot figure out what&#039;s going wrong, I&#039;m sorry. How about asking the sender to just send a message only containing this emoticon?
			Michael
--
IERenderer's Homepage
PGP Key ID (RSA 2048): 0xC45D831B
S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C
edited Jan 15 at 4:47 pm

Yes, I found Firefox displaying garbage, Edge showing the correct png. There is discussion about this Firefox problem. Firefox shows the file as text. This error is caused by the server that sends the png. The server that sends the .png should send it as mine type image/png. So I tested https://outlook-1.cdn.office.net/assets/reaction/like.png in HTTPie. The server responds with the mime type: text/plain in the header!
I conclude Edge and other programs are tolerant to this error and recognize the ‰PNG fingerprint of a png and Firefox and IERenderer aren't.


Yes, I found Firefox displaying garbage, Edge showing the correct png. There is discussion about this Firefox problem. Firefox shows the file as text. This error is caused by the server that sends the png. The server that sends the .png should send it as mine type **image/png**. So I tested ```` https://outlook-1.cdn.office.net/assets/reaction/like.png ```` in HTTPie. The server responds with the mime type: **text/plain** in the header! I conclude Edge and other programs are tolerant to this error and recognize the &permil;PNG fingerprint of a png and Firefox and IERenderer aren&#039;t.
edited Jan 15 at 7:12 pm

I conclude Edge and other programs are tolerant to this error and recognize the ‰PNG fingerprint of a png and Firefox and IERenderer aren't.


A typical Internet issue: WTF are rules for if they (mainly MS and Ggl) make there own rules just due to being such powerful companies ... smile


[quote=&quot;pid:57326, uid:28408&quot;]I conclude Edge and other programs are tolerant to this error and recognize the &permil;PNG fingerprint of a png and Firefox and IERenderer aren&#039;t.[/quote] A typical Internet issue: WTF are rules for if they (mainly MS and Ggl) make there own rules just due to being such powerful companies ... x(
			Michael
--
IERenderer's Homepage
PGP Key ID (RSA 2048): 0xC45D831B
S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C

I should add here that I've alread dealt with a similar situation where images are sent as application/octet-stream which is commonly used for binary (executable) attachments which are blocked by default for preventing attacks against the recipient. So it looks like I need to assume another exceptional case for being dealt with here.


I should add here that I&#039;ve alread dealt with a similar situation where images are sent as application/octet-stream which is commonly used for binary (executable) attachments which are blocked by default for preventing attacks against the recipient. So it looks like I need to assume another exceptional case for being dealt with here.
			Michael
--
IERenderer's Homepage
PGP Key ID (RSA 2048): 0xC45D831B
S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C

So it looks like I need to assume another exceptional case for being dealt with here.


I've now checked and tested my code against the sample link you provided: It would have been able to deal with the improper MIME type sent by the server - and it actually works in my compatibility code for Windows versions below 10 20H2, but not with the recent code for later versions using WinHTTP instead of WinInet for supporting current TLS algorithms. Unfortunately the latter provides download data where the PNG is starting with "#$1F'‹'#8#0#0#0#0#0#0#0#1'…'#3'zü‰PNG'#$D#$A#$1A#$A" instead of the correct sequence "‰PNG'#$D#$A#$1A#$A" (readable transcoding from the binary sources). Im sorry to say, but I won't work around this by parsing and correcting the code beyond its current state because this opens another door for carelessly breaking the rules and possibly causing safety issues, see https://en.wikipedia.org/wiki/Content_sniffing. Someone should get the providers to fix their sources (BTW: IE displays the same garbage as Firefox does if submitting the URL via address line, and IER is based on IE's renderer as you can tell by its name).


[quote=&quot;pid:57328, uid:2133&quot;]So it looks like I need to assume another exceptional case for being dealt with here.[/quote] I&#039;ve now checked and tested my code against the sample link you provided: It would have been able to deal with the improper MIME type sent by the server - and it actually works in my compatibility code for Windows versions below 10 20H2, but not with the recent code for later versions using WinHTTP instead of WinInet for supporting current TLS algorithms. Unfortunately the latter provides download data where the PNG is starting with &quot;#$1F&#039;&lsaquo;&#039;#8#0#0#0#0#0#0#0#1&#039;&hellip;&#039;#3&#039;z&uuml;&permil;PNG&#039;#$D#$A#$1A#$A&quot; instead of the correct sequence &quot;&permil;PNG&#039;#$D#$A#$1A#$A&quot; (readable transcoding from the binary sources). Im sorry to say, but I won&#039;t work around this by parsing and correcting the code beyond its current state because this opens another door for carelessly breaking the rules and possibly causing safety issues, see https://en.wikipedia.org/wiki/Content_sniffing. Someone should get the providers to fix their sources (BTW: IE displays the same garbage as Firefox does if submitting the URL via address line, and IER is based on IE&#039;s renderer as you can tell by its name).
			Michael
--
IERenderer's Homepage
PGP Key ID (RSA 2048): 0xC45D831B
S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C
edited Jan 17 at 12:55 am
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft