Ok I added
List-ID
Which was oddly in the code already as a function, but not present on any outgoing emails at all, anywhere, on any site, for.. reasons I don’t understand. It was also in the code as lower case List-Id, whereas GitHub puts it in as upper case List-ID. At any rate, this header was not present on any Discourse emails, which I think is a big, big problem.
In the case that email replies are enabled, I also added
List-Post
which is simply a copy of the Reply-To header the way GitHub does it, so we’ll copy that header into that field if email replies are enabled.
I need @eviltrout’s help to build List-Archive since I can’t figure out a way to get to the current URL of the topic in that part of the code.