On Mon, Sep 14, 2020 at 12:56:14PM +0200, Milan Straka wrote:
Lately I have been missing a possibility to run a hook whenever
a message is displayed. The `message-hook` is nearly what I need,
but unfortunately it is also executed in other scenarios (during
reply, save, copy, ...).

Would you consider adding a new hook, something in the lines of
`display-hook`, which would behave similarly to message-hook, but would
be executed only when displaying a mail?

I don't like adding features that seem to have a user size of 1, but I think there might be some more general usefulness with this feature.

Just today on IRC, skered asked about being able to "always reply to text/plain but always view text/html". This might be possible with macros covering all the display/move-display functions but would be much simpler with a display-hook that only covers the actual 'mutt-display-message()'.

What do others think about this?

--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA

Attachment: signature.asc
Description: PGP signature

Reply via email to