Ken wrote:
> So, solving that ... I think the only solution is to teach rcvdist
> about all of the switches that take arguments.
Or:
diff --git a/uip/rcvdist.c b/uip/rcvdist.c
index f065ad1d..ee4a50f0 100644
--- a/uip/rcvdist.c
+++ b/uip/rcvdist.c
@@ -86,0 +87,3 @@ main (int argc, char **argv)
+ if (argp && *argp && **argp != '-') {
+ vec[vecp++] = *argp++;
+ }
That solves Steven's immediate problem. I added a case to
test-rcvdist to verify and can commit at any time.
> Sigh. We really need to centralize all of that code, as we have
> to do that in SO many places.
Yes, that would prevent attempts to fool rcvdist with mistakes such as:
rcvdist -server [email protected] [email protected]
But post should fail with that "server" anyway, as I would expect
most (unintentional) similar attempts. I'm content to improve
things a small step at a time.
David
--
Nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers