On 22Mar2025 14:08, Sébastien Hinderer <sebastien.hinde...@ens-lyon.org> wrote:
Many thanks for your contribution. Is I tried to explainin my original
message my issue is not with _responding_ to messages coming from
Discourse, but rather to not being able to identify them as such in the
index because I can't make Mutt display an L for mailing list instead of
the + it currently and inaccurately displays for Discourse posts sent by
e-mail suggesting that these emails are addressed to me personnaly
whereas this is obviously not the case.

Ah, ok. I'm not using the "L" flag, instead I use the X-Label header and this index_format string, which contains the "%y" index_format marker:

    set index_format="%D %@from_part@ %S %?M?(%M) ?%?H?[%H] ?%s%* %?y?  y?  4c"

I use my mail filing rules to apply the header as messages are matched; nearly every messages get an X-Label header.

For example I drop several python lists including the Discourse email into a single "python" folder. Here are some lines from the index right now:

    20Mar2025 10:43 rmpadilla73 via N (16) [Py] [Python Help] Import Error when 
using pytest              discuss-users  10K
    11Mar2025 12:09 Cho via Discuss N (23) [Py] [Ideas] UnionType exception 
handling                      discuss-ideas 6.7K
    20Jan2025 09:27 Jussi Pakkanen  N (8) [Py] [Core Development] What do you 
want to see in t discuss-core-development 9.4K
    15Mar2025 21:45 Juergen via Dis N (5) [Py] [Python Help] Struggling with 
the __del__ methode and appe discuss-users 8.4K
    20Mar2025 11:37 William D. Jone N (6) [Py] [Packaging] Best Practices for 
Cross-Compiling Wheels  discuss-packaging  10K
    05Dec2024 03:17 Jacob Gustafson - (10) [Py] [Ideas] Introduce a __json__ 
magic method                 discuss-ideas  10K
    29Nov2024 06:27 Barney Gale via N (31) [Py] [Ideas] Make pathlib extensible 
                          discuss-ideas  10K
    20Mar2025 03:42 Tushar Sadhwani - (8) [Py] [Ideas] On the case of 
single-line match statements        discuss-ideas 7.7K
    21Mar2025 21:10 George Tsiamasi N (3) [Numpy-discussion] array.T.max() vs 
array.max(axis=0) perfor numpy-discussion 5.1K

That's a bit wide, but basicly my index shows date/time, author, flags, count, subject, x-label, size.

As an example, this is my rule for the Ideas category from the Python Discourse forum:

    python  python-ideas    list-id:/<python-ideas.python.org>

being the folder, the "X-Label:" value, and the match rule. Here I'm matching the "List-Id:" header against "<python-ideas.python.org>".

I have a rule for every mailing list.

The mailfiler is my own and the rule syntax deliberately concise and friendly. But you can also do this with procmail, which I used to use in the distant past.

Cheers,
Cameron Simpson <c...@cskk.id.au>

Reply via email to