From 301196a95d7490b1d9178aa27036c9ae5f865868 Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Fri, 23 Nov 2012 19:58:34 -0500 Subject: [PATCH] Document the -port switch to inc. Also, fix the -port switch to inc so it actually works. --- man/inc.man | 7 ++++++- uip/inc.c | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) 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; -- 1.7.10.4