Hello Martin Gregorie, Am 2010-07-09 19:22:37, hacktest Du folgendes herunter: > I agree entirely, but I got the impression that the OP didn't like the > cron job solution. Without the cron job its a bit difficult to tell the > user about the all the FPs and spam he hasn't seen, and you really need > to do that if he's to retrieve the one or two messages he actually > wants.
:0fw * <256000 | spamc :0 * ^X-Spam-Level: \*\*\*\*\* { SPAM_COUNT=`ls ${MAILDIR}/.Spam/new/* ${MAILDIR}/.Spam/cur/* |wc -l` SPAM_COUNT=`echo $((SPAM_COUNT+1)) ; :` :0 * test ${SPAM_COUNT} -gt 0 { LAST_MSG=`cat ${HOME}/.procmail_spam_last` TIME_NOW=`date +%s` TIME_NOW=`echo $((TIME_NOW+86400))` :0 * ? test -z "${LAST_MSG}" { TIME_LAST=`date +%s` DUMMY_EXEC=`echo ${TIME_LAST} >${HOME}/.procmail_spam_last` } :0 * ? test ${TIME_LAST} -gt ${TIME_NOW} { DUMMY_EXEC=`echo ${TIME_NOW} >${HOME}/.procmail_spam_last MSG_TO=`formail -czX To:` MSG_ID=`formail -czX Message-ID:` :0fw | (formail -I "From: Big Brother <@>" \ -I "${MSG_TO}" \ -I "Subject: Your spamfolder is filling up. [${SPAM_COUNT}]" \ -I "Date: `date --rfc-822`" \ -I "${MSG_ID}" ; \ echo "Hey user," ; \ echo "check your spamfolder which is" ; \ echo "filled up with ${SPAM_COUNT} crap messages." ) } } :0 * ^X-Spam-Level: .Spam/ } Thanks, Greetings and nice Day/Evening Michelle Konzack -- ##################### Debian GNU/Linux Consultant ###################### Development of Intranet and Embedded Systems with Debian GNU/Linux itsyst...@tdnet France EURL itsyst...@tdnet UG (limited liability) Owner Michelle Konzack Owner Michelle Konzack Apt. 917 (homeoffice) 50, rue de Soultz Kinzigstraße 17 67100 Strasbourg/France 77694 Kehl/Germany Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil Tel: +33-9-52705884 fix <http://www.itsystems.tamay-dogan.net/> <http://www.flexray4linux.org/> <http://www.debian.tamay-dogan.net/> <http://www.can4linux.org/> Jabber linux4miche...@jabber.ccc.de ICQ #328449886 Linux-User #280138 with the Linux Counter, http://counter.li.org/
signature.pgp
Description: Digital signature