Home » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199508.adf » !Internet » StarterPak/!Newsbase/Docs/ka9q

StarterPak/!Newsbase/Docs/ka9q

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199508.adf » !Internet
Filename: StarterPak/!Newsbase/Docs/ka9q
Read OK:
File size: 0675 bytes
Load address: 0000
Exec address: 0000
File contents
These are the current programs used to interface to ka9q.

addgroup [-old] -n <groupname>
 takes one parameter, to add the given groupname to the primary newsfeed.
 (interpreted as the largest xxxGroup file in !TCPIPUser)

delgroup [-old] -n <groupname>
 takes one parameter, to remove all matching groups from all newsfeeds.

For both addgroup and delgroup, the -old parameter makes them produce a
xxxGroup file suited for older versions of !TCPIP (2.01 and earlier), with
many groups per line. Without the -old switch, new-style xxxGroup files are
produced (one group per line).

detect
 returns 0 if the transport is detected on the system, otherwise nonzero.

mkgroups
 builds a list of groupname patterns from !TCPIP xxxGroup files, and
 creates a file cobtaining one entry per line, in
 !NewsDir.newsbase.config.ka9q.groups

postfetch
 called when a news debatch finishes - trims the xxxHist files and updates
 the Newsbase newgroups files.

sendmail -f <file> -u <user> [-nolocal]
 Queues outgoing mail. Local mail is sent back to Newsbase (ie mail without
 a destination hostname, or with the local hostname) - to disable this, add
 the "-nolocal" switch.

sendnews -f <file> -u <user>
 Queues outgoing news

sethost
 places hostname into <NewsBase$ReturnInfo>

setremote
 places remote hostname into <NewsBase$ReturnInfo> (returns smtp gateway for
 !TCPIP).

showqueue
 lists outgoing mail & news queues

startup
 transport-layer startup file. Defines system vars & anything else needed.

status
 returns current transport status (ie, online/offline).

setup
 no defined action or parameters - may be a general routine for setup of
 transport.
