Great Circle Associates Majordomo-Workers
(January 1998)
 

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

Subject: Re: Minimum Length?
From: Jason L Tibbitts III <tibbs @ hpc . uh . edu>
Date: 14 Jan 1998 18:41:23 -0600
To: majordomo-workers @ greatcircle . com
In-reply-to: Kynn Bartlett's message of Wed, 14 Jan 1998 10:10:58 -0800 (PST)
References: <199801141810.KAA10373@ayla.idyllmtn.com>

>>>>> "KB" == Kynn Bartlett <kynn@idyllmtn.com> writes:

KB> And of course, you'll have clueless gits -- like Ed -- whose email
KB> software stupidly takes a nice short, normal reply and turns it into
KB> some MIME-encoded monstrosity with HTML spew

Well, I'm in he middle of implementing the attachment_rules stuff for 2.0
(now that MIME-tools has the functionality I need) so the HTML spew can be
vanquished once and for all.

As for minimum length, well, there are several factors that make it
difficult.  Foremost among these is the "what is quoted text" problem.  I
could easily count the (non-blank) lines in a message and include it as an
access_rules variable, but I suspect it wouldn't do much good.  I could try
to recognize quoted text and feed the unquoted lines and percentage quoted
in as variables.  I wanted to try to compute the percentage of quoted text
anyway, so all I need is a good method.  Anyone have a comprehensive regexp
for "quoted text" to share?

Anyway, to use these you could do something like this:

access_rules << END
post
consult [or deny, your choice]
$quoted_percentage > 50  ||
$total_lines       > 200 ||
$unquoted_lines    < 2   ||
[check other variables too
END

once I finish implementing numeric comparisons.  I could also just add some
config variables like "max_quoted_percentage" for those who don't want to
deal with the access control stuff.

 - J<


Follow-Ups:
References:
Indexed By Date Previous: Re: Minimum Length?
From: "Tabor J. Wells" <twells@shore.net>
Next: Re: Minimum Length?
From: Gene Rackow <rackow@mcs.anl.gov>
Indexed By Thread Previous: Re: Minimum Length?
From: Kynn Bartlett <kynn@idyllmtn.com>
Next: Re: Minimum Length?
From: Gene Rackow <rackow@mcs.anl.gov>

Google
 
Search Internet Search www.greatcircle.com