On Wed, Apr 16, 2025 at 08:07:47PM -0500, Ranjan Maitra via Mutt-users wrote:
Have you tried <list-reply>? Does it do what you want? (You don't
have to send the reply, just see what Mutt generates in To: and CC:,
and then abort the reply.)
Yes, it does work, thanks! However, I have to remember that this is a
list and use that then. I am bound to forget this (as I was about to do
right now) and therefore it would be better if I had one "r" set which
worked for everything (lists or not) and did what I think is the
appropriate thing for me.
So, can I set up a folder hook to do this? Or something else?
Hmm...looks like you could use either folder-hook or message-hook to
change the key binding of 'r' to <list-reply>. You'd have to explicitly
set the key binding to the default for folders or messages that don't match.
I would use message-hook, with a pattern ~h that contains a regular
expression to match any message that contains a List-Post: header that
contains a mailto: URL. (List-Post: can also contain other types of
URLs, such as http:, which probably wouldn't do you much good.)[1] That
way it would work for any message that came from a list, no matter
where you stored the message.
I haven't tried this, don't know whether it would work. There may be
some other way, too.
See the manual.
----------
[1] <https://www.rfc-editor.org/rfc/rfc2369.html>