
Does anybody ever wrote something like a quota mechanismn for postings? I want to limit the number of postings for certain people, i.e. list member bigmouth can only send 7 postings per month while other subscribers can post unlimited. Werner

Werner -- This, or something similar, was discussed a while back, if I recall correctly. The conclusion was that such a control would invite abuse such as forged emails and dummy accounts, and that if at all possible an administrative solution (e.g. stuffing a sock in big mouth) would be preferable to a technological band-aid. That said, I don't think such a thing would be too difficult to cook up, and perhaps someone has done it... -ph On Wed, 9 Oct 2002, Werner Reisberger wrote:

--On Wednesday, October 09, 2002 9:19 PM +0200 Werner Reisberger <werner@pure.ch> wrote:
This is what I did, I just use a cron job to reset the wholog at whatever interval I want. It limits a user to three posts (ends up 6 per day). I put it in rc.local.s10 in both the list and digest. The first line checks to make sure they aren't counted twice (once for the list and twice for the digest or vise-versa). ########################################################################### # Check if the poster has exceeded their quota ########################################################################### :0 * !Received: \(from lists@localhost\) { FROMWHO = `$FORMAIL -rtzxTo:` :0ci: | $ECHO $FROMWHO >> $WHOLOG NUMWHO = `fgrep -wic "$FROMWHO" $WHOLOG` :0 * -3^0 * $$NUMWHO^0 | ($FORMAIL -rkbt -I"From: List Manager <lists@...>" -i"X-Loop: list@..."; cat error-quota.txt) | $SENDMAIL -oi -t } Doug
participants (3)
-
Doug Mansfield
-
Peter Hartzler
-
Werner Reisberger