Article View: news.software.readers
Article #82405Re: nntp Software Inadequacy
From: Curt Welch
Date: Fri, 03 Aug 2001 03:24
Date: Fri, 03 Aug 2001 03:24
181 lines
10772 bytes
10772 bytes
tribalzidane@earthlink.net wrote: > curt@kcwc.com (Curt Welch) posted: > > > tribalzidane@earthlink.net wrote: > > > curt@kcwc.com (Curt Welch) posted: > > > Are you clear on the fact that I'm not worried about doing what > > > hamster and NewsPlex do? I want to use ONE news server to access ONE > > > newsgroup. I do NOT want to use five news servers to access one > > > newsgroup. I'm more concerned with actual access to groups more than > > > completion. > > > > No, I wasn't clear about that at all. If you stick to one server per > > group, then you can just toss everything I said in the trash. What > > you are trying to do is very doable. But there are non-obvious issues > > to deal with. > > > > When articles are posted, you have to figure out which server to send > > them to. Maybe in your case, you can make it work by sending all post > > to one place. But if not, then you have parse the new article to check > > it's groups, and then send it to different places depending on what > > group you posted to. And if you cross-post to two groups and those > > groups aren't on the same server? For your needs, you can probably get > > away with just ignoring the problem. But to create what you are > > talking about as a real product, that issue would have to be addresed. > > I COULD try to find a way to have the "virtual server" report a custom > error if a post is detected going to two different groups on two > different servers. Or since this virtual server is going to simply use > the data that's sent by Agent, since Agent generates the message ID, > perhaps it would be possible to send the same message to two different > servers using the same message ID and when it's downloaded on a news > server that carries both newsgroups, it would be detected as a > crosspost. That would mostly work. But don't do it. A few news servers in the world won't use the Message-Id you pass it. It will replace it with it's own. Then you will end up with dup articles in both groups. So don't post twice no matter what you do. Probably the best thing to do is to just post it to the server that's associated with the first group. This is the type of complex stuff that falls out of these otherwise "simple" ideas. > If not, I could just "forbid" posts to two different news servers. That's and safe clean way to solve the problem. > The program might pop up and ask me which newsgroup(s) I want > to delete from the post. yet another posibility. > I just did an experiment with Agent. I made a fake message and then > moved it from the outbox to a temporary folder. I then highlighted that > message and clicked "Post New Copy" three times and they all went to the > outbox. I moved them all into the temp folder and each message had a > different message ID and a different time/date, even though all were > spawned from the same message. I'm just wondering about the time/date. > I assume that Agent creates the time/date for the message and that is > what's posted on the server. Most newsreaders do that. But they don't have to. If they leave off the Date: header the server will add it. > It has to be or else we wouldn't have > these people from the future posting messages all the time. So since > the message ID can be duplicated for multiple servers by this "virtual > server", and since the time/date would be the same, then it seems like > servers which carry all the newsgroups would detect the post as a > crossposted message and handle it accordingly, as would the software of > the readers of such newsgroups. Then again, perhaps the news server > looks at the Newsgroups header to detect which groups the message was > posted to. That's exactly what the servers do. The servers only get one copy of each message. It has only one Message-ID. It's the Newsgroups: line which tells the server what groups it needs to be posted to. That's true for message as they are posted and as they move around Usenet. > Of course, in that case I might be able to simply include > the full newsgroup list to both servers, whether the server carries the > group or not. I know that Earthlink allows me to have newsgroups listed > in a crosspost list, whether they actually carry the group or not. When > I get the message back after downloading new headers, that group they > don't carry is always listed along with the ones they do carry. yeah, that's standard. > Another thing I thought about is altering the active list to have Agent > download newsgroup names which include the name of the news server. For > example, a newsgroup on Earthlink might appear like: > > news.earthlink.net._-_.news.software.readers Sounds dangerous. Might work on a limited basis. But you are going to have to "fix" Newsgroups: and Xref: headers going in both directions to prevent the newsreader from getting confused. i.e. map the _-_ name to the "real" name on posts, and the inverse when reading. > When it comes time to post a message, Agent would naturally try to post > it to news.earthlink.net._-_.news.software.readers, but the virtual > server would crop the server and seperator out of the newsgroup name > before sending it on to the news server for posting. That would result > in a rather sloppy list in Agent. I'm looking for SEAMLESS integration > and having my groups sorted by server is not my idea of seamless. The > only reason I'd include the server name in the newsgroup name is so I > could tell beforehand if I was crossposting to two different servers and > I could trim my newsgroup list accordingly. It would be less sloppy to > just figure out how to pull off a crosspost to multiple servers, most > likely. This is why all this functionality should be built into the newsreader instead of trying to do it on a proxy server. But I understand why you are trying to do what you are trying to do. There are BTW servers that already do what you are looking for. Execpt I'm not sure if people have set them up for use on a PC like you want. > Well, for my own personal uses, I don't use crosspost detection in > Agent, anyway. I have it disabled. But as you said, this would be > another issue that would have to be addressed if I intend to market the > software. And I would like to do that if I can get it working well > enough to at least be partially useful. > > And yeah, it would be nice if I could make a living writing shareware. > If I can't market this software, then at least the process of learning > to write it would yeild programming skills that could be applied to > other projects. But getting this done is going to be like swimming in > peanut butter because I have no idea what I'm doing beyond the > appearance of the forms in the program. Writing complex NNTP servers is not something I'd suggest as a first "real" project to learn programming on. Good luck. :) News hacking is fun and something lots of people do for intertainment. Not many are able to do it for a living however. :) > > And you have to figure out what to do about errors. What happens when > > your virt server can't access a remote server in the middle of a > > session? > > Hopefully I could figure out some way to send a custom error message to > Agent that says that server [x] is not responding, but still allow Agent > to remain open to continue waiting for data from the virtual server as > it continues on. Well the tough part there is you are forced to stay within the bounds of NNTP. And that doesn't give you a lot to play with. > Then again, Agent might interpret this as an online > error and stop expecting responses. If the virtual server can't get a > response from a particular server, then perhaps it could be made to > create a "dummy message" that will be sent to Agent to trick it into > thinking it's received the headers. The message body would contain the > error message. Only problem there is that if Agent receives a header > for the group, it will "catch up" with the group and maybe the next time > the server can be contacted, it won't get the headers it's due. If the > virtual server can parse the data files for the newsgroup in Agent and > determine what kind of message count it has, then the dummy message can > be sent with the next highest number. That way, when the next attempt > to connect with the server comes around, only one message will be > missed. I would simply send as message 1, but that would probably cause > Agent to reset to 1 and next time ALL the headers would be downloaded. > I'd rather miss one message than have to download them all again. > Pardon me if all that sounds ignorant. I'm just going on what I > understand about how newsreaders keep up with these things and my > knowledge is probably incomplete. I think you are beginning to get a taste of what you are up against. If you limit your project for working only with Agent, then you can get away with various tricks that work with the way agent does things. But to make it work with lots of newsreaders, the "tricks" you can do will be very limited, or you will have to write some really really tricky code. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20010802232438.368$i1@newsreader.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!lnsnews.lns.cornell.edu!newsstand.cit.cornell.edu!portc01.blue.aol.com!newsfeed.skycache.com.MISMATCH!newsfeed1.cidera.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<u71jmt4omd1m09n2dab2m68p4dkdbcee87@4ax.com> <20010802164042.176$E3@newsreader.com> <0hhjmtodlqa25g1f12eggpit1f4ns01vai@4ax.com> <20010802191405.657$Cq@newsreader.com> <9tujmtg6oli69tiq9ujhab7f6g7t280ncu@4ax.com>Show Full Headers
Complete Article Headers
Message-ID: <20010802232438.368$i1@newsreader.com>
Subject: Re: nntp Software Inadequacy
Date: Fri, 03 Aug 2001 03:24:38 +0000
From: curt@kcwc.com (Curt Welch)
References: <u71jmt4omd1m09n2dab2m68p4dkdbcee87@4ax.com> <20010802164042.176$E3@newsreader.com> <0hhjmtodlqa25g1f12eggpit1f4ns01vai@4ax.com> <20010802191405.657$Cq@newsreader.com> <9tujmtg6oli69tiq9ujhab7f6g7t280ncu@4ax.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!lnsnews.lns.cornell.edu!newsstand.cit.cornell.edu!portc01.blue.aol.com!newsfeed.skycache.com.MISMATCH!newsfeed1.cidera.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.readers,microsoft.public.vb.controls.internet
X-Trace: NewsReader.Com IRC/Q0GtL@t_7p9BTJ9AmpAmpJMU=NRsY9Z9q0JOGtnd0
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
%IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 180