Re: Accessing arguments in hooks

Subject: Re: Accessing arguments in hooks

Date: Fri, 17 Dec 2021 09:19:48 -0400

To: Al Haji-Ali, notmuch@notmuchmail.org

Cc:

From: David Bremner


Al Haji-Ali <abdo.haji.ali@gmail.com> writes:

> Hello,
>
> Is there a way to access the parameters of `notmuch new` in hooks?  At
> the moment I control the verbosity of my hooks by setting an
> environment variable, but I think it would be nicer if I can get that
> flag from arguments to `notmuch new` (like `--quiet` and `--verbose`).
>
> Thanks,

That is currently not possible. I guess splatting all the arguments into
an environment variable would not be that hard, but I'm not sure how
many people would find useful.

d
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: