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

Kurt Hackenberg <[email protected]> Tue, 15 Apr 2025 18:04:04 -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.

Are those all the List-* headers in the message? If that's all of them, 
I think I see the problem. Mutt apparently uses List-Post:, which is 
not in your headers above.

According to the Mutt manual, the commands "list" and "subscribe", and 
the auto-subscribe thing, all use List-Post:. I think the expando "%L" 
in $index_format also uses the email address from List-Post:.

<http://mutt.org/doc/manual/#using-lists>
<http://mutt.org/doc/manual/#index-format>

List-Post: seems wrong to me. All of those Mutt functions are about 
identifying mailing lists, which probably should use List-ID:.

List-Post: is defined by RFC 2369, published in 1998; List-ID: is 
defined by RFC 2919, published in 2001. Maybe the Mutt implementation 
was written in between, when List-Post: existed but List-ID: did not.