🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
8 messages
8 total messages Started by Duncan Gibson Mon, 07 Aug 1995 00:00
Q. How to zap articles cross-posted to groups I don't want to receive?
#3756
Author: Duncan Gibson
Date: Mon, 07 Aug 1995 00:00
37 lines
2180 bytes
We have an HP9000/735 with HPUX 9.01, and are running
c_news-Nov.94 and nntp-1.5.11t5.

For disk space reasons, we don't receive certain hierarchies,
or rather the ME: entry in the sys file has entries which are
supposed to mean that we don't get them. However, I have noticed
that the relevant hierarchy directories in the news spool still
have an awful lot of articles in them because of cross-posting
to other groups which we do get. This sort of defeats the purpose.

Unless I'm missing something, running expire with very short
or zero expiry times for the unwanted hierarchies on our machine
doesn't remove the cross-posted copies. Of course it would be
better if the articles were never sent to us in the first place,
or simply dropped when they arrived.

Does anyone have any ideas how I could tighten up expire to
get rid of these cross-postings? Does anyone have an 'expire+'
or a separate utility to zap the cross-postings as well?

Similarly, a site that we feed has even more stringent limits
on its disk space, and it would help them a lot if they only
received the (even more reduced) hierarchies that we send them.
Does anyone have any ideas how I could tighten up the articles
we send to them so that they don't get cross-posts of hierarchies
they don't want?

Cheers
Duncan

This is my article, not my employer's, with my opinions and my disclaimer!
--
Duncan Gibson, ESTEC/YCV, Postbus 299, 2200AG Noordwijk, The Netherlands
Tel: +31 1719 84013   Fax: +31 1719 12142  Email: duncan@yc.estec.esa.nl

Re: Q. How to zap articles cross-posted to groups I don't want to receive?
#3767
Author: Russell Schulz
Date: Tue, 08 Aug 1995 00:00
12 lines
1211 bytes
duncan@yc.estec.esa.nl (Duncan Gibson) writes:

> We have an HP9000/735 with HPUX 9.01, and are running
> c_news-Nov.94 and nntp-1.5.11t5.

if all your news is on one spindle, you're simply creating links and
not taking up duplicate space for each copy of the articles.  the actual
loss in storage capacity should be far less than you're thinking it is.
-- 
Russell_Schulz@alpha3.ersys.edmonton.ab.ca  Shad 86c

Re: Q. How to zap articles cross-posted to groups I don't want to receive?
#3765
Author: Heiko W.Rupp
Date: Wed, 09 Aug 1995 00:00
33 lines
1639 bytes
Duncan Gibson (duncan@yc.estec.esa.nl) wrote:

: If I can't cut down the traffic into my machine, I would at least

This would be hard I think ..

: like to be able to either drop the articles when they arrive, or run
: a cron job that zaps them and cross-posts to free up our disk space,
: and before they get sent to our sub-feed.

If you don't have real time nntplinks towards your sub-feeds you could do 
something like the following;

in newsfeeds

no-cross:*:Tc,WNf:no-cross.pl

and no-cross.pl:

split stdin to grouplist,path
check out grouplist
if forbidden group
	rm article
fi



--
Heiko W.Rupp        Gerwigstr.5        D-76131  Karlsruhe    +49 721 9661524
" Das ist wie ein Telefonbuch -- viele Personen und wenig Handlung "
          Prof. Deussen am 26.10.94 ueber die Syntax von PL1

Re: Q. How to zap articles cross-posted to groups I don't want to receive?
#3766
Author: Duncan Gibson
Date: Wed, 09 Aug 1995 00:00
177 lines
5724 bytes
Russell Schulz wrote:
> if all your news is on one spindle, you're simply creating links and
> not taking up duplicate space for each copy of the articles.  the actual
> loss in storage capacity should be far less than you're thinking it is.

This is not exactly the point. I know that cross-posts are links.

