mirror of
https://github.com/discourse/discourse.git
synced 2024-12-12 07:46:28 +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.
19 lines
656 B
Plaintext
19 lines
656 B
Plaintext
Date: Tue, 16 May 2023 20:50:54 -0700
|
|
From: Some One <some@one.com>
|
|
Reply-To: Example users <list@ml.example.com>
|
|
To: list@example.com
|
|
Message-ID: <4460a72d7764ad03b5cecd65fe4c2fbd@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.3.4
|
|
Precedence: list
|
|
List-Id: Example users <list.ml.example.com>
|
|
List-Owner: <mailto:list-owner@ml.example.com>
|
|
List-Post: <mailto:list@ml.example.com>
|
|
List-Subscribe: <mailto:list-join@ml.example.com>
|
|
List-Unsubscribe: <mailto:list-leave@ml.example.com>
|
|
|
|
library version 1.2.3 has been released! |