On Thu, Apr 22, 2004 at 03:13:40PM -0400, Mark Horn wrote:
>If the bounce contains
>sufficient information, you could simply grep for the confirmation address.
>In my case, I'd grep for:
Attached is a (very kludgy) script that I threw together to get this to work.
In order to work, it assumes that the bounce will send back all of the
headers from the confirmation request. So it looks for the "Reply-To:"
address. Which means, in order for this to work, you have to set Reply-To:
the same way it's set in the default confirm_request.txt template.
I consider this to be kludgy becuase it has a high dependancy on other
programs to function. It depends on having all of these in your path:
cat, grep, sed, cut, echo, rm. A better solution would be written in
python and rely only on stuff that TMDA already relies upon.
To install it, I've put the following into my incoming filter:
to [EMAIL PROTECTED] deliver=|/path/to/delpenbounce
I hope to work on a python version as soon as I understand python regular
expressions.
Cheers,
- Mark
#!/bin/sh
FILE=$1
CONFIRMADDR=`cat $FILE | grep '^Reply-To:.*-confirm-' | cut -f2 -d' '`
if [ -z "$CONFIRMADDR" ]; then
exit
fi
PENDINGFILE=`echo $CONFIRMADDR | sed 's/-confirm-/:/' | cut -f2 -d: | \
cut -f1-2 -d.`.msg
rm ~/.tmda/pending/$PENDINGFILE
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users