Article View: news.software.nntp
Article #11379Re: ANTP Specification
From: Bryan Ogawa
Date: Thu, 03 Oct 1996 00:00
Date: Thu, 03 Oct 1996 00:00
203 lines
10512 bytes
10512 bytes
elcabalero@aol.com (The Gentleman) writes: >bkogawa@primenet.com (Bryan Ogawa) wrote: >}elcabalero@aol.com (The Gentleman) writes: >}>bkogawa@primenet.com (Bryan Ogawa) wrote: >}>}elcabalero@aol.com (The Gentleman) writes: >}>}>bkogawa@primenet.com (Bryan Ogawa) wrote: >}>}>}elcabalero@aol.com (The Gentleman) writes: >}>}>}>bkogawa@primenet.com (Bryan Ogawa) wrote: >}>}>}>}elcabalero@aol.com (The Gentleman) writes: > FTP->Mail gateways have already been done, you could modify that for the >purpose. Current 'mailto:' URL's may not allow for authentication, I'll have >to look. Yup. > Okay, <http://www.w3.org/pub/WWW/Addressing/rfc1738.txt> says that >'mailto:' is the address, and the address only. I'll have to come up with >some way of changing that. Probably make it consistent with the other >schemes, like HTTP and FTP, that do allow for passwords and file >identification. And I'll have to explicitly state that it's a hack, and >future develoments in URL's may make it obsolete, and even unusasble. > Unfortunately, they set aside the 'mailto:' as *not* referring to a data >object. Oh well. [... lots of things being done to news ...] > And we're talking about rebuilding the cancel mechanism, and getting >serious about NoCeM. A lot of things just percolated to the top all at once. > The way news works is in for some major changes in the next few months. >}[...] >}> Yeah, I'm used to explicit separators. ' ' is whitespace, only time I >}>worry about it is to get rid of it or add it. Treating it as useful data >}>isn't the way I normally do things. Anyway, I thought that ',' was illegal >in >}>message ID's and Unix file names? >} >}Nope, ',' is legal in filenames, at least, but then, so are spaces. Of >}course, you can use the URL %20 thing to get around both of these >}characters in URLs. I'd have to reread RFC822 to see about Message-IDs. >} >}Bah. RFC822 seems to be saying that just about anything can be in a >}Message-ID. Bah. > Which is a major pain. We need something that can be used for an explicit >separator, or else we have to use fixed fields, which wastes ridiculous >amounts of space. Maybe we can use the top half of 8-bit ASCII? Gah. We can >across HTTP and FTP, but SMTP *might* break. You usually wouldn't have a >problem, though, unless a mail server in the middle is 'enforcing' the RFC by >stripping the high bit. >}[...suggestion about X-ANTP-Headers snipped...] >}>}I believe that user-generated headers can appear multiple times in a >}>}single message. >}>} >}> I'm not sure that's true on all systems, and I know at least some >servers >}>choke on more than one ':' in a header line. AirNews is one, I can't put >them >}>in the Subject: line. Also, that doesn't really identify what group the >}>client was acting on, a crossposted message might be handled by several. >} >}I think this behavior is a little messed up. :( > Unforunately, if it's broke, but it's out there, you gotta deal with it. >Still, RFC 822 says that a ':' is the only 7 bit character you can't use in an >article header line, except once, between the identifier and the info. Maybe >that could be our separator in the index files? 7-bit, and we need it in only >the one place. Hm... are you sure?? I'm pretty sure they're legal, they just need to be quoted. The reason this looks tricky in RFC822 is because it's using these as tokens in a grammar for a lexical analyzer--all of the funny characters are mostly only legal as quoted characters. I suspect that something like :: may be illegal except in a quoted string. Anyway, it is not such a horrible thing (just a pain to program if you don't use a lexer), and another option is to separate Message-ID and reference with CRLF (which the program can interpret out of the file). >}[...] >}>}Good. While you can expect admins to do some things to help, installing a >}>}new ftp server is probably not one of them. :) >}>} >}> The first few trying to talk them into hosting a CH will have enough of >a >}>problem, since it will require limited access for users that are not at that >}>site. Really, it's less of a risk than a web-server in the first place, but >}>admins *can* be amazingly conservative. >} >}Well, I dunno. Login IDs are a big bugaboo, especially shared logins, >}where it's much harder to tell whether traffic's legitimate and there's >}often a lot of finger pointing (no, I don't know anything about the copy >}of /etc/passwd in my account, my little brother uses my account and he >}uses IRC a lot). However, with some assistance from the admin, multiple >}separate accounts on a single machine could be used, with fairly long, >}hard to guess (but easy to sniff :( ) passwords. Basically, you use the >}Unix group concept and a bunch of chmods by the clients, to let the reaper >}have access to delete the files. > Yeah, that would work. More sophisticated systems could change the >password according to some hard-to-guess formula. Anyway, that's an >implementation issue. >} >}Not too hard, and it gives the admin those logging records he or she >}craves. >} > What, he might want to know who's been on his system? This is still the sticking point for getting CHs implemented--system administrator overhead on the CH (not CH admin overhead--I'm presuming CH admins are dedicated, but not in a position to do what they'd like on the machine). Even with shared logins, you'll have to find a more than run of the mill sysadmin to set this up for you or let you run it with shared logins. I have another idea, though, that I think lowers the amount of admin-convincing required. What about using SMTP to upload, and HTTP to download? The SMTP uploads can either be accepted by a mail filter (I know procmail or a perl script could do the filtering), or in the worse case, by a specialized POP mail client run by the account owner. Either a dedicated account, a specialized secret subject line, or a mail alias lets the POP client or script determine which messages are incoming articles and where to store the files (and this client is the only one that needs to access the http site via ftp). Indexes are used as before, with the expectation that the clients search the http index before uploading files. The uploading client can be in charge of verifying index files. This way, there's basically nothing special about the CH, although the CH admin may need to run a special client (the "master client"?) to make sure the articles make it to the http download area. http access is easily controllable via .htaccess and htpasswd (not secure, but since there is no upload via http, and since the only benefit of cracking passwords is being able to read the articles a few hours earlier than ususual, I consider this acceptable). the smtp upload access is protected either with a special header (X-Password: squeamish ossifrage), or something in the Subject: line (the ENTIRE article, including headers, is put in the message body, so the email's headers can be used for any purpose and munged appropriately, although you may need to watch out for "From " quoting, possibly by shifting every line over by a space). I think that smtp uploads make sense if you're trying to minimize system administrator involvement, concern, and attention, because it uses a well-established service to accept uploads. [... idea for downloading via SMTP ...] }If you're expecting results back soon, yes. However, if you don't care if >}they get delayed a minute or twenty, it's probably plenty fast. The >}indexes can be flooded (since everyone needs to see all of them, anyway), >}but requests (and messages) can be request-driven. >} > No reason not to make the index request-driven. Then, the daemon can >filter duplicates, remove those added by that client, and generally optimize >things. True, especially in this case. > Okay, I'm going to rewrite the spec, and post it again. Sounds good, although I think that SMTP upload with HTTP download is promising because it's lowest-common-denominator. Someone asked what the purpose of ANTP was since current news software can allow for what ANTP offers, and pointed out that the hard part was finding a CH. This made me realize that ANTP's reason for existence is because finding CH's is hard, and the utmost effort should be made to lower the difficulty of being a CH. Email uploads work to that goal, not for technical reasons (it'd be easier to just sit back and let clients do everything, instead of having to set up procmail scripts or constantly run a specialized client), but for administrative/political ones. It might be a good idea to implement both ideas in concert (both ftp and smtp uploading). > See why I didn't try to go straight to the RFC process? This thing has >evolved more in three days then it would have in three months as an RFC. > BTW, would you like co-authorship credit on this? I wouldn't mind, but it's up to you. One last note: the NNTP part of an ANTP client (the part which pulls new messages) is potentially subject to the "sucking feed" issues mentioned in another news.software.nntp thread. At some point, it might be worth a read. bryan -- bryan k. ogawa <bkogawa@primenet.com> <bkogawa@netvoyage.net>
Technical Details
Message-ID:
<53036a$6v1@nnrp1.news.primenet.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<52mm8p$54d@library.airnews.net> <52nboh$ork@nnrp1.news.primenet.com> <52nipe$55s@library.airnews.net> <52pl7q$s20@nnrp1.news.primenet.com> <52q11g$v2c@library.airnews.net> <52rsuq$39k@nnrp1.news.primenet.com> <52rtol$i0_009@library.airnews.net> <52tfgu$906@nnrp1.news.primenet.com> <52u1t0$1h0_005@library.airnews.net>Show Full Headers
Complete Article Headers
Message-ID: <53036a$6v1@nnrp1.news.primenet.com> Subject: Re: ANTP Specification Date: Thu, 03 Oct 1996 00:00:00 +0000 From: bkogawa@primenet.com (Bryan Ogawa) References: <52mm8p$54d@library.airnews.net> <52nboh$ork@nnrp1.news.primenet.com> <52nipe$55s@library.airnews.net> <52pl7q$s20@nnrp1.news.primenet.com> <52q11g$v2c@library.airnews.net> <52rsuq$39k@nnrp1.news.primenet.com> <52rtol$i0_009@library.airnews.net> <52tfgu$906@nnrp1.news.primenet.com> <52u1t0$1h0_005@library.airnews.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.mbox.zip!not-for-mail X-Deja-AN: 186905906 Organization: Primenet Services for the Internet X-posted-by: bkogawa@206.165.5.111 (bkogawa) Newsgroups: news.admin.net-abuse.misc,news.admin.misc,news.software.nntp