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 '[email protected]' 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@xxxx\.net$' 'set bar'  # Except for this address

-- 
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