Hi,
At 16:02 9.3.2001 -0000, [EMAIL PROTECTED] wrote:
>
>
> Hello, using Erwin's script to filter attatchements, how would I
actually - as mentioned in the script - I AM NOT THE AUTHOR !
>send ahcopy of the email to a NON filtered account before it bounces it???
The E-Mail running thru the script only bounces, if the SENDER has a
comparable Filter running.
You have to change the logic a bit, using standard dot-qmail mechanisms.
Check the qmail man page "qmail-command". It tells you about the exit codes.
cheers.
eh.
>
>
>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!!!
>
>
+-----------------------------------------------------------------------+
| fff hh http://www.fehcom.de Dr. Erwin Hoffmann |
| ff hh |
| ff eee hhhh ccc ooo mm mm mm Wiener Weg 8 |
| fff ee ee hh hh cc oo oo mmm mm mm 50858 Koeln |
| ff ee eee hh hh cc oo oo mm mm mm |
| ff eee hh hh cc oo oo mm mm mm Tel 0221 484 4923 |
| ff eeee hh hh ccc ooo mm mm mm Fax 0221 484 4924 |
+-----------------------------------------------------------------------+