🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #84193

Re: Update to signcontrol.py (v. 1.3.3)

#84193
From: Julien ÉLIE
Date: Mon, 11 Jul 2011 16:53
44 lines
3085 bytes
Hi Russ,

> It's worth noting that once you've generated an Injection-Date header, you
> can only then inject the resulting article via IHAVE, not POST.  (I don't
> recall if signcontrol.py ever supported injecting via POST.)

Why wouldn't it be possible to POST an article that already has an
Injection-Date: header field?
I understand it is impossible for an Injection-Info: header field,
but I think it is possible for an Injection-Date: header field.

RFC 5537:
   If the proto-article already contains both Message-ID and Date header
   fields, posting agents MAY add an Injection-Date header field to that
   proto-article immediately before passing that proto-article to an
   injection agent.

It is the case for the control articles generated by signcontrol.py
(they contain signed Message-ID: and Date: header fields).



signcontrol.py does not actually post or inject articles.  It only
generates the files containing the articles to be posted/injected.
I then just manually run rnews/inews on the file.

I provide a little sample commented out in the script for those
who would like to automatically send the article.  I see that I wrote
it only for IHAVE :-)

    #print 'Or you can also try to send it with IHAVE.  If it fails, it means that the article'
    #print 'has not been sent.  You will then have to manually use rnews or a similar program.'
    #if raw_input('Do you want to try? (y/n) ') == 'y':
    #    import nntplib
    #    news_server = nntplib.NNTP(HOST, PORT, USER, PASSWORD)
    #    news_server.ihave(message_id, file_message + '.sig')
    #    news_server.quit()
    #    print 'The control article has just been sent!'

-- 
Julien ÉLIE

« La vie est un sommeil, l'amour en est le rêve et vous aurez vécu
  si vous avez aimé. » (Alfred de Musset)
Technical Details
Message-ID: <980o3lFqh0U1@mid.individual.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news2.euro.net!newsfeed.freenet.ag!newsfeed.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <ivf1pm$h82$1@news.trigofacile.com> <878vs4kc71.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <980o3lFqh0U1@mid.individual.net>
Subject: Re: Update to signcontrol.py (v. 1.3.3)
Date: Mon, 11 Jul 2011 18:53:09 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <ivf1pm$h82$1@news.trigofacile.com> <878vs4kc71.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news2.euro.net!newsfeed.freenet.ag!newsfeed.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 44
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net XF1zJmvAh4TY7tRGVmgPagC2LHw7bHQy/hivtg65ybjeGK/wo=
Cancel-Lock: sha1:mMbvAVzeWWw3qugHx64/8KFk83Q=
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; fr;
In-Reply-To: <878vs4kc71.fsf@windlord.stanford.edu>
X-Original-Bytes: 2827