🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by Michael O'Henly Wed, 26 Jan 1994 04:05
mthreads - how to exclude groups (grrrr!)
#7526
Author: Michael O'Henly
Date: Wed, 26 Jan 1994 04:05
45 lines
2410 bytes
    This is driving me nuts. Considering how utterly fabulous trn/strn
and mthreads are generally, there _has_ to be an easier way to specify
newsgroups for exclusion in an mthreads database.

    Here's the situation...

    I have limited disk space and, since I'm the only strn user on
this machine, I only want to create a threads database for the 42
newsgroups I read regularly. (I'm maintaing the threads database
locally but I get my news via NNTP from a campus news server.)

    The question is, how do I include a group situated midway in a
hierarchy (for example, comp.archives) but exclude the groups below it
(comp.archives.admin, comp.archives.msdos, comp.archives.msdos.d)?

    From my reading of the man page, I should say...

    mthreads comp.archives,!comp.archives.admin,!comp.archives.msdos,\
        !comp.archives.msdos.d

    This isn't too objectionable when there's only two or three groups
below the one you want to include -- but sometimes there's a _lot_ of
groups. You wind up with this huge command line in order to turn on a
single group. Not only that, but since you have to specify all the
exceptions, you need an up-to-date listing of all the groups available
at your site.

    What I WANT to do is something like...

    mthreads -x comp.archives

    ...where the -x switch means "this group only".

    Please -- tell me I've overlooked something really simple. (And
then tell me what it is!!!)

    Thanks.


    Michael
--
                  o    
               --/--   
               __\     Michael O'Henly
                  \    mohenly@malahat.Library.UVic.CA
Re: mthreads - how to exclude groups (grrrr!)
#7532
Author: Wayne Davison
Date: Wed, 26 Jan 1994 19:42
22 lines
1800 bytes
According to Michael O'Henly <mohenly@malahat.library.uvic.ca>:
>     The question is, how do I include a group situated midway in a
> hierarchy (for example, comp.archives) but exclude the groups below it
> (comp.archives.admin, comp.archives.msdos, comp.archives.msdos.d)?

You should be able to say (and you only need do it once, since mthreads
remembers which groups you've turned on and off):

mthreads comp.archives,!comp.archives.all

You can even do this while your daemon is running (between update passes)
and if you use the -n option (to tell mthreads not to process any of the
groups) it will just turn them on or off and leave the creation of the
.thread file(s) to the deamon (if you run one).

Finally, you could just go in and edit the active2 file in the mthreads
library directory, if you like, but mthreads shouldn't be running while
you do it.  Groups that are marked with a lower-case letter in the 4th
field are on, other groups are off.
-- 
Wayne Davison
davison@borland.com
Re: mthreads - how to exclude groups (grrrr!)
#7547
Author: Wayne Davison
Date: Thu, 27 Jan 1994 20:59
21 lines
1718 bytes
According to Michael O'Henly <mohenly@malahat.library.uvic.ca>:
> 1.  Is there a way you can tell whether the daemon is actually doing
>     an update pass?

The easiest way is just to type "mthreads -n command" and if it complains
about being unable to lock, the daemon is making a pass.  The other way to
check is to look in the mthreads library directory for the LOCKmthreads
file (the LOCKmtdaemon file indicates that the daemon is running).

> 2.  If the daemon is doing an update and you use the -n option, does
>     this interfere with the update?

It won't interfere because it won't be able to get a single-pass lock
and thus won't be able to run (even just updating the active2 file with
new info would interfere with the daemon's single-pass).  You might opt
to use the -c (continue trying) option that simply tells mthreads to sleep
and try again until it gets a chance to run (usually used when executing
mthreads from cron).
-- 
Wayne Davison
davison@borland.com
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads