Skip to content

Ignore calendar emails when getting the style of the conversation #2

@lienharc

Description

@lienharc

Calender mails are irrelevant for the purpose of getting "the style" of a former conversation and should be left out for that reason.

For reference, this is what a calendar Mail source looks like

X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
Return-Path: sendermail
X-Virus-Scanned: ...
Received: ...
Received: ...
Date: Tue, 4 Feb 2025 14:26:00 +0100 (CET)
From: name <mail>
To: Name <mail>
Message-ID: <...>
Subject: Accept: ...
MIME-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_250101678_101616129.1738675560243"
X-Mailer: ...
X-Authenticated-User: ...
Thread-Index: em0cdeS2tjBtYdk4mMAAWhQxUyfn/A==
Thread-Topic: ...

------=_Part_250101678_101616129.1738675560243
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
...


------=_Part_250101678_101616129.1738675560243
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<html>
<body>
...
</body>
</html>

------=_Part_250101678_101616129.1738675560243
Content-Type: text/calendar; charset=utf-8; method=REPLY; name=meeting.ics
Content-Transfer-Encoding: 7bit

BEGIN:VCALENDAR
...
BEGIN:VEVENT
...
END:VEVENT
END:VCALENDAR
------=_Part_250101678_101616129.1738675560243--

We can filter out all mails which contain a text/calendar block, however, this might create some false-positives when you actually answer to an invite, a risk I'm willing to accept. The whole "respond in the same style" feature is not relying on every mail there is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    new featureNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions