<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Opera 49 creates invalid mhtml file]]></title><description><![CDATA[<p dir="auto">Opera 49 creates invalid mhtml file. Header may have the following structure:</p>
<p dir="auto">From: &lt;Saved by Blink&gt;<br />
X-Snapshot-Version: 1.0<br />
X-Snapshot-Title: =?utf-8?Q?=D0=AF=D0=BD=D0=B4=D0=B5=D0=BA=D1=81.=D0=9D=D0=BE=D0=B2=D0=BE=D1=81=D1=82=<br />
=D0=B8: =D0=93=D0=BB=D0=B0=D0=B2=D0=BD=D1=8B=D0=B5 =D0=BD=D0=BE=D0=B2=D0=BE=<br />
=D1=81=D1=82=D0=B8 =D1=81=D0=B5=D0=B3=D0=BE=D0=B4=D0=BD=D1=8F, =D1=81=D0=B0=<br />
=D0=BC=D1=8B=D0=B5 =D1=81=D0=B2=D0=B5=D0=B6=D0=B8=D0=B5 =D0=B8 =D0=BF=D0=BE=<br />
=D1=81=D0=BB=D0=B5=D0=B4=D0=BD=D0=B8=D0=B5 =D0=BD=D0=BE=D0=B2=D0=BE=D1=81=<br />
=D1=82=D0=B8 =D0=A0=D0=BE=D1=81=D1=81=D0=B8=D0=B8 =D0=BE=D0=BD=D0=BB=D0=B0=<br />
=D0=B9=D0=BD?=<br />
X-Snapshot-Content-Location: <a href="https://news.yandex.ru/" target="_blank" rel="noopener noreferrer nofollow ugc">https://news.yandex.ru/</a></p>
<p dir="auto">As you see content of X-Snapshot-Title is encoded with RFC 2047 but there are no leading spaces at the beginning of every new line of encoded string.</p>
<p dir="auto">RFC 2047 says: An 'encoded-word' may not be more than 75 characters long, including 'charset', 'encoding', 'encoded-text', and delimiters. If it is desirable to encode more text than will fit in an 'encoded-word' of 75 characters, multiple 'encoded-word's (separated by CRLF <strong>SPACE</strong>) may be used.</p>
<p dir="auto">So existing mime parsers cannot correctly parse such files. Is it possible to fix algorithm of mhtml file creation?</p>
]]></description><link>https://forums.opera.com/topic/23875/opera-49-creates-invalid-mhtml-file</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Jul 2026 23:23:19 GMT</lastBuildDate><atom:link href="https://forums.opera.com/topic/23875.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 11 Dec 2017 22:58:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Opera 49 creates invalid mhtml file on Thu, 14 Dec 2017 03:39:27 GMT]]></title><description><![CDATA[<p dir="auto">Confirmed. It's missing the spaces. Happens in Chrome too, so this needs to be filed at <a href="https://bugs.chromium.org/p/chromium/issues/list" target="_blank" rel="noopener noreferrer nofollow ugc">https://bugs.chromium.org/p/chromium/issues/list</a>.</p>
<p dir="auto">And, just for comparison, here's what a few mail clients do with the title on <a href="http://news.yandex.ru" target="_blank" rel="noopener noreferrer nofollow ugc">news.yandex.ru</a>:</p>
<pre><code>Opera Mail:

Subject: =?utf-8?B?U3ViamVjdDog0K/QvdC00LXQutGBLtCd0L7QstC+0YHRgtC4OiDQk9C70LA=?=
 =?utf-8?B?0LLQvdGL0LUg0L3QvtCy0L7RgdGC0Lgg0YHQtdCz0L7QtNC90Y8sINGB0LA=?=
 =?utf-8?B?0LzRi9C1INGB0LLQtdC20LjQtSDQuCDQv9C+0YHQu9C10LTQvdC40LUg0L0=?=
 =?utf-8?B?0L7QstC+0YHRgtC4INCg0L7RgdGB0LjQuCDQvtC90LvQsNC50L0=?=

Thunderbird:

Subject: =?UTF-8?B?0K/QvdC00LXQutGBLtCd0L7QstC+0YHRgtC4OiDQk9C70LDQstC90Ys=?=
 =?UTF-8?B?0LUg0L3QvtCy0L7RgdGC0Lgg0YHQtdCz0L7QtNC90Y8sINGB0LDQvNGL0LUg0YE=?=
 =?UTF-8?B?0LLQtdC20LjQtSDQuCDQv9C+0YHQu9C10LTQvdC40LUg0L3QvtCy0L7RgdGC0Lgg?=
 =?UTF-8?B?0KDQvtGB0YHQuNC4INC+0L3Qu9Cw0LnQvQ==?=

mail.google.com:

Subject: =?UTF-8?B?0K/QvdC00LXQutGBLtCd0L7QstC+0YHRgtC4OiDQk9C70LDQstC90YvQtSDQvdC+0LLQvg==?=
    =?UTF-8?B?0YHRgtC4INGB0LXQs9C+0LTQvdGPLCDRgdCw0LzRi9C1INGB0LLQtdC20LjQtSDQuCDQv9C+0YHQu9C1?=
    =?UTF-8?B?0LTQvdC40LUg0L3QvtCy0L7RgdGC0Lgg0KDQvtGB0YHQuNC4INC+0L3Qu9Cw0LnQvQ==?=
</code></pre>
<p dir="auto">They're not using quoted-printable, but no matter. They're using spaces (or tabs in the <a href="http://mail.google.com" target="_blank" rel="noopener noreferrer nofollow ugc">mail.google.com</a>) for line continuation.</p>
]]></description><link>https://forums.opera.com/post/134383</link><guid isPermaLink="true">https://forums.opera.com/post/134383</guid><dc:creator><![CDATA[burnout426]]></dc:creator><pubDate>Thu, 14 Dec 2017 03:39:27 GMT</pubDate></item><item><title><![CDATA[Reply to Opera 49 creates invalid mhtml file on Wed, 13 Dec 2017 20:53:12 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://docs.google.com/document/d/1FvmYUC0S0BkdkR7wZsg0hLdKc_qjGnGahBwwa0CdnHE/edit#heading=h.s65c3k7eanp" target="_blank" rel="noopener noreferrer nofollow ugc">MHTML Generation and Loading. As implemented in Chrome.</a><br />
Authors: <a href="mailto:jianli@chromium.org" target="_blank" rel="noopener noreferrer nofollow ugc">jianli@chromium.org</a><br />
Last Updated: Nov 21, 2017</p>
<p dir="auto">Qouted<br />
Note: the long title line can be split into multiple lines using soft line break “CRLF+SPACE/TAB” per RFC 2047. The soft line break “=CRLF” used to break long line in message body as defined in RFC 2045 should NOT be used.<br />
Qouted</p>
]]></description><link>https://forums.opera.com/post/134370</link><guid isPermaLink="true">https://forums.opera.com/post/134370</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Wed, 13 Dec 2017 20:53:12 GMT</pubDate></item></channel></rss>