thread fix
This commit is contained in:
parent
a58ba11566
commit
d0fee5c8f7
6 changed files with 262 additions and 34 deletions
|
|
@ -78,6 +78,27 @@ On Tue, Oct 6, 2026 at 4:29 AM wrote:
|
|||
assert result["has_quoted_text"] is True
|
||||
|
||||
|
||||
def test_html_reply_preserves_nested_quoted_history():
|
||||
body = """
|
||||
<div>sender: E</div>
|
||||
<div class="gmail_quote">
|
||||
<div class="gmail_attr">
|
||||
On Tue, Oct 6, 2026 at 4:48 AM <suyash@gentic.email> wrote:
|
||||
</div>
|
||||
<blockquote>
|
||||
<div>responder: D</div>
|
||||
<blockquote><div>sender: C</div></blockquote>
|
||||
</blockquote>
|
||||
</div>
|
||||
"""
|
||||
result = extract_new_reply_content(body_text="", body_html=body)
|
||||
|
||||
assert result["new_reply_content"] == "sender: E"
|
||||
assert "On Tue, Oct 6, 2026 at 4:48 AM" in result["quoted_content"]
|
||||
assert "> responder: D" in result["quoted_content"]
|
||||
assert "> > sender: C" in result["quoted_content"]
|
||||
|
||||
|
||||
def test_outlook_original_message_split():
|
||||
body = """Thanks for the update.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue