summaryrefslogtreecommitdiff
path: root/static/v10/man7/readnews.7
blob: 502a28046feeee2a3756dbb1a5407a3de9b1c96a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
.TH READNEWS 7 alice,research
.CT 1 comm_users
.SH NAME
checknews, readnews \- read netnews articles
.SH SYNOPSIS
.B readnews
[
.B -a
.I date
]
[
.B -n 
.I newsgroup ...
]
[
.B -t
.I title ...
]
[
.B -lprxhfuM
]
[
.B -c
[
.I command
]
]
.PP
.B readnews -s
.PP
.B checknews
[
.B ynqve
] [
.I readnews-options
]
.SH DESCRIPTION
.I Readnews
prints unread articles that have arrived
via the informal, worldwide `netnews' network.
Without arguments it prints unread articles from
newsgroups to which you subscribe.
The options are:
.TF -adate
.TP 
.B -M
An interface to
.IR Mail (A).
A 
.IR mail (1)-like
interface.
.TP
.BI -c " command
Articles are written to a temporary `mailbox' and the
.I command
(e.g.
.LR "mail -f %" ) is
invoked, with the mailbox in place of
.LR % .
A missing
.I command
gets something like
.IR mail (1).
.TP
.B -p
Articles are sent to the standard output, no questions
asked.
.TP
.B -l
Titles only.
The file
.F .newsrc
will not be updated.
.TP
.B -r
Print articles in reverse order.
.TP
.B -f
No followup articles.
.TP
.B -h
Printed in a briefer format.
.TP
.B -u
Update file
.F .newsrc
every 5 minutes.
.TP
.BI -n " newsgroup ...
Select articles that belong to 
.I newsgroups.
.TP
.BI -t " titles
Select articles whose titles contain one of the
.I title
strings.
.TP
.BI -a " date
Select articles that were posted since
.IR date ;
a missing
.I date
means the beginning of time.
.TP
.B -x
Ignore
.FR .newsrc ;
select previously read as well as
unread articles.
.TP
.B -s
Print subscription list.
.PD
.PP
The file
.FR $HOME/.newsrc ,
or a file specified
by environment variable
.BR NEWSRC ,
tells what topics you are interested in and
what you have read.
If
.F .newsrc
contains a line starting with options (left
justified, continued by trailing 
.LR \e ),
or if the environment
variable
.B NEWSOPTS
is present, options are taken from there
as well as the command line.
In case of conflict, an option
on the command line take precedence, followed by 
.F .newsrc
and finally
.BR NEWSOPTS .
.PP
.I Readnews
invokes some other programs to perform services.
To reply to a news item it uses 
.IR mail (1)
or an alternate in environment parameter
.BR MAILER .
It paginates
with 
.IR p (1),
or an alternate in
.BR PAGER .
.BR PAGER
is a
command, perhaps containing
.L %
as in option
.BR  -c ,
or empty for no pagination.
.PP
The default and
.IR mail
interfaces support the following commands,
and prompt with common alternatives: a newline
accepts the first one.
For example,
.L [ynq]
proposes
yes, no, and quit; newline gets yes.
.TP
.B y
Yes.
Print current article and go on to next.
.PD0
.TP
.B n
No.
Skip the current article.
(In
.I mail
interface, it means
.BR y .)
.TP
.B q 
Quit; update
.FR .newsrc .
.TP
.B c
Cancel the article.
Only the author or the super-user
can do this.
.TP
.B r
Reply.
Reply to article's author via mail.
You are placed in 
.IR mail ,
or an alternate in
environment parameter
.BR EDITOR ,
with a header constructed from the article.
You may change or add headers.
Add your reply after the blank line.
Upon exit the message is mailed.
.TP
.B rd
Reply directly.
You are placed in
.B MAILER
.RI ( mail
by default).
Type the text of the reply and then control-D.
.TP
.BI f " title
Submit a followup article.
If you omit the
title, 
.I readnews
generates an appropriate one.
You will be placed in your
.B EDITOR
to compose the followup.
.TP
.B fd
Follow up directly.
This is like
.BR f ,
but does not construct headers.
.TP
.BI N " newsgroup
Go to the named 
.IR newsgroup ,
or the next newsgroup if none is named
.TP
.BI s " file
Save.
Append the article to
.I file.
The default is
.FR Articles .
If
.I file
is not a full pathname, it is taken
relative to
.BR HOME ,
overridden by environment parameter
.BR NEWSBOX .
If the first character of
.I file
is
.LR | ,
the rest is taken as the name of a program, into which the
article is piped.
.TP
.B # 
Report the name and size of the newsgroup.
.TP
.B e
Erase.
Forget that this article was read.
.TP
.B h
Print a more verbose header.
.TP
.B H
Print a very verbose, complete header.
.TP
.B U
Unsubscribe from this newsgroup and go on to the next.
.TP
.B d 
Read a digest.
Presents a digest as separate articles.
.TP
.BI D " number
Decrypt a Caesar cipher (usually used to
obscure off-color material in
.LR net.jokes ).
The rotation is normally determined line-by-line from character
frequencies.
If this fails, an explicit
.I number
(usually 13) may be given.
.TP
.B v
Print the current version of the news software.
.TP
.B !
Shell escape.
.TP
.I number
Go to article
.I number.
.TP
.if t .BI \(+- n
.if n +-n
Skip
.I n
articles, 1 by default.
The articles skipped
are recorded as `unread'.
.TP
.B -
Go back to last article.
This is a toggle, typing it
twice returns you to the original article.
.TP
.B x
Exit.
Like
.B q
except that
.F .newsrc
is not updated.
.TP
.BI X " system
Transmit article to the named system.
.PD
.PP
A
.L -
following
.BR c ,
.BR f ,
.BR fd ,
.BR r ,
.BR rd ,
.BR e ,
.BR h ,
.BR H ,
or
.BR s
refers to the previous article:
.LR "r -"
is the normal way to reply to a just-read article
when the next one is being offered.
.PP
.I Checknews
reports whether there is news present, with
options:
.TP
.B y
Report only if news is present (default).
.PD0
.TP
.B n 
Report only if news is absent.
.TP
.B q
Turn off reports; nonzero exit status indicates news.
.TP
.B v
Show the name of the first newsgroup containing unread news.
.TP
.B vv
Explain any claim of new news, useful if checknews and
readnews disagree.
.TP
.B e
Execute
.I readnews
if there is news.
.SH EXAMPLES
.TP
.L
readnews
Read all unread articles.
.TP
.L
readnews -n net.langs.c -a last thursday
Print every unread article about C since last Thursday.
.TP
.L
readnews -p >/dev/null &
Discard all unread news:
useful after returning from a long trip.
.TP
.L
readnews -c "ed %" -l
Invoke 
.IR ed (1)
on a file containing the titles of all
unread articles.
.SH FILES
.TF /usr/spool/news/newsgroup/number
.TP
.BI /usr/spool/news/ newsgroup / number
News articles
.TP
.F /usr/lib/news/active 
Active newsgroups and numbers of articles
.TP
.F /usr/lib/news/help
Help file for default interface
.TP
.F $HOME/.newsrc
.SH SEE ALSO
.IR postnews (7), 
.IR Mail (A)
.SH BUGS
.I Readnews
is baroque; many users prefer to browse among
the files in
.FR /usr/spool/news .