nmh-workers
[Top] [All Lists]

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

2018-01-14 19:43:29
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 user1@example.com user2@example.com

user1@example.com 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

-- 
Nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>