|
|
1.1 ! root 1: ! 2: This is a "pseudo" inews which allows remote posting using ! 3: the NNTP server. Essentially it takes a bunch of arguments and ignores ! 4: ones starting with "-", expecting to find at least one which is ! 5: a file name. If no files are specified, it uses standard input ! 6: as the input file. ! 7: ! 8: It then opens a connection to the NNTP server on the remote ! 9: machine and blasts the article across. It then closes the connection. ! 10: If it doesn't find a From: or Path: line, it inserts them, in the ! 11: default format ! 12: ! 13: From: [email protected] (Full_name) ! 14: Path: hostname!login ! 15: ! 16: where DOMAIN is a #define in ../common/conf.h, and should be changed ! 17: to reflect your system. A good choice is .UUCP if you are not a ! 18: member of the Internet. "Full_name" understands the & hack in ! 19: password files. ! 20: ! 21: "hostname" is figured out by what you've #defined in ../common/conf.h. ! 22: If you have defined GHNAME, it uses the gethostname() call. ! 23: If you've defined UUNAME, it figured it out from the file ! 24: /etc/uucpname. Finally, if neither is defined it gets it from ! 25: /usr/include/whoami.h. If you have GHNAME defined and your ! 26: gethostname() returns your fully-qualified Internet name, ! 27: undefine DOMAIN. ! 28: ! 29: The point here is that the thing looks like inews to any program ! 30: which would care to post something (e.g., Pnews, postnews, what have ! 31: you). The difference is that the article will look like it was posted ! 32: on the remote end, not on the local end. Please note that "postnews" ! 33: (nor any of the other standard news programs) is not required for ! 34: rrn/nntp on client machines. ! 35: ! 36: The "test*" files in this directory provide some good test ! 37: material for inews; you can just redirect inews to take input from ! 38: them or whatever. ! 39: ! 40: Thanks to Steven Grady <[email protected]> for ! 41: writing this, and for wasting a lot of his valuable time dealing ! 42: with the can-o'-worms that is the real inews. ! 43: ! 44: BUGS: ! 45: ! 46: This version of inews doesn't handle real inews options. As ! 47: a result, some posting programs (notably the Gnumacs front end) will ! 48: fail if they use this program. In the interests of simplicity, I ! 49: have no plans for modifying mini-inews to handle real-inews options. ! 50: However, if you'd like to send me diffs I'll be more than happy to ! 51: install them for the next release.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.