[ LUGOS ] [ Qmail ] You have new mail...
crt
crt na geocities.com
Tor Avg 5 19:29:01 CEST 1997
On Tue, 5 Aug 1997, David Klasinc wrote:
> Banzai!
>
> > Ali pa se bolje: newmail
>
> *blink* *blink* *scratch*
>
hm.. just do this...
echo "Hi, this is your silly mail checker."
if test -d ~/Maildir ;
then {
if test -d ~/Maildir/new ;
then {
export blah=`ls -la ~/Maildir/new/ | grep -cv opizda` ;
if [ $blah = 3 ] ;
then echo "You have NO new mail. Shit happens." ;
else {
if [ $blah = 4 ] ;
then echo "You have one lonely new mail message. *sniff*" ;
else echo "You have $[ $blah - 3 ] new mail messages!" ;
fi
} ;
fi } ;
else echo "There is no /new dir in your ~/Maildir! Can't check your mail." ;
fi
} ;
else echo "You don't have a ~/Maildir. Can't check your mail!" ;
fi
ce so se pri posiljanju tegale na listo zgubili kaksni rikverc
narekovajcki, you know where to put them...
ce pa user ne uporablja maildira, temvec mailbox, potem pac... hm...
test -s Mailbox (test if exists and is of nonzero length). opizda je
tam samo kot nekaj, kar ne bo kao nikoli v imenu fileta, in sluzi zato,
da se da na precej glup nacin, ki ga edinega znam, presteti vrstice
v outputu lsja.
----------------------------------------------
Crt Jakhel crtj na geocities.com
http://www.geocities.com/Athens/Acropolis/2586
Dodatne informacije o seznamu Starilist