At 16:05 2001-11-10 -0800, Tim Luoma wrote:
I've got a script that does >> whitelist but I keep ending up with a
size=0 file
Let's see it. My guess is that you're not actually emitting anything
(emit null, and you'll output null, but the file will have been
created).
two parts
the recipe
:0
* ^Subject: addwhite \/.*
| addwhite.sh $MATCH
the external script:
#!/bin/sh
if [ -r $HOME/.source ]; then
. $HOME/.source
else
echo "Cannot find $HOME/.source"
fi
WHITE=$HOME/.procmail/whitelist.txt
for i in $*
do
echo "${i}" >> $WHITE
done
echo added $ALL | Mail -s "Added $ALL to whitelist" $MAILTO
exit 0
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail