mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
Parse name="quote" divs (#2104)
fix #1560 Replies in html-only format are not converted nicely wrt Quoting
This commit is contained in:
47
test-data/message/blockquote-tag.eml
Normal file
47
test-data/message/blockquote-tag.eml
Normal file
@@ -0,0 +1,47 @@
|
||||
Return-Path: <bob@example.org>
|
||||
User-Agent: K-9 Mail for Android
|
||||
In-Reply-To: <hasnihae@gmx.de>
|
||||
MIME-Version: 1.0
|
||||
Content-Type: multipart/alternative; boundary="----MLV7YOLJ7ED4UZKNGQYQ63O0RJGHU0"
|
||||
Content-Transfer-Encoding: 7bit
|
||||
Subject: Re: Test
|
||||
To: Alice <alice@example.org>
|
||||
From: Bob <bob@example.org>
|
||||
Message-ID: <haeisnr@example.org>
|
||||
|
||||
------MLV7YOLJ7ED4UZKNGQYQ63O0RJGHU0
|
||||
Content-Type: text/definitelynotplainthiswouldbetooeasy;
|
||||
charset=utf-8
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
|
||||
Hi Alice,
|
||||
|
||||
some text.
|
||||
|
||||
Am 21=2E Juni 2020 10:38:44 MESZ schrieb Alice <alice@example=2Eorg>:
|
||||
>Dear Bob,
|
||||
>
|
||||
>let's meet
|
||||
>
|
||||
>Alice
|
||||
|
||||
--=20
|
||||
Diese Nachricht wurde von meinem Android-Ger=C3=A4t mit K-9 Mail gesendet=
|
||||
=2E
|
||||
------MLV7YOLJ7ED4UZKNGQYQ63O0RJGHU0
|
||||
Content-Type: text/html;
|
||||
charset=utf-8
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
|
||||
<html><head></head><body>Hi Alice,<br><br>some text.<br><br>
|
||||
<div class=3D"gmail_quote">Am 21=2E Juni 2020 10:38:44 M=
|
||||
ESZ schrieb Alice <jonathanschmiederer@gmx=2Ede>:<bloc=
|
||||
kquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0=2E8ex; border-l=
|
||||
eft: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
|
||||
<pre class=3D"k9mail">Sehr geehrte/r Frau/Herr Brenner,<br><br>ich habe in=
|
||||
meinen JuFo-Unterlagen den angeh=C3=A4ngten Gutschein gefunden=2E<br>Ist e=
|
||||
s noch m=C3=B6glich, diesen einzul=C3=B6sen?<br><br>Mit freundlichen Gr=C3=
|
||||
=BC=C3=9Fen<br>Alice<br></pre></blockquote></div><br>-- <br>=
|
||||
Diese Nachricht wurde von meinem Android-Ger=C3=A4t mit K-9 Mail gesendet=
|
||||
=2E</body></html>
|
||||
------MLV7YOLJ7ED4UZKNGQYQ63O0RJGHU0--
|
||||
14
test-data/message/gmx-quote-body.eml
Normal file
14
test-data/message/gmx-quote-body.eml
Normal file
@@ -0,0 +1,14 @@
|
||||
<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Test</div>
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
|
||||
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Freitag, 04. Dezember 2020 um 18:46 Uhr<br/>
|
||||
<b>Von:</b> "Bob" <bob@gmx.de><br/>
|
||||
<b>An:</b> alice@gmx.de<br/>
|
||||
<b>Betreff:</b> test</div>
|
||||
|
||||
<div name="quoted-content">test</div>
|
||||
</div>
|
||||
</div>
|
||||
</div></div></body></html>
|
||||
38
test-data/message/gmx-quote.eml
Normal file
38
test-data/message/gmx-quote.eml
Normal file
@@ -0,0 +1,38 @@
|
||||
Return-Path: <alice@gmx.de>
|
||||
Delivered-To: bob@gmx.de
|
||||
MIME-Version: 1.0
|
||||
Message-ID: <trinity-fa44240c-65ef-4323-b531-d1d3e5e84313-1607428795002@3c-app-gmx-bs36>
|
||||
From: Alice <alice@gmx.de>
|
||||
To: bob@gmx.de
|
||||
Subject: Aw: Re: Re: Re: Message from bob@gmx.de
|
||||
Content-Type: text/html; charset=UTF-8
|
||||
Date: Tue, 8 Dec 2020 12:59:55 +0100
|
||||
Importance: normal
|
||||
Sensitivity: Normal
|
||||
In-Reply-To: <Mr.3p9V5c7XjPQ.bcqzV4ls4ID@testrun.org>
|
||||
References: <Mr.SRvG2sUyI8E.pASbMFvaNqy@testrun.org>
|
||||
<trinity-764a001f-6593-4c33-b681-942d2ffb9f9f-1607359668635@3c-app-gmx-bs26>
|
||||
<Mr.3p9V5c7XjPQ.bcqzV4ls4ID@testrun.org>
|
||||
|
||||
<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>YIPPEEEEEE</div>
|
||||
|
||||
<div> </div>
|
||||
|
||||
<div>Multi-line</div>
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
|
||||
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Dienstag, 08. Dezember 2020 um 12:59 Uhr<br/>
|
||||
<b>Von:</b> bob@gmx.de<br/>
|
||||
<b>An:</b> "Alice" <alice@gmx.de><br/>
|
||||
<b>Betreff:</b> Re: Re: Re: Message from bob@gmx.de</div>
|
||||
|
||||
<div name="quoted-content">Now?<br/>
|
||||
<br/>
|
||||
--<br/>
|
||||
Sent with my Delta Chat Messenger: <a href="https://delta.chat" target="_blank">https://delta.chat</a><br/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div></div></body></html>
|
||||
Reference in New Issue
Block a user