[7059] in SIPB bug reports

home help back first fref pref prev next nref lref last post

Re: whats

daemon@ATHENA.MIT.EDU (Salvatore Valente)
Sat Nov 28 19:53:25 1998

Date: Sat, 28 Nov 1998 19:53:20 -0500
To: yak@MIT.EDU
Cc: bug-sipb@MIT.EDU
In-Reply-To: "[7048] in SIPB bug reports"
From: Salvatore Valente <svalente@MIT.EDU>


Hi.  You wrote:

	The program "whats" in the sipb locker calls into mh, which generates
	 ~/Mail, ~/Mail/context, and ~/.mh_profile, even if the user does not
	use mh.  This seems kind of rude.

Fixed.  In case anyone cares, the patch is included at the end of this
message.

Have a nice day,
Sal.

*** whats.sh	1998/06/28 05:21:46	1.10
--- whats.sh	1998/11/29 00:47:51
***************
*** 101,107 ****
  read answer
  case "$answer" in
      [Yy]*)
! 	echo "${ac}	- ${def}" | /usr/athena/bin/mhmail sipb-whats@mit.edu -subject "New acron entry: ${ac}"
  	echo "Entry sent for database addition:"
  	echo "${ac}	- ${def}"
  	;;
--- 101,117 ----
  read answer
  case "$answer" in
      [Yy]*)
! 	if [ -x /usr/lib/sendmail ]; then
! 	    SENDMAIL=/usr/lib/sendmail
! 	elif [ -x /usr/sbin/sendmail ]; then
! 	    SENDMAIL=/usr/sbin/sendmail
! 	else
! 	    SENDMAIL=sendmail
! 	fi
! 	(echo "To: sipb-whats@mit.edu"
! 	 echo "Subject: New acron entry: $ac"
! 	 echo ""
! 	 echo "${ac}	- ${def}" ) | $SENDMAIL -t
  	echo "Entry sent for database addition:"
  	echo "${ac}	- ${def}"
  	;;

home help back first fref pref prev next nref lref last post