msgchk(1mh)msgchk(1mh)Namemsgchk - check for messages
Syntaxmsgchk [ -help ] [ -nodate ] [ -notify all|mail|nomail ] [ users ... ]
The program checks all known mail drops for mail that is waiting for
you. It displays whether you have mail waiting to be read or not and
shows the date that you last read your mail.
You can check other user's maildrops by specifying their user names as
the users argument on the command line.
Options-help Prints a list of the valid options for this command.
-nodate Prints the date when you last read your mail. This is the
default behavior of The -nodate option can be used of you do
not want to print this date.
-nonotify Indicates under what circumstances should produce a message.
There are three legal values: all, mail, and nomail. The
default is -notify all, which reports the status of the mail‐
drop regardless of whether it has mail in it or not. The
-notify mail option reports the status of the maildrop only
if there is mail waiting. The -notify nomail option reports
the status of the maildrop only if there is no mail in it.
Specifies the source which are checked for mail. The only
value allowed is file, which is the user's maildrop. Addi‐
tional values are supported only for use with other mail sys‐
does not understand the $MAILDROP environmental variable. If mail is
fetched from a location other than will not be able to determine if new
mail has arrived. However, can still be used to fetch mail when it
For this version, the -source option only supports the value file.
Additional values are supported for use only with other mail systems.
This example shows a user Smith checking his own maildrop:
New file source mail waiting ; last read on Tue, 07 Jun 88 17
The next example shows a user checking the maildrops of two other local
users on the same system, Rabb and Jones:
% msgchk Rabb Jones
No file-source mail waiting ; last read on Tue, 07 Jun 13:22:
New file source mail waiting ; last read on Tue, 07 Jun 17:30
The user profile.
The system customization file.
The user's maildrop.