🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Gunther Anderson Tue, 05 Jun 2001 18:48
Auto Crossposting in INN 1.5.1?
#52708
Author: Gunther Anderson
Date: Tue, 05 Jun 2001 18:48
37 lines
2988 bytes
We're running an old server here, and we automatically copy postings in our
local newsgroups into readable archive groups.  That is, any posting to
local.newsgroup gets posted to local.archive.newsgroup as well, under a
separate message ID to keep from getting canceled (note that that might be
unnecessary, but it worked five years ago when I set it up).

We achieve this by listing all the groups as moderated, and the address for
moderation injects the article separately into the group and the
archive.group, stripping off the Message-id so that the system
automatically assigns it new ones.  There's an annoying side-effect or two,
that one can't crosspost multiple groups, and that messages sent to a user
and a newsgroup get sent to the user twice (once from the original poster,
once when the mail system gets too helpful).

Is there some way to automate this, so I can remove moderation and
disinvolve the mail system entirely?  The "archive" channel would be nice,
except that I want the archive groups to be readable - in the history
database and in the overview database.  I suppose I could set up a cron
process to rebuild the overview and history database every night, but
there's gotta be a better way.  Keeping the article IDs separate is
unnecessary, as long as I don't have to worry about an article getting
removed when it expires from the non-archive groups.  I guess I'd also like
the messages not to be linked, but copied.  The point of the archive groups
is so that we have a permanent, browsable record of internal
communications, but that the normal, day-to-day reading doesn't have to
keep track of 15000 messages.

If this is easy to solve in 2.2, just how hard is it to drop 2.2
executables on top of a happy 1.5.1?  I'm leery of that approach anyway,
though, since I had to hack 1.5.1 to do username/password authentication,
and unless 2.2 does it the same way I do, well, I hate work, and that would
be work.

Thanks for any insight.

Gunther Anderson
Re: Auto Crossposting in INN 1.5.1?
#52780
Author: those who know me have no need o...
Date: Sat, 09 Jun 2001 07:03
25 lines
1990 bytes
<3B1D2964.5388081B@ycrdi.com> divulged:

>We achieve this by listing all the groups as moderated, and the address for
>moderation injects the article separately into the group and the
>archive.group, stripping off the Message-id so that the system
>automatically assigns it new ones.  There's an annoying side-effect or two,
>that one can't crosspost multiple groups, and that messages sent to a user
>and a newsgroup get sent to the user twice (once from the original poster,
>once when the mail system gets too helpful).

what's "wrong" with cross-posts?  are the original posts not cross-posting
properly, or is it the archival copy?

in addition to whatever else is being done the archival copy should have
any `to', `cc', or `bcc' headers stripped, and whatever is "proper" done
with cross-posts, e.g., change all newsgroups from local.foo to
local.archive.foo, then inject it as you (probably) do now.

fyi: the archival copy can be canceled by the author with most newsreaders
with no particular hassle so those groups should also be moderated, with
/dev/null as the mailbox (most likely).

-- 
okay, have a sig then
Re: Auto Crossposting in INN 1.5.1?
#52779
Author: Russ Allbery
Date: Sat, 09 Jun 2001 08:25
101 lines
5980 bytes
Gunther Anderson <gunther@ycrdi.com> writes:

> We're running an old server here, and we automatically copy postings in
> our local newsgroups into readable archive groups.  That is, any posting
> to local.newsgroup gets posted to local.archive.newsgroup as well, under
> a separate message ID to keep from getting canceled (note that that
> might be unnecessary, but it worked five years ago when I set it up).

If it's a separate copy, it does need to have a separate message ID.

> We achieve this by listing all the groups as moderated, and the address
> for moderation injects the article separately into the group and the
> archive.group, stripping off the Message-id so that the system
> automatically assigns it new ones.  There's an annoying side-effect or
> two, that one can't crosspost multiple groups, and that messages sent to
> a user and a newsgroup get sent to the user twice (once from the
> original poster, once when the mail system gets too helpful).

Crossposting is doable using that system, but you need to analyze the To
and Cc headers and from that build a list of groups.  It's somewhat
complicated to get right.  (I'd point you at the toolkit that I'm using to
do this, but I'm convinced now that I didn't do it right either, and am in
the exceedingly slow process of rewriting it.)

> Is there some way to automate this, so I can remove moderation and
> disinvolve the mail system entirely?

You could use the filtering interface in recent versions of INN to write a
Perl or Python filter to modify the Newsgroups header of all incoming
posts to add the appropriate crosspost.  I think that would work and might
be a bit cleaner.  Unfortunately, I don't think INN 1.7.2 will cut it (or
otherwise I'd recommend just upgrading to that version, since it would be
a much easier upgrade from INN 1.5.1), since I think the modifiable
headers stuff wasn't added until the 2.x series.

> The "archive" channel would be nice, except that I want the archive
> groups to be readable - in the history database and in the overview
> database.

Yeah, the archive channel program can't do that.

> I suppose I could set up a cron process to rebuild the overview and
> history database every night, but there's gotta be a better way.

Ew, yes, I wouldn't do that.

> Keeping the article IDs separate is unnecessary, as long as I don't have
> to worry about an article getting removed when it expires from the
> non-archive groups.

