🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #70844

Re: Retrieving message-id after posting

#70844
From: Andrew - Supernews
Date: Thu, 10 Mar 2005 10:12
25 lines
2200 bytes
On 2005-03-10, Bert Hyman <bert@iphouse.com> wrote:
> In news:112vglsdj0d0k71@news.supernews.com "NewbGuy"
><dontreply@dontreply.com> wrote: 
>> I am writing an NNTP cross-posting script.  The problem I am running
>> into is that after I POST, I need to retrieve the message-id.  This
>> should be easily done, but then I run into several problems now and
>> then, which totally mess things up:
>
> You could generate your own message-id and include it in the header block
> of your message. You run the risk of duplicating the message-id already on
> the server, but if you generate it correctly, this shouldn't happen. 

If you care about knowing the message-id, then generating it yourself is
definitely the best solution.

> I don't know if this is universally true, but my ISP's server responds
> with a "suggested" Message-ID in the 340 response to the initial POST
> command from my news client. It also responds with the actual Message-ID
> in the 240 response after the text of the message has been sent. 

Neither of those is universally true, nor can they be.

-- 
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services
Technical Details
Message-ID: <slrnd307bi.2quv.andrew+nonews@trinity.supernews.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.20140818.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeed.stanford.edu!sn-xit-02!sn-xit-06!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
References: <112vglsdj0d0k71@news.supernews.com> <Xns9614E112550BDVeebleFetzer@204.153.244.156>

Show Full Headers
Complete Article Headers
Message-ID: <slrnd307bi.2quv.andrew+nonews@trinity.supernews.net>
Subject: Re: Retrieving message-id after posting
Date: Thu, 10 Mar 2005 10:12:02 -0000
From: Andrew - Supernews <andrew+nonews@supernews.com>
References: <112vglsdj0d0k71@news.supernews.com> <Xns9614E112550BDVeebleFetzer@204.153.244.156>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeed.stanford.edu!sn-xit-02!sn-xit-06!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
Newsgroups: news.software.nntp
Organization: http://www.supernews.com - all your nntp are belong to us
Reply-To: andrew@supernews.com
User-Agent: slrn/0.9.8.0 (FreeBSD)
X-Complaints-To: abuse@supernews.com
Lines: 25