OK, let's be more specific. For reasons of disk space, as well as not
being able to justify it as of use technically, we don't want to receive
the alt.binaries and alt.sex hierarchies. As we have already decided
that articles in alt.binaries and alt.sex are not "interesting" to us,
it also follows that they are also not "interesting" in any groups to
which they are cross-posted.

Fine, our news feed doesn't send alt.binaries and alt.sex to us. But
articles are being cross-posted to groups that we do get (or in
junk), such as those listed at the end of this article. So under
alt.binaries we currently have 175 Mb of articles that we don't want.
This also means that we have had the network overhead of transferring
that 175Mb, and we will also have the overhead of transferring it to
our sub-feed, even though we aren't sending them alt.binaries or
alt.sex, and they don't want to receive them either because we have
even less disk space than we have.

If I can't cut down the traffic into my machine, I would at least
like to be able to either drop the articles when they arrive, or run
a cron job that zaps them and cross-posts to free up our disk space,
and before they get sent to our sub-feed.

So, does anyone have a patch for something under 'newsrun' that
will drop articles on the floor, or something to get rid of them
and cross-posts once they are here?

Does nobody else perceive this as a problem waiting to be solved?

Cheers
Duncan

PS. Of course you could argue that we could drop all of alt on
technical reasons, but there are some things that are useful,
such as the sources groups, and to have to keep requesting specific
newsgroups from our feed is not really realistic. Especially
as we wouldn't be able to see what was in the newsgroup until we
specifically requested it.

This is my article, not my employer's, with my opinions and my disclaimer!
--
Duncan Gibson, ESTEC/YCV, Postbus 299, 2200AG Noordwijk, The Netherlands
Tel: +31 1719 84013   Fax: +31 1719 12142  Email: duncan@yc.estec.esa.nl

Here is an incomplete list of other newsgroups to which articles in
alt.binaries are cross-posted. I had to interrupt the 'find' in order
to get this article out before I go home...


alt.2600
alt.agriculture.misc
alt.amazon-women.admirers
alt.anarchism
alt.anonymous.messages
alt.ascii-art
alt.atheism
alt.atheism.satire
alt.authorware
alt.autos.camaro.firebird
alt.autos.macho-trucks
alt.bacchus
alt.bainaries.sounds.erotica
alt.baldspot
alt.barney.dinosaur.die.die.die
alt.bbs.ads
alt.bbs.doors
alt.bbs.first-class
alt.bbs.internet
alt.bbs.lists
alt.bbs.lists.d
alt.beadworld
alt.beer
alt.beer.like-molson-eh
alt.best.of.internet
alt.bible.prophecy
alt.bigfoot
alt.bitch.pork
alt.bizarre
alt.bonehead.david-delaney
alt.boostagogo
alt.buddha.short.fat.guy
alt.cd-rom
alt.celebrities
alt.censorship
alt.christnet.sex
alt.clothing.lingerie
alt.college.sororities
alt.comedy.british.blackadder
alt.comics.alternative
alt.config
alt.cyberpunk
alt.fan.bill-gates
alt.fan.dirty-whores
alt.fetish.fashion
alt.flame.ms-windows
alt.freaks
alt.hackintosh
alt.journalism.music
alt.mag.playboy
alt.magazines.pornographic
alt.magi
alt.magick.sex
alt.models
alt.motss.bisexua-l
alt.music.hardcore
alt.music.midi
alt.music.progressive
alt.newbie
alt.pantyhose
alt.panyhose
alt.personals
alt.personals.ads
alt.personals.bi
alt.personals.bondage
alt.personals.fetish
alt.pictures.girlfriends
alt.religion.christian
alt.religion.kibology
alt.religion.scientology
alt.rock-n-roll.hard
alt.rock-n-roll.metal
alt.rock-n-roll.metal.heavy
alt.rock-n-roll.metal.megadeth
alt.rock-n-roll.metal.progressive
alt.security
alt.shenanigans
alt.soc.motss
alt.supermodels
alt.syntax.tactical
alt.tasteless.pictures
alt.test
alt.thrash
alt.tv.mtv
alt.tv.tiny-toon.fandom
alt.warez.ibm-pc.games
alt.yoga
comp.compression
comp.graphics
comp.graphics.animation
comp.multimedia
comp.os.ms-windows.apps.misc
comp.os.ms-windows.misc
comp.os.ms-windows.programmer.graphics
comp.os.ms-windows.programmer.multimedia
comp.os.ms-windows.setup
comp.os.ms-windows.video
comp.security.misc
comp.security.unix
comp.sys.amiga.audio
comp.sys.ibm.pc.soundcard.misc
comp.sys.ibm.pc.soundcard.music
comp.sys.ibm.pc.soundcard.tech
de.alt.binaries.pictures.d
de.alt.binaries.pictures.female
de.alt.binaries.pictures.male
misc.wanted
neosoft.bizarre
news.admin.net-abuse.misc
news.groups
pa.motss
pnw
rec.arts.ascii
rec.games.deckmaster.marketplace
rec.music.makers.synth
soc.motss
soc.penpals
talk.politics.libertarian
triangle.motss

