Great Circle Associates Majordomo-Users
(May 1997)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: quoted vs new material
From: Marko Hotti <mhotti @ lists . oulu . fi>
Date: Fri, 16 May 1997 08:57:19 +0300 (EET DST)
To: majordomo-users @ greatcircle . com
In-reply-to: <199705151717.AA18267@world.std.com>

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:
Indexed By Date Previous: Re: file/directory permissions
From: "Kendall P. Bullen" <kendall@lists.tax.org>
Next: Re: majordomo-www gateway
From: Remco van de Meent <Remco.van.de.Meent@oloon.student.utwente.nl>
Indexed By Thread Previous: quoted vs new material
From: Elizabeth Lear <eliz@world.std.com>
Next: Cyberpromo Spammers are Pounding my List's ASS
From: root <root@happy.net>

Google
 
Search Internet Search www.greatcircle.com