Thread View: news.software.readers
4 messages
4 total messages
Started by Bob DeYoung
Sat, 31 May 1997 00:00
TRN: Killing posts whose subject lines are all UPPER CASE?
Author: Bob DeYoung
Date: Sat, 31 May 1997 00:00
Date: Sat, 31 May 1997 00:00
14 lines
866 bytes
866 bytes
Since so many spam post subject lines are all UPPER CASE, I was wondering if there is an entry that can be added to my KILL file so that these all upper case subject line posts can be automatically killed? Any advice would be appreciated! Bob -- am_dew@primenet.com
Re: TRN: Killing posts whose subject lines are all UPPER CASE?
Author: Mark Brader
Date: Mon, 02 Jun 1997 00:00
Date: Mon, 02 Jun 1997 00:00
27 lines
1646 bytes
1646 bytes
Bob DeYoung: > Since so many spam post subject lines are all UPPER CASE, I was > wondering if there is an entry that can be added to my KILL file ... Hmm. We had a thread here on this last fall, but dejanews doesn't seem to have any articles with the optimum solution, even though I thought I posted it then. Anyway, here it is. You simply need to search for subject lines that begin with "Subject: " and perhaps "Re" (we'll simplify this to "zero or more R's, then zero or more e's"), and then the remaining characters to the end of the line can include anything but lower case letters. In other words: /^Subject: R*e*[^a-z]*$/c:=:j As always, omit the := if you don't want to see the subject lines flash past your eyes as they die. (Posted and emailed.) -- Mark Brader "The design of the lowercase e in text faces msb@sq.com produces strong feelings (or should do so)." SoftQuad Inc., Toronto -- Walter Tracy My text in this article is in the public domain.
Re: TRN: Killing posts whose subject lines are all UPPER CASE?
Author: Ollivier Robert
Date: Wed, 04 Jun 1997 00:00
Date: Wed, 04 Jun 1997 00:00
14 lines
1069 bytes
1069 bytes
[courtesy cc of this posting sent to cited author via email]
In article <1997Jun2.205629.28166@sq.com>, Mark Brader <msb@sq.com> wrote:
> /^Subject: R*e*[^a-z]*$/c:=:j
/^R*e*[^a-z]*$/Hsubject:c:=:j
is probably faster (take only the overview to scan).
--
Ollivier ROBERT -=- Eurocontrol EEC/TS -=- Ollivier.Robert@eurocontrol.fr
Usenet Canal Historique FreeBSD: there are no limits !
Re: TRN: Killing posts whose subject lines are all UPPER CASE?
Author: Mark Brader
Date: Wed, 04 Jun 1997 00:00
Date: Wed, 04 Jun 1997 00:00
40 lines
2094 bytes
2094 bytes
I wrote:
> > /^Subject: R*e*[^a-z]*$/c:=:j
Someone else suggested:
> /^R*e*[^a-z]*$/Hsubject:c:=:j
> is probably faster (take only the overview to scan).
In trn 3.6, this is wrong because:
(1) The entire Subject line is tested, even though the documentation refers
to "the subject"; that's why ^Subject was used in the my version.
The suggested version will never match anything.
(2) It should not be faster to use Hsubject, since it merely requests the same
behavior as the default: scan only the subject line. Rather, it should
be (minimally) slower, since the option has to be parsed.
(3) If the c and Hsubject modifiers are used together, the correct syntax
is cHsubject. The H modifier and its operand must come at the end of
the modifiers, and no modifiers are allowed after a : operator.
The person who made the suggestion is using trn 4.0, which I don't have
here, so some of these three facts may be out of date for him. If so,
I would welcome hearing the specifics.
On the other hand, if the suggestion was posted without being tested...
well, please don't do that.
(Posted and emailed.)
--
Mark Brader, msb@sq.com, SoftQuad Inc., Toronto
"I'm a little worried about the bug-eater," she said. "We're embedded
in bugs, have you noticed?" -- Niven, "The Integral Trees"
My text in this article is in the public domain.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads