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.
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 '>'.
# Processor - special message processor for majordomo lists
cat > /tmp/msg.$$
quotecount=`grep -e '^>' /tmp/msg.$$ | wc -l`
if [ $quotecount -gt 10 ] ; then
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
Marko Hotti <firstname.lastname@example.org>
Systems Administrator * Oulu University Computer Services Center /List Services
Finland Tel: +358-(0)40-552-8415 http://www.lists.oulu.fi/