#!/bin/bash
#
# Listing 2.
# Mail_from_yahoo.sh
# 

MAILFILE=$HOME/mail_from_yahoo.txt
FROM="mycell@cellphone"

[[ -e $MAIL  ]] || { echo $0:$MAIL  does not exist ; exit 1; }

echo Moving  mail from $MAIL from yahoo to $MAILFILE from $FROM
/usr/bin/grepmail -HB  -h $FROM   $MAIL > $MAILFILE

#After moving mail from $MAIL to $MAILFILE delete $MAIL
rm -v $MAIL




