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: Ken Hornstein
Subject: Re: [Nmh-workers] rcvdist with non-default port
Date: Sun, 14 Jan 2018 20:43:04 -0500

>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.

I ... do not think that is safe to put in?  It seems to me like that
would fail if your command line looks like:

rcvdist -server foo.bar -tls address@hidden address@hidden

address@hidden would be swallowed and passed to post.  If you just
had one address rcvdist would fail.  You could maybe make sure that you
always put a switch that takes an argument last, but that just seems
lousy as well.

--Ken



reply via email to

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