Files
Régis HanolandGitHub 1c9d94845d FIX: improve mailman email parsing (#21627)
https://meta.discourse.org/t/improving-mailman-email-parsing/253041

When mirroring a public mailling list which uses mailman, there were some cases where the incoming email was not associated to the proper user.

As it happens, for various (undertermined) reasons, the email from the sender is often not in the `From` header but can be in any of the following headers: `Reply-To`, `CC`, `X-Original-From`, `X-MailFrom`.

It might be in other headers as well, but those were the ones we found the most reliable.
2023-05-19 10:33:48 +02:00

19 lines
656 B
Plaintext

Date: Tue, 16 May 2023 20:50:54 -0700
From: Some One <[email protected]>
Reply-To: Example users <[email protected]>
To: [email protected]
Message-ID: <[email protected]>
Subject: library 1.2.3 released!
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-MailFrom: [email protected]
X-Mailman-Version: 2.3.4
Precedence: list
List-Id: Example users <list.ml.example.com>
List-Owner: <mailto:[email protected]>
List-Post: <mailto:[email protected]>
List-Subscribe: <mailto:[email protected]>
List-Unsubscribe: <mailto:[email protected]>
library version 1.2.3 has been released!