nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] rcvdist with non-default port


From: David Levine
Subject: Re: [Nmh-workers] rcvdist with non-default port
Date: Sun, 14 Jan 2018 16:51:12 -0500

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 address@hidden address@hidden

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]