On Thu, 15 May 1997, Elizabeth Lear wrote:
>
> Has anyone implemented a check within majordomo for the amount of
> quoted material vs new material? This would be really useful for list
> owners who don't like people sending 50 lines of a quoted previous
> message in order to add a "me too!". Thanks.
>
> ...eliz
I'm using the following implementation:
In your list aliases file have something like this...
listname: "|/usr/local/majordomo/checkquote|/usr/local/majordomo/wrapper resend
-l listname listname-out listname-digestify"
The checkquote script reads the incoming message and counts the amount of lines
starting with '>'.
#!/bin/sh
#
# Processor - special message processor for majordomo lists
#
cat > /tmp/msg.$$
quotecount=`grep -e '^>' /tmp/msg.$$ | wc -l`
if [ $quotecount -gt 10 ] ; then
cat <<EOM
X-Too-Much-Quotes:
EOM
fi
cat /tmp/msg.$$ # Sends the results of any transformation
rm /tmp/msg.$$ # Clean up our trash
exit 0 # Everything is ok!
Then add the X-Too-Much-Quotes: in your listname.config taboo_headers section.
You can modify this script easily to compare the amount of quoted text versus
new.
/Marko
Marko Hotti <mhotti@lists.oulu.fi>
Systems Administrator * Oulu University Computer Services Center /List Services
Finland Tel: +358-(0)40-552-8415 http://www.lists.oulu.fi/
Follow-Ups:
References:
|
|