Article View: news.software.readers
Article #261998Re: [Dialog] How to delete selected groups from the "All" tab?
From: VanguardLH
Date: Fri, 16 Jun 2017 23:28
Date: Fri, 16 Jun 2017 23:28
127 lines
7743 bytes
7743 bytes
picoRNA <picoRNAspam@comcast.net> wrote: > VanguardLH <V@nguard.LH> wrote: > >> Use the Filtered tab instead. Enter a search string that matches on the >> server name. You will see the newsgroups carried by that server. You >> may see some on another server is, for example, the string matches both >> the server's name and the newsgroup name (for example, searching on >> "mozilla" will find all the newsgroups carried by the Mozilla NNTP >> server along with all mozilla-named newsgroups carried on other NNTP >> servers that you poll). > > I don't see how the "Filtered" tab does anything different than a search on > the "All" tab, since the newsgroups found still are prefixed with things > like "belwue" and "it" and "hannover.uni", which are groups that I don't > want to search through. The All tab does not have a search field (that finds all matching search hits, not just the first one when using Ctrl+F). The Filtered tab does have a search field, and you can do simple searches or even use regex. "regex \.printer" or "contains .printer" would find newsgroups containing ".printer" in all the NNTP server that you poll. "regex \.printer.*<server>" would find the .printer newsgroups on just the one <server> (whatever descriptive name you gave in defining the server account in Dialog). You could use a descriptive name for the server to help differentiate it from any newsgroup names. For example, I only poll 2 NNTP servers:individual.net and mozilla.org. There are newsgroups named "mozilla.*" in each. If I do a "contains mozilla." search in the Filtered tab, I'll see mozilla.* newsgroups carried on both servers. If I search on "regex mozilla\..*mozilla" then I see only the mozilla.* newsgroups on the Mozilla server (I wasn't very creative for the server for news.mozilla.org). Renaming the server account to something like "MozillaNNTP", especially since Mozilla also has e-mail access to their mailing lists aka newsgroups, would give me a better search of "regex mozilla\..*MozillaNNTP". We could get into negating substrings in a regex to eliminate those newsgroups with prefixes you don't want to find but that would be more work than looking at the 6 ".printer" newsgroups per server. Although you are polling multiple NNTP servers, tis likely you only want to subscribe to the target newsgroup on only one of them. Of course, if you subscribed to the same newsgroup on multiple servers, those would show up in the Subscribed tab. >> You don't have permission to send deletes to the NNTP server. It's not >> your server. You can subscribe or not subscribed to newsgroups within >> your own client. > > I don't use the subscribe mechanism, as I use categories instead. Never used categories for grouping of newsgroups. Not sure how that would work. There is no guarantee the server will have comments available for every newsgroup. Please explain how to define a "category of newsgroup" in Dialog. > All I am asking is how, in dialog, to delete the display of newsgroups in > the "All" or "Filtered" tab that I will never want to search through, such > as those prefixed with "fido7" and "bellsouth.net"? The All and Filtered tabs are populated by the query results from asking a server for a list of newsgroups that it carries. "Online -> Get complete grouplist(s)" has the client ask the server to get a complete list of newsgroups at that server. The All and Filtered tabs show you that retrieve grouplist. You don't get to edit that list, but you can filter it in the Filtered tab. >> Or use the Filtered tab to do filtering on the server's name to see just >> that server's newsgroups. > > All that does is change twelve thousand searches into one thousand > searches. It doesn't remove from my view all the newsgroups that start with > "bellsouth.net" or "dk.edb". One *one* NNTP server, you are seeing a thousand newsgroups with the ".printer" substring in their name? I see only 6 per server but then I'm not polling whatever are those dozen NNTP servers that you are. Looks like the ones you poll have lots of garbage newsgroups. In that case, you can define regex to not include some characters or strings in its search but I hate doing those and have to go online to read up about them. Or you could include the NNTP server name in a regex to limit the search to only that NNTP server that has the least number of garbage newsgroups. There's a ton of stuff about regex that I don't know about. >> Or use the Filtered tab with regex to find newsgroups on just one of the >> NNTP servers that you poll, like using "printer.*<server>" for regex >> where <server> is whatever descriptive name you gave to the Dialog >> account for an NNTP server. > > What I want is a regular expression sort of like this pseudo code: > Find all newsgroups with "printer" in the name but NOT starting with > 3dfx, ab, abg, adobe, ahn, airnews, ak, al, akr, akmos, akita, aki, al, > alabama, alc, alf, aus, amiga, aol, amug, anarch, ann, announce, apana, > apollo3, ar, argonet, arnet, as, astercity, asu, at, atl, att, auburn, > audiobooks, aus, autodesk, av, avenew, avn, (and that's just the ones > starting with "a"!). regex has something called "negative lookarounds" to specify what not to find (what you do not want in a search hit). I saw one user wanting to eliminate any hits on lines beginning with "hede" and the suggested regex was "^((?!hede).)*$". Don't know why the asterisk was included to specify zero, or more, of the "hede" strings since the request was to eliminate "hede" at the beginning and not "hede" or "hedehede" or "hedehedehede". Is also doesn't seem to account for other substrings that are wanted, just "hede" being duplicated. Seems "^(?!hede).*$" or even "^(?!hede).*" or "^(?!hede)" would work but then I'm not versed on negative lookarounds. Maybe the anchors need to be specified for those. See Kiers reply at: https://stackoverflow.com/questions/406230/regular-expression-to-match-a-line-that-doesnt-contain-a-word For trying to NOT find a string that starts with a particular substring, seems FireCoding's answer is more likely what I would've used. You would have to experiment to see if replacing "hede" in their examples with a multiple choice of "(3dfx|amiga|...)" would work to exclude those prefixes from the search results; however, if they are prefixes, you'd probably want to trail them with a period character, as in "(3dfx|amiga|...)\." I've never found clarification as to what dialect of regex that Dialog supports. I assume PCRE only because that has worked for me, so far, in Dialog.
Technical Details
Message-ID:
<643b529u7vcy.dlg@v.nguard.lh>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mailReferences:
<ohvdpu$1g1d$1@adenine.netfront.net> <1xty7hg4v8j2j.dlg@v.nguard.lh> <oi1675$iuq$1@adenine.netfront.net>Show Full Headers
Complete Article Headers
Message-ID: <643b529u7vcy.dlg@v.nguard.lh> Subject: Re: [Dialog] How to delete selected groups from the "All" tab? Date: Fri, 16 Jun 2017 18:28:05 -0500 From: VanguardLH <V@nguard.LH> References: <ohvdpu$1g1d$1@adenine.netfront.net> <1xty7hg4v8j2j.dlg@v.nguard.lh> <oi1675$iuq$1@adenine.netfront.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail Newsgroups: news.software.readers,alt.free.newsservers Organization: Usenet Elder Lines: 127 Sender: VanguardLH <> Reply-To: invalid@invalid.invalid Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: individual.net GIkqjPZg7Q/zMnQVu3lIyQvbUHEntuJPImrlV34e7n2Nvh6SRV Keywords: VanguardLH VLH811 Cancel-Lock: sha1:GQcuqDxtWOtT/BfFeW/Mz78Bnog= User-Agent: 40tude_Dialog/2.0.15.41 X-Received-Body-CRC: 2028460766 X-Received-Bytes: 7683