Today I start working on a python script to migrate a mailman2 mailing list (archives and config.pck) using the discourse API only. If anyone is interested, it is happening here and I’ll update this topic with progress.
Any comment on whatever people need or comments about how to better do that are very welcome, of course
This applies to all non-digest messages sent by the list. For settings that apply only to messages whose From: domain publishes a DMARC p=reject or p=quarantine policy, see the dmarc_moderation_action description in the Sender filters section.
If set to Munge From, it replaces the From: header address with the list’s posting address to mitigate issues stemming from the original From: domain’s DMARC or similar policies and puts the original From: address in a Reply-To: header.
If set to Wrap Message it wraps the original message as a MIME subpart of an outer message with From: and Reply-To: headers as above.
I don’t think Discourse provides a similar feature. I’ve not seen any site settings that would be a match. And I browsed all email related settings a few times in the past few days, in the context of an ongoing mailman2 migration.
Discourse operates essentially in the same way as Mailman 2 with from_is_list = Munge From – with those settings every Mailman list email is “From: firstname.lastname@example.org” (rather than “From: email@example.com”) – and similarly every email notification from Discourse is from the same forum email address (firstname.lastname@example.org or whatever).
But I wasn’t really asking about replicating the feature in Discourse. [Edit - as you have realised - I’ve just seen your second reply!]
I was meaning: when this Mailman setting is on, would your script import these messages as being from a single Discourse user (whose email address is email@example.com), or would it instead be able to identify the original sender?
Unfortunately I’ve also got reply_goes_to_list set to “This list” (which changes the “Reply-To:” header) so we’d have to think of another solution. Or maybe not… I’ll post a question to the other topic. Thanks for your help.