[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nmh-workers] pick --'.*'.
From: |
Ralph Corderoy |
Subject: |
[Nmh-workers] pick --'.*'. |
Date: |
Thu, 30 Nov 2017 14:54:41 +0000 |
Hi,
I was grumbling to myself, making a change from the list, about the
broken design of the regexp arguments to `pick -subject', etc., and
making notes about how they could be improved when I realised that its
`--othercomponent regexp', e.g. `pick --list-id nmh' actually takes a
regexp as the option name. I suspect this is unintentional.
The option is the first `%s', without its `--' prefix, and the following
parameter is the second in the resulting regexp.
"^%s[ \t]*:.*%s"
So for any of the List-* headers, regardless of whether anything is
after the colon, it's
pick --'list-[^:][^:]*' '$'
Unfortunately, the `:' is hard-coded; that's part of the above grumbling.
--
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Nmh-workers] pick --'.*'.,
Ralph Corderoy <=