Skip to content

[ENH] Heuristic extraction of forwarded mails #764

@JensHeinrich

Description

@JensHeinrich

As there are often mails being forwarded to security departments, i.e.

The mail followed by the forwarded mail.

Greetings
Jens
________________________________
From: Name <mail@gmail.com>
Sent: Friday, 20 February 2026 11:43
To: Other Name
Subject: Are you in the office?

or


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hello,</p>
<p><br>
</p>

<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Name &lt;mail@gmail.com&gt;<br>
<b>Sent:</b> Friday, 20 February 2026 11:43<br>
<b>To:</b> Other Name <br>
<b>Subject:</b> Are you in the office?</font>
<div>&nbsp;</div>
</div>
<div>
<div dir="ltr">
<div dir="ltr"><br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>

so extracting the partial inline mails as dependent mail objects seems to be a useful feature

[I would be willing to try to implement this, if it is wanted]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions