
#!/bin/sh
# File	: reply_unknown-subject.sh
# By	: MaartenDeBoer.nl, 150522,180117
# Subject	: Script to send unknown-subject mail(reply)
PGM="`basename $0|cut -d\. -f1`"
VER="0.1"
LOG="${HOME}/log/${PGM}.log"
echo "`date` ${PGM} v${VER} started."|tee -a ${LOG}
FROM="${1}"
if [ "${FROM}" = "" ]; then
  echo "  No FROM address. Exiting ..."|tee -a ${LOG}
  exit 1
fi
echo "Mail with unknown subject."|mailx -s "unknown subject" ${FROM}
echo "  Mailed to ${FROM}"|tee -a ${LOG}
exit 0

