New utility: `beep', which attempts to make a beeping noise by any
[sgt/utils] / nntpid / nntpid.but
CommitLineData
3096ed75 1\cfg{man-identity}{nntpid}{1}{2004-11-21}{Simon Tatham}{Simon Tatham}
2
3\title Man page for \cw{nntpid}
4
5\U NAME
6
7\cw{nntpid} - retrieve a single article from a news server
8
9\U SYNOPSIS
10
a5d9e758 11\c nntpid [ -v ] [ -d ] message-id
12\e bbbbbb bb bb iiiiiiiiii
13\c nntpid [ -v ] [ -d ] newsgroup-name article-number
14\e bbbbbb bb bb iiiiiiiiiiiiii iiiiiiiiiiiiii
3096ed75 15
16\U DESCRIPTION
17
18\cw{nntpid} makes a connection to a news server, retrieves a single
19article, and displays it.
20
21You can specify the article you want by either:
22
23\b giving its Message-ID. Message-IDs are globally unique, so you
24don't need to know which newsgroup the article was in. Also, they do
25not vary between news servers.
26
27\b giving a newsgroup name and an article number within that
28newsgroup. Article numbers are assigned internally by a particular
29news server, so they will be different on other servers carrying the
30same group.
31
a5d9e758 32By default, \cw{nntpid} will try to display the article using a
33pager (\cw{more}(1), unless you have specified an alternative in the
34environment variable \cw{PAGER}). This is partly for convenience,
35and partly a mild security measure: it gives you some protection
36against the news article potentially containing control sequences
37that cause unexpected behaviour in your terminal. If \cw{nntpid}
38detects that its standard output is not a terminal, however, it will
39bypass the pager and just write out the article directly.
40
3096ed75 41\U ARGUMENTS
42
43If you specify one argument, \cw{nntpid} assumes it is a Message-ID.
44The angle brackets that usually delimit Message-IDs are optional;
45\cw{nntpid} will strip them off if it sees them, and will not
46complain if it does not.
47
48If you specify two arguments, \cw{nntpid} will interpret the first
49as a newsgroup name, and the second as an article number.
50
51\U OPTIONS
52
53\dt \cw{-v}
54
55\dd Verbose mode. In this mode, \cw{nntpid} will log its entire
56conversation with the news server on standard error.
57
a5d9e758 58\dt \cw{-d}
59
60\dd Direct output. In this mode, \cw{nntpid} will write the article
61straight to standard output without bothering to try using a pager.
62
0f90ca06 63\U AUTHENTICATION
64
65Currently, the only form of authentication supported by \cw{nntpid}
66is \cw{AUTHINFO GENERIC}, using the environment variable
67\cw{NNTPAUTH}. It will only attempt this if it receives a 480
68response from the news server; if your news server never sends 480
69then \cw{nntpid} will never even look at \cw{NNTPAUTH}.
70
3096ed75 71\U LICENCE
72
73\cw{nntpid} is free software, distributed under the MIT licence.
74Type \cw{nntpid --licence} to see the full licence text.
75
76\versionid $Id$