* Accessing arguments in hooks
@ 2021-12-17 11:32 Al Haji-Ali
2021-12-17 13:19 ` David Bremner
0 siblings, 1 reply; 2+ messages in thread
From: Al Haji-Ali @ 2021-12-17 11:32 UTC (permalink / raw)
To: notmuch
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,
-- Al
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Accessing arguments in hooks
2021-12-17 11:32 Accessing arguments in hooks Al Haji-Ali
@ 2021-12-17 13:19 ` David Bremner
0 siblings, 0 replies; 2+ messages in thread
From: David Bremner @ 2021-12-17 13:19 UTC (permalink / raw)
To: Al Haji-Ali, notmuch
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-17 13:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-17 11:32 Accessing arguments in hooks Al Haji-Ali
2021-12-17 13:19 ` David Bremner
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).