|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T m
Length: 525 (0x20d) Types: TextFile Names: »messages«
└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit └─⟦4fd8323b9⟧ »EurOpenD3/mail/elm2.3.tar.Z« └─⟦698c4f91f⟧ └─⟦this⟧ »utils/messages«
: Use /bin/sh # messages: part of the Elm mail system # @(#)$Id: messages,v 4.1 90/04/28 22:44:45 syd Exp $ if [ "$2" != "" ]; then echo Usage: messages \{folder-name\} 1>&2 exit 1 fi if [ "$1" = "" ]; then fname=$MAIL optional="in your mailbox" else fname=$1 optional="in folder $1" fi if [ -f "$fname" ]; then mcount=`egrep -c "^From " $fname` else exit 0 fi if [ "$mcount" -eq 1 ]; then echo There is $mcount message $optional. else echo There are $mcount messages $optional. fi exit $mcount