Article View: news.software.readers
Article #4491Re: trn 3.x features?
From: Bruce Lilly
Date: Sun, 13 Jun 1993 17:16
Date: Sun, 13 Jun 1993 17:16
38 lines
2042 bytes
2042 bytes
In article <C8JqAn.EG@borland.com>, posted to news.software.readers, davison@borland.com (Wayne Davison) wrote: > >> 4) KILL file pattern matching seems to be rather limited. > >It could use some improvement, yeah, but it is a bit better than you think. > >> Currently I have several lines like: >> /Newsgroups: .*rec\./h:j:= >> /Newsgroups: .*talk\./h:j:= >> /Newsgroups: .*\.test/h:j:= >> /Newsgroups: .*\.misc/h:j:= > >In trn 2.x or 3.0 you could write this as: > >/^Newsgroups: .*rec\.\|^Newsgroups: .*talk\.\|^Newsgroups: .*\.test/h:j:= > >(I removed the last one to make it look nicer for posting and anchored >your Newsgroups: headers to the start of the line.) > >The key is the \| separator that matches any of the listed strings. Now >if it was only allowed in a \(...\) sub-list, but alas. Hmmm... I tried this. With more than two \|-separated patterns I get a SIGSEGV (trn version 2.5). With /^Newsgroups: .*\.resumes\|^Newsgroups: .*\.contract/h:j:= I get a "badly compiled pattern" message, trn starts to try to junk every article in the newsgroup, and I get a SIGSEGV after about 5 articles are junked. OK, maybe the pattern matching is a bit better than I had thought, but .... >..wayne.. Thanks for the speedy response, Wayne. -- Bruce Lilly ...uupsi!monymsys!sonyd1!blilly!bruce
Technical Details
Message-ID:
<C8KLB3.A19@blilly.uucp>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!noc.near.net!uunet!psinntp!monymsys!sonyd1.broadcast.sony.com!blilly.uucp!bruceReferences:
<C8IIo7.737@blilly.uucp> <C8JqAn.EG@borland.com>Show Full Headers
Complete Article Headers
Message-ID: <C8KLB3.A19@blilly.uucp> Subject: Re: trn 3.x features? Date: Sun, 13 Jun 1993 17:16:09 +0000 From: bruce@blilly.uucp (Bruce Lilly) References: <C8IIo7.737@blilly.uucp> <C8JqAn.EG@borland.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!noc.near.net!uunet!psinntp!monymsys!sonyd1.broadcast.sony.com!blilly.uucp!bruce Newsgroups: news.software.readers Organization: Bruce Lilly Reply-To: lilb@sony.compuserve.com (Bruce Lilly) Lines: 38