File: nncheck.1

package info (click to toggle)
nn 6.7.3-8
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 2,508 kB
  • ctags: 3,199
  • sloc: ansic: 32,035; sh: 1,491; awk: 138; makefile: 98
file content (102 lines) | stat: -rw-r--r-- 2,773 bytes parent folder | download | duplicates (9)
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
.TH NNCHECK 1 "Release 6.6"
.\" (c) Copyright 1988, 1990, Kim F. Storm.  All rights reserved.
.UC 4
.SH NAME
nncheck \- check for unread articles
.SH SYNOPSIS
.B nncheck
[ \-Q \-r \-t ]  [ \-f format ]
.SH DESCRIPTION
.I nncheck
will report if there are some articles on the system which you have not read.
.LP
Without options, \fInncheck\fP will simply print a message reporting
the number of unread articles with the following format:
.br
	There are 327 unread articles in 25 groups
.br
and when there are no unread articles, the following message will be
printed:
.br
	No News (is good news)
.LP
\fInncheck\fP will exit with a value of 0 if there are unread
articles, and 99 if there is no news (see the exception for the \-r
option.)
.LP
It is important to notice that even though unread articles have been
reported by \fInncheck\fP, the actual number of unread articles may be
much lower (or even zero) when \fInn\fP is invoked to read
the articles.  This is because the calculation of the number of unread
articles is only based on recorded article number intervals.  Invoking
\fInn\fP to read the articles may reveal that the articles have
previously been read in another news group, have been expired, or are
.I killed
using the
.I auto-kill
facility.
.LP
The following options are used to modify the amount and format of the
output from \fInncheck\fP:
.TP
.B \-Q
Quiet operation.  No output is produced, only the exit status indicate
whether there is unread news.
.TP
.B \-t
Print the name of each group with unread articles, and how many unread
articles there are (not counting split digests!).
.TP
.B \-r
Output a single integer value specifying the number of unread
articles, and exit with a 0 status (somebody told me this would be
useful).
.TP
\&\-\fBf\fP \fIformat\fP
Output the number of unread articles using the specified format.  The
format is a text that may contain the following %\-escapes:
.sp 0.5v
.DT
.ta 1i 2i
.\"ta 1 10 20
.nf
	\fB%\-code\fP	\fBresulting output\fP
.sp 0.5v
	%u	"\fIuuu\fP unread articles"
	%g	"\fIggg\fP groups"
	%i	"is" if 1 unread article, else "are"
	%U	"\fIuuu\fP"
	%G	"\fIggg\fP"
.fi
.DT
.sp 0.5v
where
.I uuu
is the number of unread articles, and
.I ggg
is the number of groups with unread articles.
.sp 0.5v
For example, the default output format is
.br
	"There %i %u in %g"
.br
which I prefer to the following less perfect format:
.br
	"There are %U unread article(s) in %G group(s)"
.LP
.SH FILES
.DT
.ta \w'$db/MASTER'u+6m
.\"ta 0 12
~/.newsrc	The record of read articles
.br
$db/MASTER	The database master index
.DT
.SH SEE ALSO
nn(1), nngoback(1), nngrab(1), nngrep(1), nnpost(1), nntidy(1)
.br
nnadmin(1M), nnusage(1M), nnmaster(1M)
.SH AUTHOR
Kim F. Storm, Texas Instruments A/S, Denmark
.br
E-mail: storm@texas.dk