I need some clarification of what 'reply-hook' does please
Chris Green
cl at isbd.net
Mon Oct 15 20:12:06 UTC 2018
On Mon, Oct 15, 2018 at 12:34:18PM -0700, Kevin J. McCarthy wrote:
> 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
>
Thank you, that's brilliant.
--
Chris Green
More information about the Mutt-users
mailing list