Oh, if that was the worry, your mail to news script can just crosspost.  A
cancelled message would be deleted from both, but expire is smart enough
to retain the copy in other groups when it expires it from one group.

> I guess I'd also like the messages not to be linked, but copied.

This argues against crossposting.  I'm not sure if the Perl filter can
easily separate the message into two posts... hm.  Actually, yeah, one way
to do it using the Perl filter that would actually work fine in INN 1.7.2
I believe and will even be simpler.

In the Perl filter, write out a copy of the article except replacing the
Newsgroups header with the appropriate archive groups and the Message-ID
header with a new message ID (generated in the Perl script; something like
time . '$' . $$ . '$' . $counter++ would work if you had a global $counter
variable in the filter script that started at 0.  Put that copy of the
article into pathspool/incoming.  Then just run rnews -U periodically to
post the articles in pathspool/incoming to the server.

> If this is easy to solve in 2.2, just how hard is it to drop 2.2
> executables on top of a happy 1.5.1?

Very hard.  The format of the spool, overview, and history has all
changed.  We don't recommend people even try this; instead, it's
recommended that if you want to upgrade that you use innxmit to transfer
all the articles to a new system over protocol.

However, dropping INN 1.7.2 executables on top of a happy 1.5.1 should
work pretty well; I've done that myself, although I redid the
configuration at the same time and you may have to double-check there for
anything that might have changed.  And INN 1.7.2 is very stable and
probably a better tool for what you're doing right now than INN 2.x is,
since traditional spool support in INN 2.x is still less than ideal.

<ftp://ftp.isc.org/isc/inn/OLD/1.7/inn-1.7.2.insync-1.1d.tar.gz> is the
best and essentially the final version of INN 1.x and is what I'd
recommend using.

> I'm leery of that approach anyway, though, since I had to hack 1.5.1 to
> do username/password authentication, and unless 2.2 does it the same way
> I do, well, I hate work, and that would be work.

You'll probably have to hack that into INN 1.7.2 again as well, but the
code to hack is probably identical to the code in 1.5.1 or very close.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Auto Crossposting in INN 1.5.1?
#53016
Author: Gunther Anderson
Date: Fri, 22 Jun 2001 21:39
46 lines
3328 bytes
those who know me have no need of my name wrote:
> 
> <3B1D2964.5388081B@ycrdi.com> divulged:
> 
> >We achieve this by listing all the groups as moderated, and the address for
> >moderation injects the article separately into the group and the
> >archive.group, stripping off the Message-id so that the system
> >automatically assigns it new ones.  There's an annoying side-effect or two,
> >that one can't crosspost multiple groups, and that messages sent to a user
> >and a newsgroup get sent to the user twice (once from the original poster,
> >once when the mail system gets too helpful).
> 
> what's "wrong" with cross-posts?  are the original posts not cross-posting
> properly, or is it the archival copy?

Sorry for disappearing.  The problem with the crossposting is probably more
a problem with the mail2news.pl script I'm using, which has the newsgroup
passed as a command-line parameter.  It's not very general, and the
command-line parameter is hard-coded in /etc/aliases.  Thus something sent
to local.group1,local.group2 gets e-mailed only to local-group1, which runs
mail2news for local.group1 and local.archive.group1.  If the moderation
facility would mail to both moderators (a bad thing in the real world but
probably good here), then I wouldn't worry.

> in addition to whatever else is being done the archival copy should have
> any `to', `cc', or `bcc' headers stripped, and whatever is "proper" done
> with cross-posts, e.g., change all newsgroups from local.foo to
> local.archive.foo, then inject it as you (probably) do now.

Yeah, I can certainly work up a newsfeed through a script (I've forgotten
the correct terminology), I was just fishing to see if the work has already
been done.

> fyi: the archival copy can be canceled by the author with most newsreaders
> with no particular hassle so those groups should also be moderated, with
> /dev/null as the mailbox (most likely).

I'll have to ask if we want to allow cancellation on the archives.  We
might.  Actually, I'd probably want to /dev/null the posting address for
the archive groups anyway, since I'd hate to create a feedback loop.  Oh,
wait, I can prevent that with some fields in newsfeeds, too.  I'll have to
ask.

Thanks,
Gunther Anderson
Re: Auto Crossposting in INN 1.5.1?
#53059
Author: Gunther Anderson
Date: Wed, 27 Jun 2001 19:00
25 lines
1931 bytes
Well, what I wound up doing was hacking a mail2news.pl script I'd already
been using, and made a "program" (Tp) feed into it, like this:

ycarchiver\
        :!*,local.*,!local.archive.*,!local.some-list,\
	!local.some-other-list,!local.k2000_list\
        :Tp:/usr/local/etc/news2arch.pl

Thus, I'm sending it only the local.* groups, not any of the archive
groups, and not the handful of groups we don't care to archive (since
they're really mailing lists).  news2arch.pl basically finds the
Newsgroups: line, and replaces all occurrences of local.* with
local.archive.*.  It strips off Received: lines, Path: and Message-id:, and
feeds the results back into inews, creating a completely new message with a
fresh Message-ID: in the appropriate local.archive.* group.

And I probably spent more time writing these messages than I did actually
implementing this, once I decided how...

Thanks again for your help.

Gunther Anderson
Network Weenie
Young Chang R&D / Kurzweil Music Systems
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