Thread View: news.software.readers
8 messages
8 total messages
Started by Grey Cloak
Thu, 11 Sep 1997 00:00
SLRN, killing HTML
Author: Grey Cloak
Date: Thu, 11 Sep 1997 00:00
Date: Thu, 11 Sep 1997 00:00
23 lines
1291 bytes
1291 bytes
I getting a headache. I trying to kill any subject line containing either html or htm in the subject. SLRN seem to ignore these html, htm, *html*, *html, .\html, .\htm I need to cut spam out, and kill file htm will cut it about 60 to 70% HELP ME PLEASE! I set the reply-to SO I don't miss your answer. -- ---------------------------------------------------------------------------- Grey Cloak http://www.geocities.com/Area51/7614 For the Wizard.faq______________________wizardfaq@greycloak.access.one.net Dreams what do they mean?_____http://w3.one.net/~grycloak/dreams/dream.htm ----------------------------------------------------------------------------
Re: SLRN, killing HTML
Author: Preben Guldberg
Date: Fri, 12 Sep 1997 00:00
Date: Fri, 12 Sep 1997 00:00
23 lines
1270 bytes
1270 bytes
Thus wrote Grey Cloak (grycloak@greycloak.access.one.net):
> I getting a headache. I trying to kill any subject line containing
> either html or htm in the subject.
> SLRN seem to ignore these html, htm, *html*, *html, .\html, .\htm
I believe that the following should work:
Subject: .*htm.*
[--- snip ---]
Peppe
--
\\|// Not one shred of evidence supports
(0_0) the notion that life is serious
~~~~~~~~~~~~~~~~~~~~~oOOo~\_/~oOOo~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Preben Guldberg c928400@student.dtu.dk
Re: SLRN, killing HTML
Author: Heikki Kantola
Date: Fri, 12 Sep 1997 00:00
Date: Fri, 12 Sep 1997 00:00
37 lines
2109 bytes
2109 bytes
Grey Cloak <grycloak@greycloak.access.one.net> informed news.software.readers with the following: >I getting a headache. I trying to kill any subject line containing >either html or htm in the subject. > >SLRN seem to ignore these html, htm, *html*, *html, .\html, .\htm First two sound quite fine to me, but the rest are more or less malformed regular expressions (atleast don't do what you wanted). >I need to cut spam out, and kill file htm will cut it about 60 to 70% The following should kill everything with string (case insentive) "htm" anywhere (therefor no need to add separate entry for "html") in subject in every newsgroup: [*] Score: -9999 Subject: htm >I set the reply-to SO I don't miss your answer. You should have set "Followup-To: poster" (no news followups, answers via e-mail) or "Mail-Copies-To: <your@e-mail.address>" (automatic mail answer in addition to followup if made with Slrn (> v0.9.4.1) or Gnus which are AFAIK only programs that understand that header) if you want answers via e-mail by default as Reply-to just affects the address where e-mail replies will be sent. -- Heikki "Hezu" Kantola, <Heikki.Kantola@IKI.FI> L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta tunnilta.
Re: SLRN, killing HTML
Author: Heikki Kantola
Date: Sat, 13 Sep 1997 00:00
Date: Sat, 13 Sep 1997 00:00
22 lines
1517 bytes
1517 bytes
Preben Guldberg <c928400@hald.gbar.dtu.dk> informed news.software.readers with the following: >Thus wrote Grey Cloak (grycloak@greycloak.access.one.net): >> I getting a headache. I trying to kill any subject line containing >> either html or htm in the subject. > >> SLRN seem to ignore these html, htm, *html*, *html, .\html, .\htm >I believe that the following should work: > >Subject: .*htm.* No need for those ".*"s, simple strings in Slrn score rules have exactly same meaning as your regexp above. -- Heikki "Hezu" Kantola, <Heikki.Kantola@IKI.FI> L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta tunnilta.
Re: SLRN, killing HTML
Author: John E. Davis
Date: Sat, 13 Sep 1997 00:00
Date: Sat, 13 Sep 1997 00:00
20 lines
1123 bytes
1123 bytes
On 11 Sep 1997 16:49:17 GMT, Grey Cloak <grycloak@greycloak.access.one.net>
>I getting a headache. I trying to kill any subject line containing
>either html or htm in the subject.
>
>SLRN seem to ignore these html, htm, *html*, *html, .\html, .\htm
Try this in your score file:
[*]
Score:: -9999
Subject: \<html?\>
Here, \< is a regular expression that matches the start of a word.
Similarly, \> matches the end of a word. `l?' matches 0 or 1
occurrence of `l'. See slrn/doc/score.txt for more information.
--John
Re: SLRN, killing HTML
Author: Sylvain Robitaille
Date: Sun, 14 Sep 1997 00:00
Date: Sun, 14 Sep 1997 00:00
31 lines
1615 bytes
1615 bytes
On 13 Sep 1997 09:47:43 GMT, John E. Davis <davis@space.mit.edu> wrote:
>
> Try this in your score file:
>
> [*]
> Score:: -9999
> Subject: \<html?\>
>
> Here, \< is a regular expression that matches the start of a word.
> Similarly, \> matches the end of a word. `l?' matches 0 or 1
> occurrence of `l'. See slrn/doc/score.txt for more information.
Only problem is that often the htm(l) portion is part of a URL, and
wouldn't that be viewed as all one word?
A alternative might be
Subject: \<http.*html?\>
to try and score on a web page URL.
--
----------------------------------------------------------------------
Sylvain Robitaille syl@alcor.concordia.ca
Assistant to the System Managers Concordia University
Computing Services Department Montreal, Quebec, Canada
----------------------------------------------------------------------
Re: SLRN, killing HTML
Author: Ralf Hildebrandt
Date: Wed, 17 Sep 1997 00:00
Date: Wed, 17 Sep 1997 00:00
35 lines
1724 bytes
1724 bytes
On 13 Sep 1997 09:47:43 GMT, John E. Davis <davis@space.mit.edu> wrote: >On 11 Sep 1997 16:49:17 GMT, Grey Cloak <grycloak@greycloak.access.one.net> >>I getting a headache. I trying to kill any subject line containing >>either html or htm in the subject. >> >>SLRN seem to ignore these html, htm, *html*, *html, .\html, .\htm > > Try this in your score file: > >[*] > Score:: -9999 > Subject: \<html?\> > >Here, \< is a regular expression that matches the start of a word. This is not correct; \< simply is a literal < Start of a word is ^ >Similarly, \> matches the end of a word. Also not correct; \> simply is a literal > End of word is $ >`l?' matches 0 or 1 >occurrence of `l'. One out of three ain't bad... > See slrn/doc/score.txt for more information. Precisely... -- Ralf Hildebrandt, R.Hildebrandt@tu-bs.de (PGP Key @ request ) http://stahlw00.stahl.bau.tu-bs.de/mitarbeiter/rhildebrandt Institute for Steel Structures @ Technical University of Braunschweig Beethovenstr. 51, 38106 Braunschweig, Germany
Re: SLRN, killing HTML
Author: Jan Hlavacek
Date: Mon, 22 Sep 1997 00:00
Date: Mon, 22 Sep 1997 00:00
30 lines
1854 bytes
1854 bytes
On 17 Sep 1997 12:41:07 GMT, Ralf Hildebrandt
<hildeb@stahlw00.stahl.bau.tu-bs.de> wrote:
> On 13 Sep 1997 09:47:43 GMT, John E. Davis <davis@space.mit.edu> wrote:
> >Here, \< is a regular expression that matches the start of a word.
> This is not correct; \< simply is a literal <
> Start of a word is ^
I would be rather surprised if the author of slrn doesn't know how his regexps
work :-).
In slang regular expressions, start of the word is \<. The ^ character
matches beginning of line if it occurs as the first character in the regexp.
Otherwise it is just literal ^.
> >Similarly, \> matches the end of a word.
> Also not correct; \> simply is a literal >
> End of word is $
End of word is \>. The $ is end of line if it is the last character in the
regexp, or literal $ otherwise.
lahvak
--
Jan Hlav\'{a}\v{c}ek <lahvak+n@math.ohio-state.edu> (BCC's will bounce)
home page: http://www.math.ohio-state.edu/~lahvak/
slrn page: http://www.math.ohio-state.edu/~lahvak/software/slrn.html
slrn documentation: http://www.math.ohio-state.edu/~lahvak/software/slrn/
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