I administer a LISTSERV mailing list and our host has asked us to
reduce excess quoting of previously posted material. To that end,
I composed the following recipe to bounce a copy to both the poster
and me, with the Subject: asking if this was excessive quoting.
With the weights below, this extra copy will activate at 66%
quoted lines of all body lines.
=================================
:0 c
* ^Sender: <mailing list tag>
{
:0 B
* 10^1 ^> # quoted lines
* -15^1 ^[^>] # non-blank, non-quoted lines
* -15^1 ^$ # completely blank lines
{
SENDER=${SENDER:-`formail -rtzx To:`}
:0
* ^Sender: <mailin list tag>
| formail -i "Subject: Is this excessive quoting?" \
-i "From: buck(_at_)compact(_dot_)com" \
-i "Sender: buck(_at_)compact(_dot_)com" \
| $SENDMAIL -oi $SENDER buck(_at_)compact(_dot_)com
:0
/dev/null
}
:0
/dev/null
}
:0:
* ^Sender: <mailing list tag>
Mail/<directory name>/.
====================================
First, since I plan to share this recipe with other list
administrators I would appreciate any hints from the procmail
experts to make this recipe simpler and/or more robust.
Second, some people are confused by the message coming back with
only the Subject: line, and do not understand that this is only an
automated process and cannot correctly interpret all situations.
I would like to add some boilerplate text from a file after
the headers but before the rest of the original body to set the
context for this bounce back to the poster. Could someone suggest
a good way to insert some boiler text before the original text
of the message?
Best regards,
Lester
--
A. Lester Buck buck(_at_)compact(_dot_)com