#!/bin/csh -f
#
# $Id: fake-sendmail,v 1.2 1994/12/12 16:16:27 ejb Exp $
# $Source: /home/ejb/scripts/RCS/fake-sendmail,v $
# $Author: ejb $
#
# This script is designed to be called from emacs sendmail on suns running 
# Solaris 1.  It works around a sendmail bug in which the NIS aliases map
# is not checked before error messages are issued about unknown users.
#

set j = 1
foreach i ($argv:q)
   if ("$i" == "-oem") then
      set argv[$j] = "-oeq"
   endif
   @ j ++
end

exec /usr/lib/sendmail $argv:q
