Thread View: news.software.readers
10 messages
10 total messages
Started by andrew
Mon, 07 Apr 2008 08:47
[leafnode] Comments on page + filters
Author: andrew
Date: Mon, 07 Apr 2008 08:47
Date: Mon, 07 Apr 2008 08:47
14 lines
1656 bytes
1656 bytes
After a lot of work I have almost completed my installation page for
Slackware 12 and Leafnode -2. Can I have any comments on the page and
particularly on the filtering section:
http://www.andrews-corner.org/leafnode.html
My apologies for those who have looked at this page before, I hope the
additional / reworked information will justify a second look. I hope
to have the page 'polished' by the end of the week.
Andrew
--
http://www.andrews-corner.org
Re: [leafnode] Comments on page + filters
Author: Tom Newton
Date: Mon, 07 Apr 2008 09:08
Date: Mon, 07 Apr 2008 09:08
44 lines
2156 bytes
2156 bytes
On 2008-04-07, in <20080407184257.514@ilium.andrews-corner.org> andrew <andrew@ilium.invalid> wrote: > After a lot of work I have almost completed my installation page for > Slackware 12 and Leafnode -2. Can I have any comments on the page and > particularly on the filtering section: > > http://www.andrews-corner.org/leafnode.html > > My apologies for those who have looked at this page before, I hope the > additional / reworked information will justify a second look. I hope > to have the page 'polished' by the end of the week. > > http://www.andrews-corner.org Will check it out. Any idea why applyfilter claims to have deleted N articles, but doesn't delete them at all? applyfilter -v foo.foo.foo /etc/leafnode/filters: newsgroups = ^foo\.foo\.foo$ pattern = ^Subject.* action = kill news.info just says: Apr 7 01:55:57 treeoflife applyfilter[5438]: unable to open /etc/leafnode/local.groups: No such file or directory Apr 7 01:55:57 treeoflife applyfilter[5438]: Applying filters to foo.foo.foo Apr 7 01:56:05 treeoflife applyfilter[5438]: wrote groupinfo with 47457 lines. But when applyfilter exits it says it deleted N articles! Tom -- The Truth will set you free: http://www.sethcenter.com
Re: [leafnode] Comments on page + filters
Author: andrew
Date: Mon, 07 Apr 2008 09:22
Date: Mon, 07 Apr 2008 09:22
21 lines
1793 bytes
1793 bytes
On 2008-04-07, Tom Newton <tom@server.invalid> wrote:
> Any idea why applyfilter claims to have deleted N articles, but
> doesn't delete them at all?
Try running applyfilter as follows:
# applyfilter -D33 -e news.group
to see what is happening there.
> Apr 7 01:55:57 treeoflife applyfilter[5438]: unable to open
> /etc/leafnode/local.groups: No such file or directory
If you create this file that will be the end of this annoying warning.
The slackbuild script has this in the doinst.sh
Andrew
--
http://www.andrews-corner.org
Re: [leafnode] Comments on page + filters
Author: Tom Newton
Date: Mon, 07 Apr 2008 17:22
Date: Mon, 07 Apr 2008 17:22
62 lines
2615 bytes
2615 bytes
On 2008-04-07, in <20080407191332.771@ilium.andrews-corner.org> andrew <andrew@ilium.invalid> wrote: > On 2008-04-07, Tom Newton <tom@server.invalid> wrote: > >> Any idea why applyfilter claims to have deleted N articles, but >> doesn't delete them at all? > > Try running applyfilter as follows: > > # applyfilter -D33 -e news.group Did that. Ran script and then reviewed the log carefully. Started by printing the config file without comment Then: <newsgroups = ^foo\.foo\.foo$ <pattern = ^Subject.* <action = kill lockfile_exists(timeout=5), fqdn="treeoflife.3v8l2x.net" reading /var/spool/news/leaf.node/groupinfo and /etc/leafnode/local.groups <#A 47457 Then a very long list of newsgroup descriptions that happens evertime I run fetchnews. Then a long list with entries like this: regexp filter: detail: "Subject: foo" =~ /^Subject.*/ matched killfilter: trying filter for ^foo\.foo\.foo$ pcre filter: /^Subject.*/ matched Then: Cannot open .overview.deleted for reading: No such file or directory 418 articles deleted, 0 kept. wrote groupinfo with 47457 lines. But all the posts are still there! > > to see what is happening there. > >> Apr 7 01:55:57 treeoflife applyfilter[5438]: unable to open >> /etc/leafnode/local.groups: No such file or directory > > If you create this file that will be the end of this annoying warning. > The slackbuild script has this in the doinst.sh Did it. Should have used your script in the first place... > http://www.andrews-corner.org Tom -- The Truth will set you free: http://www.sethcenter.com
Re: [leafnode] Comments on page + filters
Author: Tom Newton
Date: Mon, 07 Apr 2008 17:26
Date: Mon, 07 Apr 2008 17:26
90 lines
3334 bytes
3334 bytes
I wonder if this has anything to do with the problem. I keep getting this from leafnode: Apr 7 09:53:49 treeoflife leafnode[9463]: Cannot update timestamp \ on /var/spool/news/interesting.groups/alt.test: Operation not \ permitted 4.0K drwxrwsr-x 2 news news 4.0K 2008-04-07 01:52 interesting.groups/ 0 -rw-rw-r-- 1 root news 0 2008-04-07 09:54 alt.test ---------------------------- On 2008-04-07, in <slrnfvkm2q.bi0.tom@treeoflife.3v8l2x.net> Tom Newton <tom@server.invalid> wrote: > On 2008-04-07, in <20080407191332.771@ilium.andrews-corner.org> > andrew <andrew@ilium.invalid> wrote: > >> On 2008-04-07, Tom Newton <tom@server.invalid> wrote: >> >>> Any idea why applyfilter claims to have deleted N articles, but >>> doesn't delete them at all? >> >> Try running applyfilter as follows: >> >> # applyfilter -D33 -e news.group > > Did that. Ran script and then reviewed the log carefully. > > Started by printing the config file without comment > > Then: > ><newsgroups = ^foo\.foo\.foo$ ><pattern = ^Subject.* ><action = kill > lockfile_exists(timeout=5), fqdn="treeoflife.3v8l2x.net" > reading /var/spool/news/leaf.node/groupinfo and /etc/leafnode/local.groups ><#A 47457 > > Then a very long list of newsgroup descriptions that happens > evertime I run fetchnews. > > Then a long list with entries like this: > > regexp filter: detail: "Subject: foo" =~ /^Subject.*/ matched > killfilter: trying filter for ^foo\.foo\.foo$ > pcre filter: /^Subject.*/ matched > > Then: > > Cannot open .overview.deleted for reading: No such file or directory > 418 articles deleted, 0 kept. > wrote groupinfo with 47457 lines. > > But all the posts are still there! > >> >> to see what is happening there. >> >>> Apr 7 01:55:57 treeoflife applyfilter[5438]: unable to open >>> /etc/leafnode/local.groups: No such file or directory >> >> If you create this file that will be the end of this annoying warning. >> The slackbuild script has this in the doinst.sh > > Did it. Should have used your script in the first place... > >> http://www.andrews-corner.org > > Tom > > > -- > The Truth will set you free: > http://www.sethcenter.com > -- The Truth will set you free: http://www.sethcenter.com
Re: [leafnode] Comments on page + filters
Author: andrew
Date: Mon, 07 Apr 2008 22:02
Date: Mon, 07 Apr 2008 22:02
25 lines
2013 bytes
2013 bytes
On 2008-04-07, Tom Newton <tom@server.invalid> wrote:
> I wonder if this has anything to do with the problem. I keep
> getting this from leafnode:
>
> Apr 7 09:53:49 treeoflife leafnode[9463]: Cannot update timestamp \
> on /var/spool/news/interesting.groups/alt.test: Operation not \
> permitted
>
> 4.0K drwxrwsr-x 2 news news 4.0K 2008-04-07 01:52 interesting.groups/
>
> 0 -rw-rw-r-- 1 root news 0 2008-04-07 09:54 alt.test
I have:
-rw-rw---- 1 news news 0 2008-02-19 13:48 news.software.readers
for example. Did you have the configure option:
--enable-runas-user=news ?
Andrew
--
http://www.andrews-corner.org
Re: [leafnode] Comments on page + filters
Author: andrew
Date: Mon, 07 Apr 2008 22:14
Date: Mon, 07 Apr 2008 22:14
16 lines
1821 bytes
1821 bytes
On 2008-04-07, Tom Newton <tom@server.invalid> wrote:
> Cannot open .overview.deleted for reading: No such file or directory
> 418 articles deleted, 0 kept.
> wrote groupinfo with 47457 lines.
>
> But all the posts are still there!
I am afraid that I cannot see what is happening there. On my own
system this situation does not exist and applyfilter works flawlessly.
Have you tried running texpire perhaps with the -r option?
Andrew
--
http://www.andrews-corner.org
Re: [leafnode] Comments on page + filters
Author: Tom Newton
Date: Mon, 07 Apr 2008 23:57
Date: Mon, 07 Apr 2008 23:57
40 lines
2000 bytes
2000 bytes
On 2008-04-07, in <20080408081216.712@ilium.andrews-corner.org> andrew <andrew@ilium.invalid> wrote: > On 2008-04-07, Tom Newton <tom@server.invalid> wrote: > >> Cannot open .overview.deleted for reading: No such file or >> directory 418 articles deleted, 0 kept. wrote groupinfo with >> 47457 lines. >> >> But all the posts are still there! > > I am afraid that I cannot see what is happening there. On my > own system this situation does not exist and applyfilter works > flawlessly. Have you tried running texpire perhaps with the -r > option? That did it! Way to go Andrew! > http://www.andrews-corner.org [from his other post here:] > Did you have the configure option: > --enable-runas-user=news ? Not unless it was a default option. I just did ./configure, make, make install. Thanks a lot, Tom -- The Truth will set you free: http://www.sethcenter.com
Re: [leafnode] Comments on page + filters
Author: Tom Newton
Date: Tue, 08 Apr 2008 20:54
Date: Tue, 08 Apr 2008 20:54
42 lines
2088 bytes
2088 bytes
On 2008-04-07, in <20080407184257.514@ilium.andrews-corner.org> andrew <andrew@ilium.invalid> wrote: > After a lot of work I have almost completed my installation page for > Slackware 12 and Leafnode -2. Can I have any comments on the page and > particularly on the filtering section: > > http://www.andrews-corner.org/leafnode.html > > My apologies for those who have looked at this page before, I hope the > additional / reworked information will justify a second look. I hope > to have the page 'polished' by the end of the week. > > http://www.andrews-corner.org I'd make it clear that (?i) is what is responsible for the case-insensitive part of the one filter. And add an example of scoring. I use this to kill all posts from alt.test that aren't from me (I actually use my IP, but this works too, and will be more useful to most people): newsgroups = ^alt\.test$ pattern = ^From: Tom Newton action = 100 pattern = ^From: .* action = -50 Do you know anyway to get a " or ' into a subpattern? Like: ^Subject: .*(?i)(foo|foo2|foo") Backslash doesn't work: \" Tom -- The Truth will set you free: http://www.sethcenter.com
Re: [leafnode] Comments on page + filters
Author: andrew
Date: Tue, 08 Apr 2008 22:01
Date: Tue, 08 Apr 2008 22:01
29 lines
2032 bytes
2032 bytes
On 2008-04-08, Tom Newton <tom@server.invalid> wrote:
> And add an example of scoring. I use this to kill all posts from alt.test
> that aren't from me (I actually use my IP, but this works too, and will
> be more useful to most people):
>
> newsgroups = ^alt\.test$
> pattern = ^From: Tom Newton
> action = 100
>
> pattern = ^From: .*
> action = -50
Good point, I am missing a demonstration of scoring.
> Do you know anyway to get a " or ' into a subpattern? Like:
>
> ^Subject: .*(?i)(foo|foo2|foo")
>
> Backslash doesn't work: \"
No. There is a cryptic notation in man filterfile that the " is
special on the right hand side but I don't understand the significance
of this. Perhaps the strangely silent slrn / leafnode mafia could help
here?
Andrew
--
http://www.andrews-corner.org
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