Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

inc(1mh)

msgchk(1mh)

Name

msgchk − check for messages

Syntax

msgchk [−nodate] [−notify all/mail/nomail] [users ...] [−help]

Description

The msgchk program checks all known mail drops for mail that is waiting for you. msgchk displays whether you have mail waiting to be read or not and shows the date that you last read your mail.  You can suppress this display by specifying −nodate with msgchk. The following example shows msgchk in use.

$ msgchk
You have new mail waiting; last read on Tue, 07 Jun 88 17:21:49 WET

Options

The −notify type switch indicates under what circumstances msgchk should produce a message. The type switch can take values of all, mail, nomail.  The default is −notify all which says that msgchk will report the status of the maildrop regardless of whether it has mail in it or not. The mail switch sets msgchk to report the status of the maildrop only if there is mail waiting. The −nomail switch sets msgchk to report the status of the maildrop only if there is no mail in it.

You can use msgchk to check on the status of other users’ maildrops by specifying their user names.  The following example illustrates this.

$ msgchk Rabb Jones
Rabb doesn’t have any new mail waiting;
last read on Tue 07 Jun 13:22:25 WET
Jones has new mail waiting; last read on Tue, 07 Jun 17:30:05 WET

Restrictions

msgchk does not understand the $MAILDROP envariable.

Files

$HOME/.mh_profile The user profile
/usr/new/lib/mh/mtstailor Tailor file
/usr/spool/mail/$USER Location of mail drop

Profile Components

None

See Also

inc(1mh)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026