[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] Question



Alle 16:38, sab 11 maggio 2002, hai scritto:
> Fulvio schrieb am Freitag, den 10. Mai 2002:

> Would you mind to show your filterfile and relevant parts of your config

Here is my latest  /etc/leafnode/filters:
=======================================================

^Subject:.+"\[FAQ\] RISPOSTE ALLE DOMANDE"
^Subject:.+"REGOLE BASE DI"
(?im)^subject:.+"internet explorer" ^newsgroups:.*it\.comp\.os\.win\.win9x
(?im)^subject:.+"outlook" ^newsgroups:.*it\.comp\.os\.win\.win9x
=======================================================

I haven't idea whether I can get it working, I just followed some docs and 
newsgroup suggestions.
My purpose should try to stop certain "Subject:" or  "From:" within a 
newsgroup. Later on, I may try to killfile some sender within the entire news 
download, but I'll take it step by step :-)

And here follow my config :

=======================================================
server = news.cis.dfn.de
username = xxxxxxxxxx
password =  [secret]
timeout = 30
expire = 20
server = nntp.jaring.my
# username = xenu
# password = secret
timeout = 30
maxfetch = 200
initialfetch = 100
delaybody = 0
maxcrosspost = 5
maxage = 3
timeout_long = 4
filterfile = /etc/leafnode/filters
=======================================================
NOTE all commented line have been trimmed out, for shortening.

> Does your upstream server know the "XOVER" command? (The log should
> reveal if leafnode falls back to XHDR otherwise.)

How do I find it into the log?

Here's the latest /var/log/news/news.notice:
=======================================================

May 17 00:10:12 desktop leafnode[1666]: connect from localhost.localdomain 
(127.0.0.1) to localhost.localdomain (127.0.0.1)
May 17 16:38:10 desktop fetchnews[1330]: 1.9.22.rel: verbosity level is 3
May 17 16:38:16 desktop fetchnews[1330]: connected to 130.133.1.4:119, reply: 
200
May 17 16:38:17 desktop fetchnews[1330]: Posting 1666-1021565975-1...
May 17 16:38:21 desktop fetchnews[1330]: Posting 1666-1021566443-2...
May 17 16:38:23 desktop fetchnews[1330]: news.cis.dfn.de: 2 articles posted
May 17 16:38:25 desktop fetchnews[1330]: Reading server info from 
/var/spool/news/leaf.node/news.cis.dfn.de
May 17 16:38:25 desktop fetchnews[1330]: it.comp.os.linux.iniziare: 
considering articles 190515-190654
May 17 16:45:14 desktop fetchnews[1330]: it.comp.os.linux.iniziare: 140 
articles fetched (to 7622), 0 killed
May 17 16:45:16 desktop fetchnews[1330]: it.comp.os.win.win9x: considering 
articles 79125-79144
May 17 16:46:10 desktop fetchnews[1330]: it.comp.os.win.win9x: 20 articles 
fetched (to 2336), 0 killed
May 17 16:46:10 desktop fetchnews[1330]: it.tlc.cellulari: considering 
articles 353715-353787
May 17 16:49:44 desktop fetchnews[1330]: it.tlc.cellulari: 73 articles 
fetched (to 3526), 0 killed
May 17 16:49:47 desktop fetchnews[1330]: connected to 192.228.188.3:119, 
reply: 200
May 17 16:49:54 desktop fetchnews[1330]: Reading server info from 
/var/spool/news/leaf.node/nntp.jaring.my
May 17 16:49:55 desktop fetchnews[1330]: alt.2600.cracks: considering 
articles 52575-52603
May 17 16:50:17 desktop fetchnews[1330]: alt.2600.cracks: 29 articles fetched 
(to 2128), 0 killed
May 17 16:50:18 desktop fetchnews[1330]: jaring.marketplace: considering 
articles 53678-53687
May 17 16:50:27 desktop fetchnews[1330]: jaring.marketplace: 9 articles 
fetched (to 454), 0 killed
May 17 16:50:28 desktop fetchnews[1330]: tmnet.fleamarket: considering 
articles 14494-14496
May 17 16:50:29 desktop fetchnews[1330]: tmnet.fleamarket: 2 articles fetched 
(to 57), 0 killed
May 17 16:50:30 desktop fetchnews[1330]: alt.2600.crackz: considering 
articles 73358-73423
May 17 16:51:22 desktop fetchnews[1330]: alt.2600.crackz: 60 articles fetched 
(to 2240), 0 killed
=======================================================


This I didn't figured out. Is there any log that can give me an answer.
>
> > I've tried grepping with the same pattern in my /var/spool/news with
>
> 1. leafnode uses perl-compatible regular expressions
> 2. multiline matching is not provided for
> 3. the body is not matched against when filtering, just the header

Well I was expecting to filter from the headers referring to certain criteria 
and then allow or deny the body download.

> Indeed, fetchnews only returns a value other than 0 if it fails to start
> up (like: configuration file missing), but once it has tried to contact
> a server, the return value is always zero. Sorry for that, I'll see if I
> can fix things for 1.9.23.

Could be an idea if fetchnews can return different values according to the 
meaning of the downloading process. At the moment I can only think about 
failed connections, timeouts and message lists out of order.
I was thinking about to write a BASH script to do a sort of killfile which 
will add line on the filter file in conjuntion with Klipper, but I couldn' t 
get even better for what actually it filter. Definitely might be a mistake of 
mine therefore forgive my disappointment about filtering, I'll try to get how 
to do efficient filtering.

Thank you for your attention.


-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list