00000000  54 68 65 73 65 20 61 72  65 20 74 68 65 20 63 75  |These are the cu|
00000010  72 72 65 6e 74 20 70 72  6f 67 72 61 6d 73 20 75  |rrent programs u|
00000020  73 65 64 20 74 6f 20 69  6e 74 65 72 66 61 63 65  |sed to interface|
00000030  20 74 6f 20 6b 61 39 71  2e 0a 0a 61 64 64 67 72  | to ka9q...addgr|
00000040  6f 75 70 20 5b 2d 6f 6c  64 5d 20 2d 6e 20 3c 67  |oup [-old] -n <g|
00000050  72 6f 75 70 6e 61 6d 65  3e 0a 20 74 61 6b 65 73  |roupname>. takes|
00000060  20 6f 6e 65 20 70 61 72  61 6d 65 74 65 72 2c 20  | one parameter, |
00000070  74 6f 20 61 64 64 20 74  68 65 20 67 69 76 65 6e  |to add the given|
00000080  20 67 72 6f 75 70 6e 61  6d 65 20 74 6f 20 74 68  | groupname to th|
00000090  65 20 70 72 69 6d 61 72  79 20 6e 65 77 73 66 65  |e primary newsfe|
000000a0  65 64 2e 0a 20 28 69 6e  74 65 72 70 72 65 74 65  |ed.. (interprete|
000000b0  64 20 61 73 20 74 68 65  20 6c 61 72 67 65 73 74  |d as the largest|
000000c0  20 78 78 78 47 72 6f 75  70 20 66 69 6c 65 20 69  | xxxGroup file i|
000000d0  6e 20 21 54 43 50 49 50  55 73 65 72 29 0a 0a 64  |n !TCPIPUser)..d|
000000e0  65 6c 67 72 6f 75 70 20  5b 2d 6f 6c 64 5d 20 2d  |elgroup [-old] -|
000000f0  6e 20 3c 67 72 6f 75 70  6e 61 6d 65 3e 0a 20 74  |n <groupname>. t|
00000100  61 6b 65 73 20 6f 6e 65  20 70 61 72 61 6d 65 74  |akes one paramet|
00000110  65 72 2c 20 74 6f 20 72  65 6d 6f 76 65 20 61 6c  |er, to remove al|
00000120  6c 20 6d 61 74 63 68 69  6e 67 20 67 72 6f 75 70  |l matching group|
00000130  73 20 66 72 6f 6d 20 61  6c 6c 20 6e 65 77 73 66  |s from all newsf|
00000140  65 65 64 73 2e 0a 0a 46  6f 72 20 62 6f 74 68 20  |eeds...For both |
00000150  61 64 64 67 72 6f 75 70  20 61 6e 64 20 64 65 6c  |addgroup and del|
00000160  67 72 6f 75 70 2c 20 74  68 65 20 2d 6f 6c 64 20  |group, the -old |
00000170  70 61 72 61 6d 65 74 65  72 20 6d 61 6b 65 73 20  |parameter makes |
00000180  74 68 65 6d 20 70 72 6f  64 75 63 65 20 61 0a 78  |them produce a.x|
00000190  78 78 47 72 6f 75 70 20  66 69 6c 65 20 73 75 69  |xxGroup file sui|
000001a0  74 65 64 20 66 6f 72 20  6f 6c 64 65 72 20 76 65  |ted for older ve|
000001b0  72 73 69 6f 6e 73 20 6f  66 20 21 54 43 50 49 50  |rsions of !TCPIP|
000001c0  20 28 32 2e 30 31 20 61  6e 64 20 65 61 72 6c 69  | (2.01 and earli|
000001d0  65 72 29 2c 20 77 69 74  68 0a 6d 61 6e 79 20 67  |er), with.many g|
000001e0  72 6f 75 70 73 20 70 65  72 20 6c 69 6e 65 2e 20  |roups per line. |
000001f0  57 69 74 68 6f 75 74 20  74 68 65 20 2d 6f 6c 64  |Without the -old|
00000200  20 73 77 69 74 63 68 2c  20 6e 65 77 2d 73 74 79  | switch, new-sty|
00000210  6c 65 20 78 78 78 47 72  6f 75 70 20 66 69 6c 65  |le xxxGroup file|
00000220  73 20 61 72 65 0a 70 72  6f 64 75 63 65 64 20 28  |s are.produced (|
00000230  6f 6e 65 20 67 72 6f 75  70 20 70 65 72 20 6c 69  |one group per li|
00000240  6e 65 29 2e 0a 0a 64 65  74 65 63 74 0a 20 72 65  |ne)...detect. re|
00000250  74 75 72 6e 73 20 30 20  69 66 20 74 68 65 20 74  |turns 0 if the t|
00000260  72 61 6e 73 70 6f 72 74  20 69 73 20 64 65 74 65  |ransport is dete|
00000270  63 74 65 64 20 6f 6e 20  74 68 65 20 73 79 73 74  |cted on the syst|
00000280  65 6d 2c 20 6f 74 68 65  72 77 69 73 65 20 6e 6f  |em, otherwise no|
00000290  6e 7a 65 72 6f 2e 0a 0a  6d 6b 67 72 6f 75 70 73  |nzero...mkgroups|
000002a0  0a 20 62 75 69 6c 64 73  20 61 20 6c 69 73 74 20  |. builds a list |
000002b0  6f 66 20 67 72 6f 75 70  6e 61 6d 65 20 70 61 74  |of groupname pat|
000002c0  74 65 72 6e 73 20 66 72  6f 6d 20 21 54 43 50 49  |terns from !TCPI|
000002d0  50 20 78 78 78 47 72 6f  75 70 20 66 69 6c 65 73  |P xxxGroup files|
000002e0  2c 20 61 6e 64 0a 20 63  72 65 61 74 65 73 20 61  |, and. creates a|
000002f0  20 66 69 6c 65 20 63 6f  62 74 61 69 6e 69 6e 67  | file cobtaining|
00000300  20 6f 6e 65 20 65 6e 74  72 79 20 70 65 72 20 6c  | one entry per l|
00000310  69 6e 65 2c 20 69 6e 0a  20 21 4e 65 77 73 44 69  |ine, in. !NewsDi|
00000320  72 2e 6e 65 77 73 62 61  73 65 2e 63 6f 6e 66 69  |r.newsbase.confi|
00000330  67 2e 6b 61 39 71 2e 67  72 6f 75 70 73 0a 0a 70  |g.ka9q.groups..p|
00000340  6f 73 74 66 65 74 63 68  0a 20 63 61 6c 6c 65 64  |ostfetch. called|
00000350  20 77 68 65 6e 20 61 20  6e 65 77 73 20 64 65 62  | when a news deb|
00000360  61 74 63 68 20 66 69 6e  69 73 68 65 73 20 2d 20  |atch finishes - |
00000370  74 72 69 6d 73 20 74 68  65 20 78 78 78 48 69 73  |trims the xxxHis|
00000380  74 20 66 69 6c 65 73 20  61 6e 64 20 75 70 64 61  |t files and upda|
00000390  74 65 73 0a 20 74 68 65  20 4e 65 77 73 62 61 73  |tes. the Newsbas|
000003a0  65 20 6e 65 77 67 72 6f  75 70 73 20 66 69 6c 65  |e newgroups file|
000003b0  73 2e 0a 0a 73 65 6e 64  6d 61 69 6c 20 2d 66 20  |s...sendmail -f |
000003c0  3c 66 69 6c 65 3e 20 2d  75 20 3c 75 73 65 72 3e  |<file> -u <user>|
000003d0  20 5b 2d 6e 6f 6c 6f 63  61 6c 5d 0a 20 51 75 65  | [-nolocal]. Que|
000003e0  75 65 73 20 6f 75 74 67  6f 69 6e 67 20 6d 61 69  |ues outgoing mai|
000003f0  6c 2e 20 4c 6f 63 61 6c  20 6d 61 69 6c 20 69 73  |l. Local mail is|
00000400  20 73 65 6e 74 20 62 61  63 6b 20 74 6f 20 4e 65  | sent back to Ne|
00000410  77 73 62 61 73 65 20 28  69 65 20 6d 61 69 6c 20  |wsbase (ie mail |
00000420  77 69 74 68 6f 75 74 0a  20 61 20 64 65 73 74 69  |without. a desti|
00000430  6e 61 74 69 6f 6e 20 68  6f 73 74 6e 61 6d 65 2c  |nation hostname,|
00000440  20 6f 72 20 77 69 74 68  20 74 68 65 20 6c 6f 63  | or with the loc|
00000450  61 6c 20 68 6f 73 74 6e  61 6d 65 29 20 2d 20 74  |al hostname) - t|
00000460  6f 20 64 69 73 61 62 6c  65 20 74 68 69 73 2c 20  |o disable this, |
00000470  61 64 64 0a 20 74 68 65  20 22 2d 6e 6f 6c 6f 63  |add. the "-noloc|
00000480  61 6c 22 20 73 77 69 74  63 68 2e 0a 0a 73 65 6e  |al" switch...sen|
00000490  64 6e 65 77 73 20 2d 66  20 3c 66 69 6c 65 3e 20  |dnews -f <file> |
000004a0  2d 75 20 3c 75 73 65 72  3e 0a 20 51 75 65 75 65  |-u <user>. Queue|
000004b0  73 20 6f 75 74 67 6f 69  6e 67 20 6e 65 77 73 0a  |s outgoing news.|
000004c0  0a 73 65 74 68 6f 73 74  0a 20 70 6c 61 63 65 73  |.sethost. places|
000004d0  20 68 6f 73 74 6e 61 6d  65 20 69 6e 74 6f 20 3c  | hostname into <|
000004e0  4e 65 77 73 42 61 73 65  24 52 65 74 75 72 6e 49  |NewsBase$ReturnI|
000004f0  6e 66 6f 3e 0a 0a 73 65  74 72 65 6d 6f 74 65 0a  |nfo>..setremote.|
00000500  20 70 6c 61 63 65 73 20  72 65 6d 6f 74 65 20 68  | places remote h|
00000510  6f 73 74 6e 61 6d 65 20  69 6e 74 6f 20 3c 4e 65  |ostname into <Ne|
00000520  77 73 42 61 73 65 24 52  65 74 75 72 6e 49 6e 66  |wsBase$ReturnInf|
00000530  6f 3e 20 28 72 65 74 75  72 6e 73 20 73 6d 74 70  |o> (returns smtp|
00000540  20 67 61 74 65 77 61 79  20 66 6f 72 0a 20 21 54  | gateway for. !T|
00000550  43 50 49 50 29 2e 0a 0a  73 68 6f 77 71 75 65 75  |CPIP)...showqueu|
00000560  65 0a 20 6c 69 73 74 73  20 6f 75 74 67 6f 69 6e  |e. lists outgoin|
00000570  67 20 6d 61 69 6c 20 26  20 6e 65 77 73 20 71 75  |g mail & news qu|
00000580  65 75 65 73 0a 0a 73 74  61 72 74 75 70 0a 20 74  |eues..startup. t|
00000590  72 61 6e 73 70 6f 72 74  2d 6c 61 79 65 72 20 73  |ransport-layer s|
000005a0  74 61 72 74 75 70 20 66  69 6c 65 2e 20 44 65 66  |tartup file. Def|
000005b0  69 6e 65 73 20 73 79 73  74 65 6d 20 76 61 72 73  |ines system vars|
000005c0  20 26 20 61 6e 79 74 68  69 6e 67 20 65 6c 73 65  | & anything else|
000005d0  20 6e 65 65 64 65 64 2e  0a 0a 73 74 61 74 75 73  | needed...status|
000005e0  0a 20 72 65 74 75 72 6e  73 20 63 75 72 72 65 6e  |. returns curren|
000005f0  74 20 74 72 61 6e 73 70  6f 72 74 20 73 74 61 74  |t transport stat|
00000600  75 73 20 28 69 65 2c 20  6f 6e 6c 69 6e 65 2f 6f  |us (ie, online/o|
00000610  66 66 6c 69 6e 65 29 2e  0a 0a 73 65 74 75 70 0a  |ffline)...setup.|
00000620  20 6e 6f 20 64 65 66 69  6e 65 64 20 61 63 74 69  | no defined acti|
00000630  6f 6e 20 6f 72 20 70 61  72 61 6d 65 74 65 72 73  |on or parameters|
00000640  20 2d 20 6d 61 79 20 62  65 20 61 20 67 65 6e 65  | - may be a gene|
00000650  72 61 6c 20 72 6f 75 74  69 6e 65 20 66 6f 72 20  |ral routine for |
00000660  73 65 74 75 70 20 6f 66  0a 20 74 72 61 6e 73 70  |setup of. transp|
00000670  6f 72 74 2e 0a                                    |ort..|
00000675