1b9843b6c0ba16e6573f79f4cc1a68827492e8f8
[mmh] / man / msgchk.man
1 .\"
2 .\" %nmhwarning%
3 .\"
4 .TH MSGCHK %manext1% "%nmhdate%" MH.6.8 [%nmhversion%]
5 .SH NAME
6 msgchk \- check for messages
7 .SH SYNOPSIS
8 .HP 5
9 .na
10 .B msgchk
11 .RB [ \-date " | " \-nodate ]
12 .RB [ \-notify
13 all/mail/nomail ]
14 .RB [ \-nonotify
15 all/mail/nomail ]
16 .RI [ users
17 \&... ]
18 .RB [ \-version ]
19 .RB [ \-help ]
20 .ad
21 .SH DESCRIPTION
22 The
23 .B msgchk
24 program checks all known mail drops for mail waiting
25 for you.  For those drops which have mail for you,
26 .B msgchk
27 will
28 indicate if it believes that you have seen the mail in question before.
29 .PP
30 The
31 .B \-notify
32 .I type
33 switch indicates under what circumstances
34 .B msgchk
35 should produce a message.  The default is
36 .B \-notify
37 .I all
38 which says that
39 .B msgchk
40 should always report the status of the
41 users maildrop.  Other values for `type' include `mail' which says that
42 .B msgchk
43 should report the status of waiting mail; and, `nomail'
44 which says that
45 .B msgchk
46 should report the status of empty maildrops.
47 The
48 .B \-nonotify
49 .I type
50 switch has the inverted sense, so
51 .B \-nonotify
52 .I all
53 directs
54 .B msgchk
55 to never report the status of
56 maildrops.  This is useful if the user wishes to check
57 .BR msgchk 's
58 exit status.  A non\-zero exit status indicates that mail was
59 .B not
60 waiting for at least one of the indicated users.
61 .PP
62 If
63 .B msgchk
64 produces output, then the
65 .B \-date
66 switch directs
67 .B msgchk
68 to print out the last date mail was read, if this can
69 be determined.
70
71 .SH FILES
72 .fc ^ ~
73 .nf
74 .ta \w'%etcdir%/ExtraBigFileName  'u
75 ^$HOME/.mmh/profile~^The user profile
76 ^%etcdir%/mts.conf~^nmh mts configuration file
77 ^%mailspool%/$USER~^Location of mail drop
78 .fi
79
80 .SH "PROFILE COMPONENTS"
81 .fc ^ ~
82 .nf
83 .ta 2.4i
84 .ta \w'ExtraBigProfileName  'u
85 None
86 .fi
87
88 .SH "SEE ALSO"
89 inc(1)
90
91 .SH DEFAULTS
92 .nf
93 .RB ` user "' defaults to the current user"
94 .RB ` \-date '
95 .RB ` "\-notify\ all" '
96 .fi
97
98 .SH CONTEXT
99 None