Discussion:
I need some clarification of what 'reply-hook' does please
Chris Green
2018-10-15 18:46:00 UTC
Permalink
When the documentation says "reply-hook is matched against the message
you are replying to," does that mean I can use it to hook all messages
sent to just one of my 'alternates' addresses?

I want to execute an action only when I am replying to an E-Mail which
has been sent to '***@isbd.net' and not one sent to any of my other
addresses. Will reply-hook do this for me?
--
Chris Green
Kevin J. McCarthy
2018-10-15 19:34:18 UTC
Permalink
Post by Chris Green
When the documentation says "reply-hook is matched against the message
you are replying to," does that mean I can use it to hook all messages
sent to just one of my 'alternates' addresses?
I want to execute an action only when I am replying to an E-Mail which
addresses. Will reply-hook do this for me?
Yes, pattern operators will be matched against the message you are
replying to.

They will be matched using the order specified in your muttrc, so you
should apply default settings first, and then more specific overrides
afterwards:

reply-hook ~A 'unset bar' # Default bar off
reply-hook '~t ^***@xxxx\.net$' 'set bar' # Except for this address
--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
Chris Green
2018-10-15 20:12:06 UTC
Permalink
Post by Kevin J. McCarthy
Post by Chris Green
When the documentation says "reply-hook is matched against the message
you are replying to," does that mean I can use it to hook all messages
sent to just one of my 'alternates' addresses?
I want to execute an action only when I am replying to an E-Mail which
addresses. Will reply-hook do this for me?
Yes, pattern operators will be matched against the message you are
replying to.
They will be matched using the order specified in your muttrc, so you
should apply default settings first, and then more specific overrides
reply-hook ~A 'unset bar' # Default bar off
Thank you, that's brilliant.
--
Chris Green
Continue reading on narkive:
Loading...