🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
12 messages
12 total messages Started by NewbGuy Thu, 10 Mar 2005 03:50
Retrieving message-id after posting
#70839
Author: NewbGuy
Date: Thu, 10 Mar 2005 03:50
16 lines
1660 bytes
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:

(a) server lags in putting the posted message in its queue.  It can
sometimes be a minute before the message shows up.
(b) server saying it has accepted the post but has really not accepted it
(c) server says it did not accept the post, but sometimes it has accepted
it(?)

Most of the problems relate to having to retrieve message-id.  Does anyone
have experience with this, and what is the work-around (besides finding a
server that has no lag, and always accepts posts).

Re: Retrieving message-id after posting
#70840
Author: Bert Hyman
Date: Thu, 10 Mar 2005 04:07
19 lines
1735 bytes
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. 

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. 

-- 
Bert Hyman	St. Paul, MN	bert@iphouse.com
Re: Retrieving message-id after posting
#70841
Author: NewbGuy
Date: Thu, 10 Mar 2005 04:35
34 lines
2503 bytes
Thanks, Bert.

I tried using the suggested message-id, but the server did not like me to
force a message-id onto it, even though it was suggested.

Then I tried to see if the post confirmation has a message-id.  That would
be real nice.  My server does not have it.  Any idea of commercial nntp
services (or the server software) that have this feature.

Thanks.

"Bert Hyman" <bert@iphouse.com> wrote in message
news:Xns9614E112550BDVeebleFetzer@204.153.244.156...
> 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.
>
> 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.
>
> --
> Bert Hyman St. Paul, MN bert@iphouse.com

Re: Retrieving message-id after posting
#70844
Author: 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
Re: Retrieving message-id after posting
#70849
Author: NewbGuy
Date: Thu, 10 Mar 2005 17:06
40 lines
2889 bytes
"Andrew - Supernews" <andrew+nonews@supernews.com> wrote in message
news:slrnd307bi.2quv.andrew+nonews@trinity.supernews.net...
> 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


It seems to be that commercial nntp servers don't like you to stuff
message-id in your post.  They want to generate it themselves, even if they
'suggest' an id, still does not work.  I don't know of any that allow that.
As an alternative(?) I am thinking of setting up an INN server, set up a
peer feed, and then post messages using IHAVE.  Am I on the right track,
seems like overkill, but I need reliable posting and retrieval of
message-id.

Re: Retrieving message-id after posting
#70852
Author: Andrew - Supernews
Date: Thu, 10 Mar 2005 19:16
13 lines
1610 bytes
On 2005-03-10, NewbGuy <dontreply@dontreply.com> wrote:
> It seems to be that commercial nntp servers don't like you to stuff
> message-id in your post.  They want to generate it themselves, even if they
> 'suggest' an id, still does not work.  I don't know of any that allow that.

Nonsense. We certainly allow it.

If you're finding that generating your own message-id isn't working, it's
more likely that you're not generating valid ids.

-- 
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services
Re: Retrieving message-id after posting
#70853
Author: Bert Hyman
Date: Thu, 10 Mar 2005 19:24
13 lines
1497 bytes
dontreply@dontreply.com (NewbGuy) wrote in
news:1130vak3ogj2q92@news.supernews.com: 

> It seems to be that commercial nntp servers don't like you to stuff
> message-id in your post.  They want to generate it themselves, even
> if they 'suggest' an id, still does not work.  I don't know of any
> that allow that. 

My news client (Xnews) generates message-ids for me and I've never 
encountered a system that didn't take them.

-- 
Bert Hyman | St. Paul, MN | bert@iphouse.com
Re: Retrieving message-id after posting
#70854
Author: NewbGuy
Date: Thu, 10 Mar 2005 19:37
30 lines
2161 bytes
"Andrew - Supernews" <andrew+nonews@supernews.com> wrote in message
news:slrnd31784.2quv.andrew+nonews@trinity.supernews.net...
> On 2005-03-10, NewbGuy <dontreply@dontreply.com> wrote:
> > It seems to be that commercial nntp servers don't like you to stuff
> > message-id in your post.  They want to generate it themselves, even if
they
> > 'suggest' an id, still does not work.  I don't know of any that allow
that.
>
> Nonsense. We certainly allow it.
>
> If you're finding that generating your own message-id isn't working, it's
> more likely that you're not generating valid ids.
>
> --
> Andrew, Supernews
> http://www.supernews.com - individual and corporate NNTP services

Ok, I tested with Supernews.  SN does not suggest a message id in response
to POST command (some do), so I just generated in the header this extra
line:
Message-ID: lkajdfkljadsklfjdsklajfds@llll.com
and submitted that.
SN said:   441 invalid Message-ID header [supernews_headers]




Re: Retrieving message-id after posting
#70856
Author: Paul Tomblin
Date: Thu, 10 Mar 2005 19:38
20 lines
2145 bytes
In a previous article, "NewbGuy" <dontreply@dontreply.com> said:
>"Andrew - Supernews" <andrew+nonews@supernews.com> wrote in message
>news:slrnd31784.2quv.andrew+nonews@trinity.supernews.net...
>> If you're finding that generating your own message-id isn't working, it's
>> more likely that you're not generating valid ids.
>Ok, I tested with Supernews.  SN does not suggest a message id in response
>to POST command (some do), so I just generated in the header this extra
>line:
>Message-ID: lkajdfkljadsklfjdsklajfds@llll.com
>and submitted that.
>SN said:   441 invalid Message-ID header [supernews_headers]

