2 .\" @(#)$Id: msgchk.rf,v 1.7 1992/02/04 21:41:41 jromine Exp $
5 msgchk \- check for messages
8 \%[\-date] \%[\-nodate]
9 \%[\-notify\ all/mail/nomail] \%[\-nonotify\ all/mail/nomail]
11 \%[\-host\ host] \%[\-user\ user]
12 \%[\-apop] \%[\-noapop]
13 \%[\-rpop] \%[\-norpop]
18 The \fImsgchk\fR program checks all known mail drops for mail waiting
20 For those drops which have mail for you,
21 \fImsgchk\fR will indicate if it believes that you have seen the mail
24 The `\-notify\ type' switch indicates under what circumstances \fImsgchk\fR
25 should produce a message.
26 The default is `\-notify\ all' which says that \fImsgchk\fR should always
27 report the status of the users maildrop.
28 Other values for `type' include `mail' which says that \fImsgchk\fR should
29 report the status of waiting mail;
30 and, `nomail' which says that \fImsgchk\fR should report the status of empty
32 The `\-nonotify\ type' switch has the inverted sense,
33 so `\-nonotify\ all' directs \fImsgchk\fR to never report the status of
35 This is useful if the user wishes to check \fImsgchk\fR's exit status.
36 A non\-zero exit status indicates that mail was \fBnot\fR waiting for at
37 least one of the indicated users.
39 If \fImsgchk\fR produces output,
40 then the `\-date' switch directs \fImsgchk\fR to print out the last date mail
42 if this can be determined.
45 If the local host is configured as a POP client,
46 or if the `\-host\ host' switch is given,
47 \fImsgchk\fR will query the POP service host as to the status of mail waiting.
48 If the `\-user\ user' switch is not given,
49 then the current username is used.
51 \fImsgchk\fR will prompt for a password to use.
53 if the `\-apop' switch is given,
54 \fImsgchk\fR will generate authentication credentials to provide
55 for origin authentication and replay protection,
56 but which do not involve sending a password in the clear over the network.
58 if the `\-rpop' switch is given,
59 then \fImsgchk\fR will try to use a \*(lqtrusted\*(rq connection
60 (ala the BSD r-commands).
63 ^$HOME/\&.mh\(ruprofile~^The user profile
64 ^@(MHETCPATH)/mtstailor~^tailor file
65 ^@(MHDROPLOC)~^Location of mail drop
70 \fIPost Office Protocol - version 3\fR (aka RFC\-1081),
75 `user' defaults to the current user