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

Re: [leafnode-list] filterfile - multiline pcre

"Marcin Wojtczuk (FastViper)" wrote:
> I use leafnode-1.9.19 (PLD linux distribution) and pcre-3.9 (what other
> informations you need ?).
> I was trying to filter out posts to pl.comp.os.linux send by Outlook
> users. This is my way (from /etc/leafnode/filterfile:)
> (?m)^Newsgroups: pl.comp.os.linux$ ^X-Newsreader: Microsoft Outlook.*$
> also tried:
> (?m)Newsgroups: pl.comp.os.linux X-Newsreader: Microsoft.*
> This sadly doesn't seem to work. (Maybe pcre is not correct?).

Strange idea !
what is the benefit ?

Filtering with fetchnews applies only on the header lines below (and one
line at once).
"Path: ", "Message-ID: ", "From: ", "Newsgroups: "
"Subject: ", "Date: ", "References: ", "Lines: ", "Xref: "

In my opinion, only "Subject: ", "From: " and perhaps "Newsgroups: " lines
are interesting to filter during download time.

> Filterfile works well with simple regexps like:
> ^From: .*looser.*
> How can I make multiline pcre to work with leafnode?

Not with the current versions and after thinking not very usefull.
But this should work using externals tasks like applyfilter.

> Maybe there's some way to have separate filterfiles for each group ?

Yes and this is very interesting.
I use it also to download _only_ some articles.

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