Re: Q. How to zap articles cross-posted to groups I don't want to receive?
#3773
Author: Peter da Silva
Date: Mon, 14 Aug 1995 00:00
24 lines
1821 bytes
In article <DCxoq5.5w1@yc.estec.esa.nl>,
Duncan Gibson <duncan@yc.estec.esa.nl> wrote:
> For disk space reasons, we don't receive certain hierarchies,
> or rather the ME: entry in the sys file has entries which are
> supposed to mean that we don't get them. However, I have noticed
> that the relevant hierarchy directories in the news spool still
> have an awful lot of articles in them because of cross-posting
> to other groups which we do get. This sort of defeats the purpose.

Not at all. These articles are stored as links. They take up a directory
entry and that's all.

> Does anyone have any ideas how I could tighten up expire to
> get rid of these cross-postings? Does anyone have an 'expire+'
> or a separate utility to zap the cross-postings as well?

I suggest that, if it really bothers you, you try "find ... | rm".
-- 
Peter da Silva    (NIC: PJD2)                             `-_-'
Bailey Network Management                                  'U`
1601 Industrial Blvd.     Sugar Land, TX  77478  USA
+1 713 274 5180                                "Har du kramat din varg idag?"

Re: Q. How to zap articles cross-posted to groups I don't want to receive?
#3774
Author: Rich Salz
Date: Tue, 15 Aug 1995 00:00
29 lines
1815 bytes
In <DD1vAq.A93@yc.estec.esa.nl> duncan@yc.estec.esa.nl (Duncan Gibson) writes:
>OK, let's be more specific. For reasons of disk space, as well as not
>being able to justify it as of use technically, we don't want to receive
>the alt.binaries and alt.sex hierarchies. As we have already decided
>that articles in alt.binaries and alt.sex are not "interesting" to us,
>it also follows that they are also not "interesting" in any groups to
>which they are cross-posted.

I'm planning on doing something like this for INN.  (In fact, some time
ago I posted a diff, which isn't convenient right now.)  In innd/art.c
look for this statement:
    /* Ignore this group? */
    if (ngp->Rest[0] == NF_FLAG_IGNORE)
	continue;
Add something like this:

    /* Found a poison pill? */
    if (ngp->Rest[0] == 'Z') {
	(void)sprintf(buff, "%d Doubleplus ungood newsgroup \"%s\"",
	    NNTP_REJECTIT_VAL, ngp->Name);
	ARTlog(&Data, ART_REJECT, buff);
	if (distributions)
	    DISPOSE(distributions);
	ARTreject(buff, article);
	return buff;
    }   


Re: Q. How to zap articles cross-posted to groups I don't want to receive?
#3778
Author: Duncan Gibson
Date: Fri, 18 Aug 1995 00:00
25 lines
1805 bytes
Duncan Gibson <duncan@yc.estec.esa.nl> wrote:
>> For disk space reasons, we don't receive certain hierarchies,
>> or rather the ME: entry in the sys file has entries which are
>> supposed to mean that we don't get them. However, I have noticed
>> that the relevant hierarchy directories in the news spool still
>> have an awful lot of articles in them because of cross-posting
>> to other groups which we do get. This sort of defeats the purpose.

