From: Ken Hornstein Date: Sat, 24 Nov 2012 00:58:34 +0000 (-0500) Subject: Document the -port switch to inc. Also, fix the -port switch to inc so X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;ds=sidebyside;h=301196a95d7490b1d9178aa27036c9ae5f865868;p=mmh Document the -port switch to inc. Also, fix the -port switch to inc so it actually works. --- diff --git a/man/inc.man b/man/inc.man index 4c471fc..5156db8 100644 --- a/man/inc.man +++ b/man/inc.man @@ -25,6 +25,8 @@ inc \- incorporate new mail .IR columns ] .RB [ \-host .IR hostname ] +.RB [ \-port +.IR portname/number ] .RB [ \-user .IR username ] .RB [ \-pack @@ -198,7 +200,10 @@ will query this POP service host for mail to incorporate. If is set and .B \-host is specified as well, the commandline switch will override -the environment variable. +the environment variable. The +.B \-port +switch specifies the port name or number used to connect to the POP +server. If unspecified the default is \*(lqpop3\*(rq. .PP The default is for .B inc diff --git a/uip/inc.c b/uip/inc.c index 72c79b7..12da6ba 100644 --- a/uip/inc.c +++ b/uip/inc.c @@ -335,7 +335,7 @@ main (int argc, char **argv) continue; case PORTSW: - if (!(host = *argp++) || *port == '-') + if (!(port = *argp++) || *port == '-') adios (NULL, "missing argument to %s", argp[-2]); continue;