Re: Discourse emails not recognized as coming from a mailing-list

Kurt Hackenberg <[email protected]> Sat, 10 May 2025 17:25:23 -0400
Newsgroups gmane.mail.mutt.user
Message-ID <[email protected]>
On Wed, Mar 19, 2025 at 01:50:35PM +0100, Sébastien Hinderer wrote:

>I follow a discourse forum but with emails enabled as I am not
>comfortable with its web interface.
>
>For the moment, the emails I receive for forum posts appear as addressed
>to me (with a + flag) rather than coming from a mailing list (with the L
>flag).
>
>At the beginning I thouhgt it was because the emails do not have the
>expected List-* headers but they actually do:
>
>List-Unsubscribe: <https://discuss.ocaml.org/email/unsubscribe/...>
>List-Unsubscribe-Post: List-Unsubscribe=One-Click
>List-ID: OCaml | Learning <learning.discuss.ocaml.org>
>List-Archive: 
>https://discuss.ocaml.org/t/collaboration-on-ocaml-project-1-claudius-outreachy/16325
>
>Still, it is my personal address which appears in the To: field.

Sébastien, I'm sorry, I gave a bad answer back then, because I 
misunderstood Mutt's mailing list code. I think I understand it now.

Mutt detects that a message came from a list by comparing addresses in 
the message's To: and CC: to addresses predefined by command 
"subscribe" or $auto_subscribe. That doesn't work if the list address 
does not appear in To: or CC:, which apparently is your situation. I 
think that's the problem.

I think Mutt should (also) look at List-ID:, which would work here, but 
currently it doesn't.