In looking at some recent exchanges, I find myself wondering whether
there is any way to have Mj look for certain phrases in just the first
text line of a message, rather than searching further down (I assume
that I could easily hack the code to cover only the first line, but for
most admintrivia I would rather be able to look further down. Otherwise
I would just change 10 to 2 in
if ($body_line_count < 10).
An example of a word which I would like to trigger a bounce in only the
first line is "Dear", suggesting that the sender has sent a personal
reply to the list (I run several discussion lists where replies go to
the list, by popular demand). Furthermore, a lot of the recent
complaints about the problems with the S- word (you know. Xubzkrayb)
could be alleviated if they had the option of only looking for it at the
top of the message (my experience has been that the people who don't
know the correct address for list commands also don't know that they can
include multiple commands in a single message).
Whther this sort of creeping featurism is worth the hassle I don't know.
The obvious way is to duplicate the existing code with taboo_1stlines
and so on.
I would however suggest that the number of lines, which is now
hard-wired into the code as 10, be set as a configurable variable to
increase its visibility. Not everyone knows perl, and I think that
lines that are likely to be changed should be located near the top of
the script and clearly identified.
Bill Silvert, Habitat Ecology Section, Bedford Institute of Oceanography,
P. O. Box 1006, Dartmouth, Nova Scotia, CANADA B2Y 4A2, Tel. (902)426-1577