Thread View: news.software.readers
2 messages
2 total messages
Started by Jonathon
Wed, 22 Sep 1993 17:45
Obtaining Message ID's assigned by inews
Author: Jonathon
Date: Wed, 22 Sep 1993 17:45
Date: Wed, 22 Sep 1993 17:45
34 lines
2199 bytes
2199 bytes
Question for all you UNIX people who've written posting scripts: How do I obtain the Message ID of a post that has just been performed in batch mode by inews (invoked from Pnews)? To give you the context: I'm trying to write a script that will automatically uuencode, split, and post binary files to a specified newsgroup. Because so many people are using threaded newsreaders with automatic extraction features (trn, nn, etc), I feel it would be good to post each part of the binary as a followup to the previous part, so you can tag and extract the whole thread at once, rather than having to tag each part individually. People without threaded newsreaders would naturally not see any difference, but I for one certainly appreciate more posts like this (I use trn). The problem is, I don't know how to make followup posts without being inside my newsreader. To take a guess, you'd just add a Reference: header item to the headers, containing the message ID's of the previous posts, oldest to youngest? This is easy enough, provided you get the message ID of the most recent post somehow. This, of course, is my question above. Answers by email or posting are equally appreciated. I'll summarize any direct responses to this group. Thanks in advance, Jonathon. PS: Are there any programs around that do this already? I don't want to re-invent the wheel here...
Re: Obtaining Message ID's assigned by inews
Author: Wayne Davison
Date: Wed, 22 Sep 1993 19:12
Date: Wed, 22 Sep 1993 19:12
21 lines
1781 bytes
1781 bytes
According to Jonathon <jshepher@laurel.ocs.mq.edu.au>: > Because so many people are using threaded newsreaders with > automatic extraction features (trn, nn, etc), I feel it would be good to > post each part of the binary as a followup to the previous part There isn't an easy way to figure out the message id of an article inews just processed, so I'd suggest that you supply the message-id of the first article you post and then use this one message-id in the References: line of each of the other postings (check comp.sources.misc for an example of this). There is no need to cite each message-id. Supplying the first Message-ID is easy. Just put it into the header of the article you are posting and inews will use it. The only "hard" part is devising a scheme of making them unique, but this should be fairly easy if you encode the current time, process-id, a tag unique to your program, and (of course) the @machine.name.domain portion. There are add-ons for C news that do a compact encoding that you may want to check out for ideas on how you can make the ids fairly short. -- Wayne Davison davison@borland.com
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