That's an invalid message id.  Look at the message ids for every post in
this thread, and see what you're <missing>.


-- 
Paul Tomblin <ptomblin@xcski.com> http://xcski.com/blogs/pt/
"There is no reason anyone would want a computer in their home."
--Ken Olson, president, chairman and founder of Digital Equipment Corp., 1977
Re: Retrieving message-id after posting
#70855
Author: NewbGuy
Date: Thu, 10 Mar 2005 19:38
20 lines
1792 bytes
"Bert Hyman" <bert@iphouse.com> wrote in message
news:Xns96158868C277AVeebleFetzer@news.visi.com...
> dontreply@dontreply.com (NewbGuy) wrote in
> news:1130vak3ogj2q92@news.supernews.com:
>
> > It seems to be that commercial nntp servers don't like you to stuff
> > message-id in your post.  They want to generate it themselves, even
> > if they 'suggest' an id, still does not work.  I don't know of any
> > that allow that.
>
> My news client (Xnews) generates message-ids for me and I've never
> encountered a system that didn't take them.
>
> --
> Bert Hyman | St. Paul, MN | bert@iphouse.com

Bert, thanks, I am going to try that.

Re: Retrieving message-id after posting
#70857
Author: Bert Hyman
Date: Thu, 10 Mar 2005 19:42
46 lines
2656 bytes
dontreply@dontreply.com (NewbGuy) wrote in
news:113185j6bj0eo04@news.supernews.com: 

> 
> "Andrew - Supernews" <andrew+nonews@supernews.com> wrote in message
> news:slrnd31784.2quv.andrew+nonews@trinity.supernews.net...
>> On 2005-03-10, NewbGuy <dontreply@dontreply.com> wrote:
>> > It seems to be that commercial nntp servers don't like you to
>> > stuff message-id in your post.  They want to generate it
>> > themselves, even if 
> they
>> > 'suggest' an id, still does not work.  I don't know of any that
>> > allow 
> that.
>>
>> Nonsense. We certainly allow it.
>>
>> If you're finding that generating your own message-id isn't
>> working, it's more likely that you're not generating valid ids.
>>
>> --
>> Andrew, Supernews
>> http://www.supernews.com - individual and corporate NNTP services
> 
> Ok, I tested with Supernews.  SN does not suggest a message id in
> response to POST command (some do), so I just generated in the
> header this extra line:
> Message-ID: lkajdfkljadsklfjdsklajfds@llll.com
> and submitted that.
> SN said:   441 invalid Message-ID header [supernews_headers]

Yeah; that's not a good format for a message-id. For example, the
message-id of your own post looks like this: 

Message-ID: <113185j6bj0eo04@news.supernews.com>

Note in particular the "<" and ">" characters.

See http://www.faqs.org/rfcs/rfc1036.html for the definition of what
a post should look like, and section 2.1.5 for a description of a
Message-ID header field. 



-- 
Bert Hyman | St. Paul, MN | bert@iphouse.com
Re: Retrieving message-id after posting
#70862
Author: NewbGuy
Date: Thu, 10 Mar 2005 20:38
57 lines
3362 bytes
"Bert Hyman" <bert@iphouse.com> wrote in message
news:Xns96158B616C339VeebleFetzer@news.visi.com...
> dontreply@dontreply.com (NewbGuy) wrote in
> news:113185j6bj0eo04@news.supernews.com:
>
> >
> > "Andrew - Supernews" <andrew+nonews@supernews.com> wrote in message
> > news:slrnd31784.2quv.andrew+nonews@trinity.supernews.net...
> >> On 2005-03-10, NewbGuy <dontreply@dontreply.com> wrote:
> >> > It seems to be that commercial nntp servers don't like you to
> >> > stuff message-id in your post.  They want to generate it
> >> > themselves, even if
> > they
> >> > 'suggest' an id, still does not work.  I don't know of any that
> >> > allow
> > that.
> >>
> >> Nonsense. We certainly allow it.
> >>
> >> If you're finding that generating your own message-id isn't
> >> working, it's more likely that you're not generating valid ids.
> >>
> >> --
> >> Andrew, Supernews
> >> http://www.supernews.com - individual and corporate NNTP services
> >
> > Ok, I tested with Supernews.  SN does not suggest a message id in
> > response to POST command (some do), so I just generated in the
> > header this extra line:
> > Message-ID: lkajdfkljadsklfjdsklajfds@llll.com
> > and submitted that.
> > SN said:   441 invalid Message-ID header [supernews_headers]
>
> Yeah; that's not a good format for a message-id. For example, the
> message-id of your own post looks like this:
>
> Message-ID: <113185j6bj0eo04@news.supernews.com>
>
> Note in particular the "<" and ">" characters.
>
> See http://www.faqs.org/rfcs/rfc1036.html for the definition of what
> a post should look like, and section 2.1.5 for a description of a
> Message-ID header field.
>
>
>
> --
> Bert Hyman | St. Paul, MN | bert@iphouse.com

Thanks Paul, Bert, and Andrew.  After fixing the format of message-id, and
then submitting it to SuperNews, it did work just fine!   Ok, you guys saved
me a ton of hours, since what I used to do was POST without a message-id,
and then go fishing for the resulting message-id (a difficult task).

Thanks again, steve

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