#!/bin/sh
# kludge for 2.5.1 builds running under 2.4
case `uname -r` in
5.4)
  LD_LIBRARY_PATH=/afs/athena.mit.edu/system/sun4x_55/os/usr/lib
  export LD_LIBRARY_PATH
;;
esac

# This bug existed from 2/23/98 to 2/25/98.
# This hack should go away in a week or two.

#if [ -r $HOME/mbox.pop ]; then
#    count=0
#    mailrc=$HOME/.mailrc
#    test -r $mailrc && count=`/usr/bin/grep -c POPBOX $mailrc`
#    if [ $count = 0 ]; then
#	echo "A bug in pmail left some of your mail in the file ~/mbox.pop."
#	echo "To read this mail, run: pmail -f ~/mbox.pop"
#    fi
#fi

test -r /mit/sipb || /bin/athena/attach -n -q sipb
exec `/usr/athena/bin/athdir /mit/sipb`/pmail.real "$@"
