# ****************************************************************
#
# File Name: Check_Mail
# Function: Display the names of all the mail message files
# in the specified ~SMS directory(default inbox)
# one message file per line
#
# Arguments: $1 digit
#
#
# Invocation: Check_Mail [boxname]
#
# Author: Demetricus Mosley
# Date: 22 July, 1997
# ****************************************************************
set prompt='Check_Mail_%'
if ($1 == ) then
echo MAIL MESSAGES in inbox
ls -l ~/SMS/inbox/*.new | awk '{print $6, $7, $8, $9}' > nicety
sort -M nicety
echo END OF LISTING
rm nicety
exit
else if ($1 == sent) then
echo MAIL MESSAGES in $1
ls -l ~/SMS/sent/*.new | awk '{print $6, $7, $8, $9}' > nicety
sort -M nicety
echo END OF LISTING
rm nicety
exit
else
echo Choice not valid
exit
endif
exit