I need some clarification of what 'reply-hook' does please
Kevin J. McCarthy
kevin at 8t8.us
Mon Oct 15 19:34:18 UTC 2018
On Mon, Oct 15, 2018 at 07:46:00PM +0100, Chris Green wrote:
> 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 'cl at isbd.net' and not one sent to any of my other
> 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 ^cl at xxxx\.net$' 'set bar' # Except for this address
--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.mutt.org/pipermail/mutt-users/attachments/20181015/02620cd1/attachment.asc>
More information about the Mutt-users
mailing list