🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by laurent gauthier Tue, 11 Apr 2000 00:00
force date of an article
#45699
Author: laurent gauthier
Date: Tue, 11 Apr 2000 00:00
17 lines
1115 bytes
Hello,

I'm writing a moderator script for inn and I want an article to be
registered on the server with the date the sender post it and not with
the date of the moderation, wich is the date given by the server anyway.

I tried to write the date header in my script but inn always ovewrites
it, can this be avoid ?
Any suggestions ?

Thanks

Laurent Gauthier
UNGI


Re: force date of an article
#45678
Author: Russ Allbery
Date: Mon, 10 Apr 2000 00:00
16 lines
1196 bytes
laurent gauthier <lgauthier@ungi.net> writes:

> I'm writing a moderator script for inn and I want an article to be
> registered on the server with the date the sender post it and not with
> the date of the moderation, wich is the date given by the server anyway.

> I tried to write the date header in my script but inn always ovewrites
> it, can this be avoid ?

innd and nnrpd themselves don't overwrite Date headers.  How is your
script posting?

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

Re: force date of an article
#45674
Author: laurent gauthier
Date: Tue, 11 Apr 2000 00:00
45 lines
1991 bytes
Russ Allbery a �crit :

> laurent gauthier <lgauthier@ungi.net> writes:
>
> > I'm writing a moderator script for inn and I want an article to be
> > registered on the server with the date the sender post it and not with
> > the date of the moderation, wich is the date given by the server anyway.
>
> > I tried to write the date header in my script but inn always ovewrites
> > it, can this be avoid ?
>
> innd and nnrpd themselves don't overwrite Date headers.  How is your
> script posting?

There is the test I made, I got this file with the date header forced to an
earlier date:

    From: Laurent Gauthier <laurent.gauthier@ungi.net>
    Newsgroups: ungi
    Subject: essai
    Date: 01 Apr 2000 00:34:11 +0200
    Organization: UNGI

    Essai
    --
    Laurent GAUTHIER
    UNGI
    Tel: 01.40.34.88.39                     Fax: 01.40.34.83.72
    mailto:laurent.gauthier@ungi.net        http://www.ungi.net


and I post it with inews:

    inews -h < myfife

the article appear in the right group but with the date of the posting and
not the I one I've tried to force.

Is inews ovewriting it ?


Laurent Gauthier


Re: force date of an article
#45679
Author: Russ Allbery
Date: Tue, 11 Apr 2000 00:00
23 lines
1333 bytes
laurent gauthier <lgauthier@ungi.net> writes:

> and I post it with inews:

>     inews -h < myfife

> the article appear in the right group but with the date of the posting
> and not the I one I've tried to force.

> Is inews ovewriting it ?

Yup.  inews sets it unconditionally.  inews does a lot of stuff that it
probably shouldn't be doing.  I'd tend to whip up a quick little Perl
replacement, something like:

    perl -MNet::NNTP -e '@a = <>; $s = Net::NNTP->new; $s->post(\@a)'

but with error checking.

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

Re: force date of an article
#45702
Author: laurent gauthier
Date: Wed, 12 Apr 2000 00:00
20 lines
1285 bytes
Russ Allbery a �crit :

>
>
> Yup.  inews sets it unconditionally.  inews does a lot of stuff that it
> probably shouldn't be doing.  I'd tend to whip up a quick little Perl
> replacement, something like:
>
>     perl -MNet::NNTP -e '@a = <>; $s = Net::NNTP->new; $s->post(\@a)'
>

Ok, that's e better solution than using inews !

Thanks for your help

Laurent Gauthier
UNGI


Re: force date of an article
#45898
Author: Frank Slootweg
Date: Wed, 19 Apr 2000 00:00
23 lines
1420 bytes
laurent gauthier <lgauthier@ungi.net> wrote:
> Russ Allbery a �crit :
> 
>>
>>
>> Yup.  inews sets it unconditionally.  inews does a lot of stuff that it
>> probably shouldn't be doing.  I'd tend to whip up a quick little Perl
>> replacement, something like:
>>
>>     perl -MNet::NNTP -e '@a = <>; $s = Net::NNTP->new; $s->post(\@a)'
>>
> 
> Ok, that's e better solution than using inews !
> 
> Thanks for your help
> 
> Laurent Gauthier
> UNGI

  If you want to try yet another solution, then you can try to use rpost
of the suck package (which you are using).

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