projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
eba4083
)
Document the -port switch to inc. Also, fix the -port switch to inc so
author
Ken Hornstein
<kenh@pobox.com>
Sat, 24 Nov 2012 00:58:34 +0000
(19:58 -0500)
committer
Ken Hornstein
<kenh@pobox.com>
Sat, 24 Nov 2012 00:58:34 +0000
(19:58 -0500)
it actually works.
man/inc.man
patch
|
blob
|
history
uip/inc.c
patch
|
blob
|
history
diff --git
a/man/inc.man
b/man/inc.man
index
4c471fc
..
5156db8
100644
(file)
--- a/
man/inc.man
+++ b/
man/inc.man
@@
-25,6
+25,8
@@
inc \- incorporate new mail
.IR columns ]
.RB [ \-host
.IR hostname ]
.IR columns ]
.RB [ \-host
.IR hostname ]
+.RB [ \-port
+.IR portname/number ]
.RB [ \-user
.IR username ]
.RB [ \-pack
.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
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
.PP
The default is for
.B inc
diff --git
a/uip/inc.c
b/uip/inc.c
index
72c79b7
..
12da6ba
100644
(file)
--- a/
uip/inc.c
+++ b/
uip/inc.c
@@
-335,7
+335,7
@@
main (int argc, char **argv)
continue;
case PORTSW:
continue;
case PORTSW:
- if (!(host = *argp++) || *port == '-')
+ if (!(port = *argp++) || *port == '-')
adios (NULL, "missing argument to %s", argp[-2]);
continue;
adios (NULL, "missing argument to %s", argp[-2]);
continue;