#/bin/sh
echo "$*" >> /tmp/log
grep -i -x "$1" /etc/mail/SpammerList  > /dev/null
if [ $? != "1" ]
then
  # evil spammer!
   echo error: You are suspected of being an evil spammer. If your mail is actually from the forces of truth and justice, please visit www. the domain you sent it to to get contact details.
else
  case "$1" in 
   arc+*) ;;
   arc@*) ;;
   vanessa+*) ;;
   vanessa@*) ;;
   genevieve+*) ;;
   genevieve@*) ;;
   miles+*) ;;
   miles@*) ;;
   +*) ;;
   inquiries@someotherdomain.com) echo this_is_for_a_friend@hotmail.com;;
   @andrewconway.org) echo arc+"$1";;
   @*) ;;
   a*greatcactus.org) echo arc+"$1";;
   A*greatcactus.org) echo arc+"$1";;
   V*greatcactus.org) echo vanessa+"$1";;
   v*greatcactus.org) echo vanessa+"$1";;
   g*greatcactus.org) echo genevieve+"$1";;
   G*greatcactus.org) echo genevieve+"$1";;
   m*greatcactus.org) echo miles+"$1";;
   M*greatcactus.org) echo miles+"$1";;
   *) ;;
  esac
fi
exit 0


