mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 11:15:14 +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
455 B
Plaintext
15 lines
455 B
Plaintext
Date: Tue, 16 May 2023 20:50:54 -0700
|
|
From: Some One via example <list@ml.example.com>
|
|
To: list@example.com
|
|
CC: Some One <some@one.com>
|
|
Message-ID: <5a0d382572c511c24daf1558c02f6a19@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: 2.2.2
|
|
X-BeenThere: list@ml.example.com
|
|
Precedence: list
|
|
|
|
library version 1.2.3 has been released! |