#!/bin/bash
source ${HOME}/.bashrc

#==========================================================================================#
#==========================================================================================#
#     This script removes the file that blocks the e-mail delivery in run_sitter.sh.  Add  #
# this script to your crontab if you want to receive more than one e-mail a day.           #
#------------------------------------------------------------------------------------------#


#------------------------------------------------------------------------------------------#
#      Main settings:                                                                      #
# here     -- This directory (don't use `pwd` if you are putting this on crontab)          #
# emailday -- The file that blocks the e-mail delivery (default is ${here}/emailday.txt)   #
#------------------------------------------------------------------------------------------#
here="/x/xxxxxxxxxxxx/xxxxxx/xxxxxxx/xxxxxxxx"
emailday="${here}/emailday.txt"
#------------------------------------------------------------------------------------------#




#==========================================================================================#
#==========================================================================================#
#==========================================================================================#
#==========================================================================================#
#==========================================================================================#
#==========================================================================================#
#==========================================================================================#
#  No need to change anything beyond this point unless you are developing the code.        #
#==========================================================================================#
#==========================================================================================#
#==========================================================================================#
#==========================================================================================#
#==========================================================================================#
#==========================================================================================#
#==========================================================================================#


if [ ${here} == "/x/xxxxxxxxxxxx/xxxxxx/xxxxxxx/xxxxxxxx" ]
then
   echo " here = ${here} "
   echo " Set up variable here before running email_reset.sh"
   exit 92
fi


if [ -s ${emailday} ]
then
   /bin/rm -fv ${emailday}
fi
