Hello, using Erwin's script to filter attatchements, how would I
send ahcopy of the email to a NON filtered account before it bounces it???
I've copied the 'workings' of the script below... Thanks!!!
#!/bin/sh
#
printmsg () {
echo " "
echo "Sorry, the attachment you sent is in violation of our
company's policy."
echo "If you have any questions, please direct them to
[EMAIL PROTECTED]"
echo " "
echo "--- Attachment filetype you sent is $ATTYPE"
}
checktype () {
case $ATTYPE in
CMD | OCX | SHS | CLA | AU | DLL)
printmsg $ATTYPE
exit 100;;
*)
;;
esac
}
ATTACHTYPE=`grep "name=" - | awk 'BEGIN {FS="."}; {print toupper($NF)}' |
cut -c -3`
for ATTYPE in $ATTACHTYPE
do
checktype $ATTYPE
done
exit 0
Thanks!!!