discourse/spec/fixtures/emails/mailman_4.eml
Régis Hanol db9d998de3
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

14 lines
439 B
Plaintext

Date: Tue, 16 May 2023 20:50:54 -0700
From: Some One via example <list@ml.example.com>
To: list@example.com
Message-ID: <8df45354b9ca21a868023b2dd3296a8d@foo.com>
Subject: library 1.2.3 released!
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Original-From: some@one.com
X-Mailman-Version: 1.2.3
Precedence: list
List-Post: <mailto:list@ml.example.com>
library version 1.2.3 has been released!