>>>>> "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:
|
|