.\" .\" %nmhwarning% .\" .TH MSGCHK %manext1% "%nmhdate%" MH.6.8 [%nmhversion%] .SH NAME msgchk \- check system mail drop for messages .SH SYNOPSIS .HP 5 .na .B msgchk .RB [ \-date " | " \-nodate ] .RB [ \-notify all/mail/nomail ] .RB [ \-nonotify all/mail/nomail ] .RI [ users \&... ] .RB [ \-Version ] .RB [ \-help ] .ad .SH DESCRIPTION The .B msgchk program checks your system mail drop for mail waiting for you, or the given users. If the requested users have mail, .B msgchk will indicate if it believes that they have seen the mail in question before. .PP The .B \-notify .I type switch indicates under what circumstances .B msgchk should produce a message. The default is .B \-notify .I all which says that .B msgchk should always report the status of the users maildrop. Other values for `type' include `mail' which says that .B msgchk should report the status of waiting mail; and, `nomail' which says that .B msgchk should report the status of empty maildrops. The .B \-nonotify .I type switch has the inverted sense, so .B \-nonotify .I all directs .B msgchk to never report the status of maildrops. This is useful if the user wishes to check .BR msgchk 's exit status. A non\-zero exit status indicates that mail was .B not waiting for at least one of the indicated users. .PP If .B msgchk produces output, then the .B \-date switch directs .B msgchk to print out the last date mail was read, if this can be determined. .PP If .I users are given, then .B msgchk will only check the default system mail drops. Otherwise, .B msgchk will evaluate the environment variable .I MAILDROP and profile component .I MailDrop (in this order) first and, if they are set and non-empty, checks that mail drop instead of the system default mail drop. .SH FILES .fc ^ ~ .nf .ta \w'%etcdir%/ExtraBigFileName 'u ^$HOME/.mmh/profile~^The user profile ^%mailspool%/$USER~^Location of mail drop .fi .SH "PROFILE COMPONENTS" .fc ^ ~ .nf .ta 2.4i .ta \w'ExtraBigName 'u ^MailDrop~^Supersedes the default mail drop location .fi .SH ENVIRONMENT .fc ^ ~ .nf .ta \w'ExtraBigName 'u ^MAILDROP~^Highest priority alternative mail drop location .fi .SH "SEE ALSO" inc(1) .SH DEFAULTS .nf .RB ` user "' defaults to the current user" .RB ` \-date ' .RB ` "\-notify\ all" ' .fi .SH CONTEXT None