mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:53:37 +08:00
db9d998de3
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.
15 lines
450 B
Plaintext
15 lines
450 B
Plaintext
Date: Tue, 16 May 2023 20:50:54 -0700
|
|
From: Some One via example <list@ml.example.com>
|
|
Reply-To: some@one.com
|
|
To: list@example.com
|
|
Message-ID: <23e86ebe4d9f211967e48d284449c856@foo.com>
|
|
Subject: library 1.2.3 released!
|
|
Mime-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 7bit
|
|
X-MailFrom: some@one.com
|
|
X-Mailman-Version: 1.2.3
|
|
X-BeenThere: list@ml.example.com
|
|
Precedence: list
|
|
|
|
library version 1.2.3 has been released! |