In article <id.1JHM1.6W1@nmti.com>, Peter da Silva <peter@nmti.com> wrote:
>
>I suggest that, if it really bothers you, you try "find ... | rm".

I'm sorry, but as you quite rightly pointed out in the bit that I
haven't included, the cross posts are links. So using "find...|rm"
will only zap the links in the hierarchy that I'm not interested in
and not the cross-posts which lie outside.

See the next post...

This is my article, not my employer's, with my opinions and my disclaimer!
--
Duncan Gibson, ESTEC/YCV, Postbus 299, 2200AG Noordwijk, The Netherlands
Tel: +31 1719 84013   Fax: +31 1719 12142  Email: duncan@yc.estec.esa.nl

Re: Q. How to zap articles cross-posted to groups I don't want to receive?
#3780
Author: Duncan Gibson
Date: Fri, 18 Aug 1995 00:00
96 lines
4045 bytes
Thanks for the info, but unfortunately we are running cnews, not inn.

Anyway, [and sort of following on from the reply to Peter da Silva]
I hacked together a utility for extracting the Xrefs: from the first
line of an article. I don't know whether this is guaranteed to work
everywhere (there may still be bugs in it, it might be too simplistic,
other news systems might not have XRefs: as the first line, whatever).

When used in combination with 'find' on the hierarchies I don't want,
I was able to recover 200Mb of disk space, and that's with a 1 to 4
day expiry on most groups! 200Mb of disk space and network time in and
out for hierarchies that my feed doesn't even send me in the first place.
It's made quite a difference to the backlog for our sub-feed, because now
we can actually get more, smaller articles through before their disk
fills than was the case with all of these binaries.

Use the following at your own risk!

Cheers
Duncan

This is my article, not my employer's, with my opinions and my disclaimer!
--
Duncan Gibson, ESTEC/YCV, Postbus 299, 2200AG Noordwijk, The Netherlands
Tel: +31 1719 84013   Fax: +31 1719 12142  Email: duncan@yc.estec.esa.nl

    #!/bin/sh
    for article in `find /usr/spool/news/alt/binaries/pictures -type -f -print`
    do
        art-xrefs $article > /tmp/xrefs
        for xref in `cat /tmp/xrefs`
        do
            ls -l /usr/spool/news/$xref
            #rm -f /usr/spool/news/$xref
        done
    done


    /*
     * art-xrefs.c
     */
    #include <stdio.h>

    int main(
        int argc,
        char *argv[]
    )
    {
        FILE *pFile;
        This is an error to make you change InsertHostName below!
        char *szLeadingText = "Xref: InsertHostNameHere "; 
        char szArticlePath[100];
        int inLeadingText;
        int error;
        int nchars;
        int ch;
        int i;

        while (*++argv != NULL) {
            pFile = fopen(*argv, "r");
            if (pFile != NULL) {
                nchars = 0;
                error = 0;
                for (i = 0; i < strlen(szLeadingText); i++) {
                    ch = fgetc(pFile);
                    if (ch != szLeadingText[i]) {
                        error = 1;
                        break;
                    }
                }
                if (error == 0) {
                    while ((ch = fgetc(pFile)) != EOF) {
                        if (ch == ' ' || ch == '\n') {
                            szArticlePath[nchars] = '\0';
                            printf("%s\n", szArticlePath);
                            nchars = 0;
                            if (ch == '\n') {
                                break;
                            }
                        } else
                        if (ch == '.' || ch == ':') {
                            szArticlePath[nchars] = '/';
                            nchars++;
                        } else {
                            szArticlePath[nchars] = ch;
                            nchars++;
                        }
                    }
                }
                (void)fclose(pFile);
            }
        }
        return(0);
    }

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