[leafnode-list] help with filtering
Matthias Andree
matthias.andree at gmx.de
Sun Aug 7 13:04:47 CEST 2005
Roi Dayan <roi at roi.no-ip.org> writes:
> how can i tell fetchnews to fetch only articles that thier subject match
> *name* from group X ?
This isn't possible with leafnode-1's filtering. group-specific filters
are supported in leafnode-2 alpha versions only.
Roi Dayan <roi at roi.no-ip.org> writes:
> can this work for me to get articles from group X only with subject Y ?
>
> ^Newsgroups:^[^alt\.binaries\.bla$] ^Subject:^[^.Tripping the Rift.$]
Unfortunately, this will not work, for various reasons. One is that you
can only have one ^ anchor in a regexp and it must be the absolutely
first character, all other (between : and [) will be treated as literals
- but there must be a space after the header name, not a caron
(^). Next, [anything_here] matches a single character. You may have some
success with PCRE's negative lookahead assertions (see the PCRE manual
pages), but they are somewhat difficult to use, and will not enable you
to filter a combination of Newsgroups/Subject, as leafnode-1 only sees
one header at a time.
--
Matthias Andree
More information about the leafnode-list
mailing list