http://wiki.tmda.net/TmdaBouncedDeletePendingHowto
I'm trying to make this solution run on my server. However when a bounce or a regular e-mail is sent to my bounce address ([EMAIL PROTECTED]) all e-mails in the pending queue is deleted. This because the bounce_address.py never returns anything, leaving the variable ADDRESS always empty.
deletepending_from_bouncemsg.sh: -------------------------------------------------------------- #!/bin/bash
ADDRESS=`cat /dev/stdin | ~/bounce_address.py`
MESSAGEID=`tmda-pending -b -T | grep -i "$ADDRESS" | cut -f 1`
if [ "$MESSAGEID" != "" ] ; then tmda-pending -b -d $MESSAGEID else echo Message from $ADDRESS not found pending fi --------------------------------------------------------------
In fact the variable MESSAGEID will have an empty 'grep -i ""' inside, returning all files in the pending queue and ending up deleting all pending files.
My phyton skills is non-existing, so �'m having difficulties understanding what bounce_address.py is suppose to do/deliver.
BTW, I'm running an virtual solution with qmail/vpopmail.
--
--------------------------------------------
bordewich.NET network consultant
Einar Bordewich phone: +47 911 52 777
e-Mail: einar(at)bordewich.net
UTM/WGS84: 32 614249E 6657199N
--------------------------------------------
_____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users
