home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1993-07-05 | 12.4 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
1%
| dexvert
| Combustion 2 Particle Library (other/combustion2ParticleLibrary)
| ext
| Unsupported |
100%
| file
| Emacs/XEmacs v19 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
| |
100%
| xdgMime
| text/x-emacs-lisp
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 69 6d 62 40 67 65 |piled by| jimb@ge|
|00000020| 65 63 68 2e 67 6e 75 2e | 61 69 2e 6d 69 74 2e 65 |ech.gnu.|ai.mit.e|
|00000030| 64 75 20 6f 6e 20 4d 6f | 6e 20 4a 75 6c 20 20 35 |du on Mo|n Jul 5|
|00000040| 20 32 33 3a 34 33 3a 30 | 35 20 31 39 39 33 0a 3b | 23:43:0|5 1993.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 2f 67 64 |;; from |file /gd|
|00000060| 2f 67 6e 75 2f 65 6d 61 | 63 73 2f 31 39 2e 30 2f |/gnu/ema|cs/19.0/|
|00000070| 6c 69 73 70 2f 6e 6e 74 | 70 2e 65 6c 0a 3b 3b 3b |lisp/nnt|p.el.;;;|
|00000080| 20 65 6d 61 63 73 20 76 | 65 72 73 69 6f 6e 20 31 | emacs v|ersion 1|
|00000090| 39 2e 31 35 2e 31 36 2e | 0a 3b 3b 3b 20 62 79 74 |9.15.16.|.;;; byt|
|000000a0| 65 63 6f 6d 70 20 76 65 | 72 73 69 6f 6e 20 46 53 |ecomp ve|rsion FS|
|000000b0| 46 20 32 2e 31 30 0a 3b | 3b 3b 20 6f 70 74 69 6d |F 2.10.;|;; optim|
|000000c0| 69 7a 61 74 69 6f 6e 20 | 69 73 20 6f 6e 2e 0a 3b |ization |is on..;|
|000000d0| 3b 3b 20 74 68 69 73 20 | 66 69 6c 65 20 75 73 65 |;; this |file use|
|000000e0| 73 20 6f 70 63 6f 64 65 | 73 20 77 68 69 63 68 20 |s opcode|s which |
|000000f0| 64 6f 20 6e 6f 74 20 65 | 78 69 73 74 20 69 6e 20 |do not e|xist in |
|00000100| 45 6d 61 63 73 20 31 38 | 2e 0a 0a 28 69 66 20 28 |Emacs 18|...(if (|
|00000110| 61 6e 64 20 28 62 6f 75 | 6e 64 70 20 27 65 6d 61 |and (bou|ndp 'ema|
|00000120| 63 73 2d 76 65 72 73 69 | 6f 6e 29 0a 09 20 28 6f |cs-versi|on).. (o|
|00000130| 72 20 28 61 6e 64 20 28 | 62 6f 75 6e 64 70 20 27 |r (and (|boundp '|
|00000140| 65 70 6f 63 68 3a 3a 76 | 65 72 73 69 6f 6e 29 20 |epoch::v|ersion) |
|00000150| 65 70 6f 63 68 3a 3a 76 | 65 72 73 69 6f 6e 29 0a |epoch::v|ersion).|
|00000160| 09 20 20 20 20 20 28 73 | 74 72 69 6e 67 2d 6c 65 |. (s|tring-le|
|00000170| 73 73 70 20 65 6d 61 63 | 73 2d 76 65 72 73 69 6f |ssp emac|s-versio|
|00000180| 6e 20 22 31 39 22 29 29 | 29 0a 20 20 20 20 28 65 |n "19"))|). (e|
|00000190| 72 72 6f 72 20 22 54 68 | 69 73 20 66 69 6c 65 20 |rror "Th|is file |
|000001a0| 77 61 73 20 63 6f 6d 70 | 69 6c 65 64 20 66 6f 72 |was comp|iled for|
|000001b0| 20 45 6d 61 63 73 20 31 | 39 22 29 29 0a 0a 28 64 | Emacs 1|9"))..(d|
|000001c0| 65 66 76 61 72 20 6e 6e | 74 70 2d 73 65 72 76 65 |efvar nn|tp-serve|
|000001d0| 72 2d 68 6f 6f 6b 20 6e | 69 6c 20 22 5c 0a 2a 48 |r-hook n|il "\.*H|
|000001e0| 6f 6f 6b 73 20 66 6f 72 | 20 74 68 65 20 4e 4e 54 |ooks for| the NNT|
|000001f0| 50 20 73 65 72 76 65 72 | 2e 0a 49 66 20 74 68 65 |P server|..If the|
|00000200| 20 6b 61 6e 6a 69 20 63 | 6f 64 65 20 6f 66 20 74 | kanji c|ode of t|
|00000210| 68 65 20 4e 4e 54 50 20 | 73 65 72 76 65 72 20 69 |he NNTP |server i|
|00000220| 73 20 64 69 66 66 65 72 | 65 6e 74 20 66 72 6f 6d |s differ|ent from|
|00000230| 20 74 68 65 20 6c 6f 63 | 61 6c 20 6b 61 6e 6a 69 | the loc|al kanji|
|00000240| 0a 63 6f 64 65 2c 20 74 | 68 65 20 63 6f 72 72 65 |.code, t|he corre|
|00000250| 63 74 20 6b 61 6e 6a 69 | 20 63 6f 64 65 20 6f 66 |ct kanji| code of|
|00000260| 20 74 68 65 20 62 75 66 | 66 65 72 20 61 73 73 6f | the buf|fer asso|
|00000270| 63 69 61 74 65 64 20 77 | 69 74 68 20 74 68 65 20 |ciated w|ith the |
|00000280| 4e 4e 54 50 0a 73 65 72 | 76 65 72 20 6d 75 73 74 |NNTP.ser|ver must|
|00000290| 20 62 65 20 73 70 65 63 | 69 66 69 65 64 20 61 73 | be spec|ified as|
|000002a0| 20 66 6f 6c 6c 6f 77 73 | 3a 0a 0a 28 73 65 74 71 | follows|:..(setq|
|000002b0| 20 6e 6e 74 70 2d 73 65 | 72 76 65 72 2d 68 6f 6f | nntp-se|rver-hoo|
|000002c0| 6b 0a 20 20 20 20 20 20 | 28 66 75 6e 63 74 69 6f |k. |(functio|
|000002d0| 6e 0a 20 20 20 20 20 20 | 20 28 6c 61 6d 62 64 61 |n. | (lambda|
|000002e0| 20 28 29 0a 09 20 3b 3b | 20 53 65 72 76 65 72 27 | ().. ;;| Server'|
|000002f0| 73 20 4b 61 6e 6a 69 20 | 63 6f 64 65 20 69 73 20 |s Kanji |code is |
|00000300| 45 55 43 20 28 4e 45 6d | 61 63 73 20 68 61 63 6b |EUC (NEm|acs hack|
|00000310| 29 2e 0a 09 20 28 6d 61 | 6b 65 2d 6c 6f 63 61 6c |)... (ma|ke-local|
|00000320| 2d 76 61 72 69 61 62 6c | 65 20 27 6b 61 6e 6a 69 |-variabl|e 'kanji|
|00000330| 2d 66 69 6c 65 69 6f 2d | 63 6f 64 65 29 0a 09 20 |-fileio-|code).. |
|00000340| 28 73 65 74 71 20 6b 61 | 6e 6a 69 2d 66 69 6c 65 |(setq ka|nji-file|
|00000350| 69 6f 2d 63 6f 64 65 20 | 30 29 29 29 29 0a 0a 49 |io-code |0))))..I|
|00000360| 66 20 79 6f 75 27 64 20 | 6c 69 6b 65 20 74 6f 20 |f you'd |like to |
|00000370| 63 68 61 6e 67 65 20 73 | 6f 6d 65 74 68 69 6e 67 |change s|omething|
|00000380| 20 64 65 70 65 6e 64 69 | 6e 67 20 6f 6e 20 74 68 | dependi|ng on th|
|00000390| 65 20 73 65 72 76 65 72 | 20 69 6e 20 74 68 69 73 |e server| in this|
|000003a0| 0a 68 6f 6f 6b 2c 20 75 | 73 65 20 74 68 65 20 76 |.hook, u|se the v|
|000003b0| 61 72 69 61 62 6c 65 20 | 60 6e 6e 74 70 2d 73 65 |ariable |`nntp-se|
|000003c0| 72 76 65 72 2d 6e 61 6d | 65 27 2e 22 29 0a 28 64 |rver-nam|e'.").(d|
|000003d0| 65 66 76 61 72 20 6e 6e | 74 70 2d 6c 61 72 67 65 |efvar nn|tp-large|
|000003e0| 2d 6e 65 77 73 67 72 6f | 75 70 20 35 30 20 22 5c |-newsgro|up 50 "\|
|000003f0| 0a 2a 54 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |.*The nu|mber of |
|00000400| 74 68 65 20 61 72 74 69 | 63 6c 65 73 20 77 68 69 |the arti|cles whi|
|00000410| 63 68 20 69 6e 64 69 63 | 61 74 65 73 20 61 20 6c |ch indic|ates a l|
|00000420| 61 72 67 65 20 6e 65 77 | 73 67 72 6f 75 70 2e 0a |arge new|sgroup..|
|00000430| 49 66 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |If the n|umber of|
|00000440| 20 74 68 65 20 61 72 74 | 69 63 6c 65 73 20 69 73 | the art|icles is|
|00000450| 20 67 72 65 61 74 65 72 | 20 74 68 61 6e 20 74 68 | greater| than th|
|00000460| 65 20 76 61 6c 75 65 2c | 20 76 65 72 62 6f 73 65 |e value,| verbose|
|00000470| 0a 6d 65 73 73 61 67 65 | 73 20 77 69 6c 6c 20 62 |.message|s will b|
|00000480| 65 20 73 68 6f 77 6e 20 | 74 6f 20 69 6e 64 69 63 |e shown |to indic|
|00000490| 61 74 65 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |ate the |current |
|000004a0| 73 74 61 74 75 73 2e 22 | 29 0a 28 64 65 66 76 61 |status."|).(defva|
|000004b0| 72 20 6e 6e 74 70 2d 62 | 75 67 67 79 2d 73 65 6c |r nntp-b|uggy-sel|
|000004c0| 65 63 74 20 28 6d 65 6d | 71 20 73 79 73 74 65 6d |ect (mem|q system|
|000004d0| 2d 74 79 70 65 20 28 71 | 75 6f 74 65 20 28 75 73 |-type (q|uote (us|
|000004e0| 67 2d 75 6e 69 78 2d 76 | 20 66 75 6a 69 74 73 75 |g-unix-v| fujitsu|
|000004f0| 2d 75 74 73 29 29 29 20 | 22 5c 0a 2a 54 20 69 66 |-uts))) |"\.*T if|
|00000500| 20 79 6f 75 72 20 73 65 | 6c 65 63 74 20 72 6f 75 | your se|lect rou|
|00000510| 74 69 6e 65 20 69 73 20 | 62 75 67 67 79 2e 0a 49 |tine is |buggy..I|
|00000520| 66 20 74 68 65 20 73 65 | 6c 65 63 74 20 72 6f 75 |f the se|lect rou|
|00000530| 74 69 6e 65 20 73 69 67 | 6e 61 6c 73 20 65 72 72 |tine sig|nals err|
|00000540| 6f 72 20 6f 72 20 66 61 | 6c 6c 20 69 6e 74 6f 20 |or or fa|ll into |
|00000550| 69 6e 66 69 6e 69 74 65 | 20 6c 6f 6f 70 20 77 68 |infinite| loop wh|
|00000560| 69 6c 65 0a 77 61 69 74 | 69 6e 67 20 66 6f 72 20 |ile.wait|ing for |
|00000570| 74 68 65 20 73 65 72 76 | 65 72 20 72 65 73 70 6f |the serv|er respo|
|00000580| 6e 73 65 2c 20 74 68 65 | 20 76 61 72 69 61 62 6c |nse, the| variabl|
|00000590| 65 20 6d 75 73 74 20 62 | 65 20 73 65 74 20 74 6f |e must b|e set to|
|000005a0| 20 74 2e 20 20 49 6e 0a | 63 61 73 65 20 6f 66 20 | t. In.|case of |
|000005b0| 46 75 6a 69 74 73 75 20 | 55 54 53 2c 20 69 74 20 |Fujitsu |UTS, it |
|000005c0| 69 73 20 73 65 74 20 74 | 6f 20 54 20 73 69 6e 63 |is set t|o T sinc|
|000005d0| 65 20 60 61 63 63 65 70 | 74 2d 70 72 6f 63 65 73 |e `accep|t-proces|
|000005e0| 73 2d 6f 75 74 70 75 74 | 27 0a 64 6f 65 73 6e 27 |s-output|'.doesn'|
|000005f0| 74 20 77 6f 72 6b 20 70 | 72 6f 70 65 72 6c 79 2e |t work p|roperly.|
|00000600| 22 29 0a 28 64 65 66 76 | 61 72 20 6e 6e 74 70 2d |").(defv|ar nntp-|
|00000610| 6d 61 78 69 6d 75 6d 2d | 72 65 71 75 65 73 74 20 |maximum-|request |
|00000620| 34 30 30 20 22 5c 0a 2a | 54 68 65 20 6d 61 78 69 |400 "\.*|The maxi|
|00000630| 6d 75 6d 20 6e 75 6d 62 | 65 72 20 6f 66 20 74 68 |mum numb|er of th|
|00000640| 65 20 72 65 71 75 65 73 | 74 73 20 73 65 6e 74 20 |e reques|ts sent |
|00000650| 74 6f 20 74 68 65 20 4e | 4e 54 50 20 73 65 72 76 |to the N|NTP serv|
|00000660| 65 72 20 61 74 20 6f 6e | 65 20 74 69 6d 65 2e 0a |er at on|e time..|
|00000670| 49 66 20 45 6d 61 63 73 | 20 68 61 6e 67 73 20 75 |If Emacs| hangs u|
|00000680| 70 20 77 68 69 6c 65 20 | 72 65 74 72 69 65 76 69 |p while |retrievi|
|00000690| 6e 67 20 68 65 61 64 65 | 72 73 2c 20 73 65 74 20 |ng heade|rs, set |
|000006a0| 74 68 65 20 76 61 72 69 | 61 62 6c 65 20 74 6f 20 |the vari|able to |
|000006b0| 61 0a 6c 6f 77 65 72 20 | 76 61 6c 75 65 2e 22 29 |a.lower |value.")|
|000006c0| 0a 28 64 65 66 76 61 72 | 20 6e 6e 74 70 2d 64 65 |.(defvar| nntp-de|
|000006d0| 62 75 67 2d 72 65 61 64 | 20 31 30 30 30 30 20 22 |bug-read| 10000 "|
|000006e0| 5c 0a 2a 44 69 73 70 6c | 61 79 20 27 2e 2e 2e 27 |\.*Displ|ay '...'|
|000006f0| 20 65 76 65 72 79 20 31 | 30 4b 62 79 74 65 73 20 | every 1|0Kbytes |
|00000700| 6f 66 20 61 20 6d 65 73 | 73 61 67 65 20 62 65 69 |of a mes|sage bei|
|00000710| 6e 67 20 72 65 63 65 69 | 76 65 64 20 69 66 20 69 |ng recei|ved if i|
|00000720| 74 20 69 73 20 6e 6f 6e | 2d 6e 69 6c 2e 0a 49 66 |t is non|-nil..If|
|00000730| 20 69 74 20 69 73 20 61 | 20 6e 75 6d 62 65 72 2c | it is a| number,|
|00000740| 20 64 6f 74 73 20 61 72 | 65 20 64 69 73 70 6c 61 | dots ar|e displa|
|00000750| 79 65 64 20 70 65 72 20 | 74 68 65 20 6e 75 6d 62 |yed per |the numb|
|00000760| 65 72 2e 22 29 0a 28 64 | 65 66 63 6f 6e 73 74 20 |er.").(d|efconst |
|00000770| 6e 6e 74 70 2d 76 65 72 | 73 69 6f 6e 20 22 4e 4e |nntp-ver|sion "NN|
|00000780| 54 50 20 33 2e 31 32 22 | 20 22 5c 0a 56 65 72 73 |TP 3.12"| "\.Vers|
|00000790| 69 6f 6e 20 6e 75 6d 62 | 65 72 73 20 6f 66 20 74 |ion numb|ers of t|
|000007a0| 68 69 73 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 4e |his vers|ion of N|
|000007b0| 4e 54 50 2e 22 29 0a 28 | 64 65 66 76 61 72 20 6e |NTP.").(|defvar n|
|000007c0| 6e 74 70 2d 73 65 72 76 | 65 72 2d 6e 61 6d 65 20 |ntp-serv|er-name |
|000007d0| 6e 69 6c 20 22 5c 0a 54 | 68 65 20 6e 61 6d 65 20 |nil "\.T|he name |
|000007e0| 6f 66 20 74 68 65 20 68 | 6f 73 74 20 72 75 6e 6e |of the h|ost runn|
|000007f0| 69 6e 67 20 4e 4e 54 50 | 20 73 65 72 76 65 72 2e |ing NNTP| server.|
|00000800| 22 29 0a 28 64 65 66 76 | 61 72 20 6e 6e 74 70 2d |").(defv|ar nntp-|
|00000810| 73 65 72 76 65 72 2d 62 | 75 66 66 65 72 20 6e 69 |server-b|uffer ni|
|00000820| 6c 20 22 5c 0a 42 75 66 | 66 65 72 20 61 73 73 6f |l "\.Buf|fer asso|
|00000830| 63 69 61 74 65 64 20 77 | 69 74 68 20 4e 4e 54 50 |ciated w|ith NNTP|
|00000840| 20 73 65 72 76 65 72 20 | 70 72 6f 63 65 73 73 2e | server |process.|
|00000850| 22 29 0a 28 64 65 66 76 | 61 72 20 6e 6e 74 70 2d |").(defv|ar nntp-|
|00000860| 73 65 72 76 65 72 2d 70 | 72 6f 63 65 73 73 20 6e |server-p|rocess n|
|00000870| 69 6c 20 22 5c 0a 54 68 | 65 20 4e 4e 54 50 20 73 |il "\.Th|e NNTP s|
|00000880| 65 72 76 65 72 20 70 72 | 6f 63 65 73 73 2e 0a 59 |erver pr|ocess..Y|
|00000890| 6f 75 27 64 20 62 65 74 | 74 65 72 20 6e 6f 74 20 |ou'd bet|ter not |
|000008a0| 75 73 65 20 74 68 69 73 | 20 76 61 72 69 61 62 6c |use this| variabl|
|000008b0| 65 20 69 6e 20 4e 4e 54 | 50 20 66 72 6f 6e 74 2d |e in NNT|P front-|
|000008c0| 65 6e 64 20 70 72 6f 67 | 72 61 6d 20 62 75 74 0a |end prog|ram but.|
|000008d0| 69 6e 73 74 65 61 64 20 | 75 73 65 20 60 6e 6e 74 |instead |use `nnt|
|000008e0| 70 2d 73 65 72 76 65 72 | 2d 62 75 66 66 65 72 27 |p-server|-buffer'|
|000008f0| 2e 22 29 0a 28 64 65 66 | 76 61 72 20 6e 6e 74 70 |.").(def|var nntp|
|00000900| 2d 73 74 61 74 75 73 2d | 73 74 72 69 6e 67 20 6e |-status-|string n|
|00000910| 69 6c 20 22 5c 0a 53 61 | 76 65 20 74 68 65 20 73 |il "\.Sa|ve the s|
|00000920| 65 72 76 65 72 20 72 65 | 73 70 6f 6e 73 65 20 6d |erver re|sponse m|
|00000930| 65 73 73 61 67 65 2e 0a | 59 6f 75 27 64 20 62 65 |essage..|You'd be|
|00000940| 74 74 65 72 20 6e 6f 74 | 20 75 73 65 20 74 68 69 |tter not| use thi|
|00000950| 73 20 76 61 72 69 61 62 | 6c 65 20 69 6e 20 4e 4e |s variab|le in NN|
|00000960| 54 50 20 66 72 6f 6e 74 | 2d 65 6e 64 20 70 72 6f |TP front|-end pro|
|00000970| 67 72 61 6d 20 62 75 74 | 0a 69 6e 73 74 65 61 64 |gram but|.instead|
|00000980| 20 63 61 6c 6c 20 66 75 | 6e 63 74 69 6f 6e 20 60 | call fu|nction `|
|00000990| 6e 6e 74 70 2d 73 74 61 | 74 75 73 2d 6d 65 73 73 |nntp-sta|tus-mess|
|000009a0| 61 67 65 27 20 74 6f 20 | 67 65 74 20 73 74 61 74 |age' to |get stat|
|000009b0| 75 73 20 6d 65 73 73 61 | 67 65 2e 22 29 0a 28 64 |us messa|ge.").(d|
|000009c0| 65 66 61 6c 69 61 73 20 | 27 6e 6e 74 70 2d 68 65 |efalias |'nntp-he|
|000009d0| 61 64 65 72 2d 6e 75 6d | 62 65 72 20 27 28 6d 61 |ader-num|ber '(ma|
|000009e0| 63 72 6f 20 2e 20 23 5b | 28 68 65 61 64 65 72 29 |cro . #[|(header)|
|000009f0| 20 22 c0 09 c2 45 87 22 | 20 5b 61 72 65 66 20 68 | "...E."| [aref h|
|00000a00| 65 61 64 65 72 20 30 5d | 20 33 20 22 5c 0a 52 65 |eader 0]| 3 "\.Re|
|00000a10| 74 75 72 6e 20 61 72 74 | 69 63 6c 65 20 6e 75 6d |turn art|icle num|
|00000a20| 62 65 72 20 69 6e 20 48 | 45 41 44 45 52 2e 22 5d |ber in H|EADER."]|
|00000a30| 29 29 0a 28 64 65 66 61 | 6c 69 61 73 20 27 6e 6e |)).(defa|lias 'nn|
|00000a40| 74 70 2d 73 65 74 2d 68 | 65 61 64 65 72 2d 6e 75 |tp-set-h|eader-nu|
|00000a50| 6d 62 65 72 20 27 28 6d | 61 63 72 6f 20 2e 20 23 |mber '(m|acro . #|
|00000a60| 5b 28 68 65 61 64 65 72 | 20 6e 75 6d 62 65 72 29 |[(header| number)|
|00000a70| 20 22 c0 09 c2 0b 46 87 | 22 20 5b 61 73 65 74 20 | "....F.|" [aset |
|00000a80| 68 65 61 64 65 72 20 30 | 20 6e 75 6d 62 65 72 5d |header 0| number]|
|00000a90| 20 34 20 22 5c 0a 53 65 | 74 20 61 72 74 69 63 6c | 4 "\.Se|t articl|
|00000aa0| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 48 45 41 44 |e number| of HEAD|
|00000ab0| 45 52 20 74 6f 20 4e 55 | 4d 42 45 52 2e 22 5d 29 |ER to NU|MBER."])|
|00000ac0| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 6e 6e 74 |).(defal|ias 'nnt|
|00000ad0| 70 2d 68 65 61 64 65 72 | 2d 73 75 62 6a 65 63 74 |p-header|-subject|
|00000ae0| 20 27 28 6d 61 63 72 6f | 20 2e 20 23 5b 28 68 65 | '(macro| . #[(he|
|00000af0| 61 64 65 72 29 20 22 c0 | 09 c2 45 87 22 20 5b 61 |ader) ".|..E." [a|
|00000b00| 72 65 66 20 68 65 61 64 | 65 72 20 31 5d 20 33 20 |ref head|er 1] 3 |
|00000b10| 22 5c 0a 52 65 74 75 72 | 6e 20 73 75 62 6a 65 63 |"\.Retur|n subjec|
|00000b20| 74 20 73 74 72 69 6e 67 | 20 69 6e 20 48 45 41 44 |t string| in HEAD|
|00000b30| 45 52 2e 22 5d 29 29 0a | 28 64 65 66 61 6c 69 61 |ER."])).|(defalia|
|00000b40| 73 20 27 6e 6e 74 70 2d | 73 65 74 2d 68 65 61 64 |s 'nntp-|set-head|
|00000b50| 65 72 2d 73 75 62 6a 65 | 63 74 20 27 28 6d 61 63 |er-subje|ct '(mac|
|00000b60| 72 6f 20 2e 20 23 5b 28 | 68 65 61 64 65 72 20 73 |ro . #[(|header s|
|00000b70| 75 62 6a 65 63 74 29 20 | 22 c0 09 c2 0b 46 87 22 |ubject) |"....F."|
|00000b80| 20 5b 61 73 65 74 20 68 | 65 61 64 65 72 20 31 20 | [aset h|eader 1 |
|00000b90| 73 75 62 6a 65 63 74 5d | 20 34 20 22 5c 0a 53 65 |subject]| 4 "\.Se|
|00000ba0| 74 20 61 72 74 69 63 6c | 65 20 73 75 62 6a 65 63 |t articl|e subjec|
|00000bb0| 74 20 6f 66 20 48 45 41 | 44 45 52 20 74 6f 20 53 |t of HEA|DER to S|
|00000bc0| 55 42 4a 45 43 54 2e 22 | 5d 29 29 0a 28 64 65 66 |UBJECT."|])).(def|
|00000bd0| 61 6c 69 61 73 20 27 6e | 6e 74 70 2d 68 65 61 64 |alias 'n|ntp-head|
|00000be0| 65 72 2d 66 72 6f 6d 20 | 27 28 6d 61 63 72 6f 20 |er-from |'(macro |
|00000bf0| 2e 20 23 5b 28 68 65 61 | 64 65 72 29 20 22 c0 09 |. #[(hea|der) "..|
|00000c00| c2 45 87 22 20 5b 61 72 | 65 66 20 68 65 61 64 65 |.E." [ar|ef heade|
|00000c10| 72 20 32 5d 20 33 20 22 | 5c 0a 52 65 74 75 72 6e |r 2] 3 "|\.Return|
|00000c20| 20 61 75 74 68 6f 72 20 | 73 74 72 69 6e 67 20 69 | author |string i|
|00000c30| 6e 20 48 45 41 44 45 52 | 2e 22 5d 29 29 0a 28 64 |n HEADER|."])).(d|
|00000c40| 65 66 61 6c 69 61 73 20 | 27 6e 6e 74 70 2d 73 65 |efalias |'nntp-se|
|00000c50| 74 2d 68 65 61 64 65 72 | 2d 66 72 6f 6d 20 27 28 |t-header|-from '(|
|00000c60| 6d 61 63 72 6f 20 2e 20 | 23 5b 28 68 65 61 64 65 |macro . |#[(heade|
|00000c70| 72 20 66 72 6f 6d 29 20 | 22 c0 09 c2 0b 46 87 22 |r from) |"....F."|
|00000c80| 20 5b 61 73 65 74 20 68 | 65 61 64 65 72 20 32 20 | [aset h|eader 2 |
|00000c90| 66 72 6f 6d 5d 20 34 20 | 22 5c 0a 53 65 74 20 61 |from] 4 |"\.Set a|
|00000ca0| 72 74 69 63 6c 65 20 61 | 75 74 68 6f 72 20 6f 66 |rticle a|uthor of|
|00000cb0| 20 48 45 41 44 45 52 20 | 74 6f 20 46 52 4f 4d 2e | HEADER |to FROM.|
|00000cc0| 22 5d 29 29 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |"])).(de|falias '|
|00000cd0| 6e 6e 74 70 2d 68 65 61 | 64 65 72 2d 78 72 65 66 |nntp-hea|der-xref|
|00000ce0| 20 27 28 6d 61 63 72 6f | 20 2e 20 23 5b 28 68 65 | '(macro| . #[(he|
|00000cf0| 61 64 65 72 29 20 22 c0 | 09 c2 45 87 22 20 5b 61 |ader) ".|..E." [a|
|00000d00| 72 65 66 20 68 65 61 64 | 65 72 20 33 5d 20 33 20 |ref head|er 3] 3 |
|00000d10| 22 5c 0a 52 65 74 75 72 | 6e 20 78 72 65 66 20 73 |"\.Retur|n xref s|
|00000d20| 74 72 69 6e 67 20 69 6e | 20 48 45 41 44 45 52 2e |tring in| HEADER.|
|00000d30| 22 5d 29 29 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |"])).(de|falias '|
|00000d40| 6e 6e 74 70 2d 73 65 74 | 2d 68 65 61 64 65 72 2d |nntp-set|-header-|
|00000d50| 78 72 65 66 20 27 28 6d | 61 63 72 6f 20 2e 20 23 |xref '(m|acro . #|
|00000d60| 5b 28 68 65 61 64 65 72 | 20 78 72 65 66 29 20 22 |[(header| xref) "|
|00000d70| c0 09 c2 0b 46 87 22 20 | 5b 61 73 65 74 20 68 65 |....F." |[aset he|
|00000d80| 61 64 65 72 20 33 20 78 | 72 65 66 5d 20 34 20 22 |ader 3 x|ref] 4 "|
|00000d90| 5c 0a 53 65 74 20 61 72 | 74 69 63 6c 65 20 78 72 |\.Set ar|ticle xr|
|00000da0| 65 66 20 6f 66 20 48 45 | 41 44 45 52 20 74 6f 20 |ef of HE|ADER to |
|00000db0| 78 72 65 66 2e 22 5d 29 | 29 0a 28 64 65 66 61 6c |xref."])|).(defal|
|00000dc0| 69 61 73 20 27 6e 6e 74 | 70 2d 68 65 61 64 65 72 |ias 'nnt|p-header|
|00000dd0| 2d 6c 69 6e 65 73 20 27 | 28 6d 61 63 72 6f 20 2e |-lines '|(macro .|
|00000de0| 20 23 5b 28 68 65 61 64 | 65 72 29 20 22 c0 09 c2 | #[(head|er) "...|
|00000df0| 45 87 22 20 5b 61 72 65 | 66 20 68 65 61 64 65 72 |E." [are|f header|
|00000e00| 20 34 5d 20 33 20 22 5c | 0a 52 65 74 75 72 6e 20 | 4] 3 "\|.Return |
|00000e10| 6c 69 6e 65 73 20 69 6e | 20 48 45 41 44 45 52 2e |lines in| HEADER.|
|00000e20| 22 5d 29 29 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |"])).(de|falias '|
|00000e30| 6e 6e 74 70 2d 73 65 74 | 2d 68 65 61 64 65 72 2d |nntp-set|-header-|
|00000e40| 6c 69 6e 65 73 20 27 28 | 6d 61 63 72 6f 20 2e 20 |lines '(|macro . |
|00000e50| 23 5b 28 68 65 61 64 65 | 72 20 6c 69 6e 65 73 29 |#[(heade|r lines)|
|00000e60| 20 22 c0 09 c2 0b 46 87 | 22 20 5b 61 73 65 74 20 | "....F.|" [aset |
|00000e70| 68 65 61 64 65 72 20 34 | 20 6c 69 6e 65 73 5d 20 |header 4| lines] |
|00000e80| 34 20 22 5c 0a 53 65 74 | 20 61 72 74 69 63 6c 65 |4 "\.Set| article|
|00000e90| 20 6c 69 6e 65 73 20 6f | 66 20 48 45 41 44 45 52 | lines o|f HEADER|
|00000ea0| 20 74 6f 20 4c 49 4e 45 | 53 2e 22 5d 29 29 0a 28 | to LINE|S."])).(|
|00000eb0| 64 65 66 61 6c 69 61 73 | 20 27 6e 6e 74 70 2d 68 |defalias| 'nntp-h|
|00000ec0| 65 61 64 65 72 2d 64 61 | 74 65 20 27 28 6d 61 63 |eader-da|te '(mac|
|00000ed0| 72 6f 20 2e 20 23 5b 28 | 68 65 61 64 65 72 29 20 |ro . #[(|header) |
|00000ee0| 22 c0 09 c2 45 87 22 20 | 5b 61 72 65 66 20 68 65 |"...E." |[aref he|
|00000ef0| 61 64 65 72 20 35 5d 20 | 33 20 22 5c 0a 52 65 74 |ader 5] |3 "\.Ret|
|00000f00| 75 72 6e 20 64 61 74 65 | 20 69 6e 20 48 45 41 44 |urn date| in HEAD|
|00000f10| 45 52 2e 22 5d 29 29 0a | 28 64 65 66 61 6c 69 61 |ER."])).|(defalia|
|00000f20| 73 20 27 6e 6e 74 70 2d | 73 65 74 2d 68 65 61 64 |s 'nntp-|set-head|
|00000f30| 65 72 2d 64 61 74 65 20 | 27 28 6d 61 63 72 6f 20 |er-date |'(macro |
|00000f40| 2e 20 23 5b 28 68 65 61 | 64 65 72 20 64 61 74 65 |. #[(hea|der date|
|00000f50| 29 20 22 c0 09 c2 0b 46 | 87 22 20 5b 61 73 65 74 |) "....F|." [aset|
|00000f60| 20 68 65 61 64 65 72 20 | 35 20 64 61 74 65 5d 20 | header |5 date] |
|00000f70| 34 20 22 5c 0a 53 65 74 | 20 61 72 74 69 63 6c 65 |4 "\.Set| article|
|00000f80| 20 64 61 74 65 20 6f 66 | 20 48 45 41 44 45 52 20 | date of| HEADER |
|00000f90| 74 6f 20 44 41 54 45 2e | 22 5d 29 29 0a 28 64 65 |to DATE.|"])).(de|
|00000fa0| 66 61 6c 69 61 73 20 27 | 6e 6e 74 70 2d 68 65 61 |falias '|nntp-hea|
|00000fb0| 64 65 72 2d 69 64 20 27 | 28 6d 61 63 72 6f 20 2e |der-id '|(macro .|
|00000fc0| 20 23 5b 28 68 65 61 64 | 65 72 29 20 22 c0 09 c2 | #[(head|er) "...|
|00000fd0| 45 87 22 20 5b 61 72 65 | 66 20 68 65 61 64 65 72 |E." [are|f header|
|00000fe0| 20 36 5d 20 33 20 22 5c | 0a 52 65 74 75 72 6e 20 | 6] 3 "\|.Return |
|00000ff0| 49 64 20 69 6e 20 48 45 | 41 44 45 52 2e 22 5d 29 |Id in HE|ADER."])|
|00001000| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 6e 6e 74 |).(defal|ias 'nnt|
|00001010| 70 2d 73 65 74 2d 68 65 | 61 64 65 72 2d 69 64 20 |p-set-he|ader-id |
|00001020| 27 28 6d 61 63 72 6f 20 | 2e 20 23 5b 28 68 65 61 |'(macro |. #[(hea|
|00001030| 64 65 72 20 69 64 29 20 | 22 c0 09 c2 0b 46 87 22 |der id) |"....F."|
|00001040| 20 5b 61 73 65 74 20 68 | 65 61 64 65 72 20 36 20 | [aset h|eader 6 |
|00001050| 69 64 5d 20 34 20 22 5c | 0a 53 65 74 20 61 72 74 |id] 4 "\|.Set art|
|00001060| 69 63 6c 65 20 49 64 20 | 6f 66 20 48 45 41 44 45 |icle Id |of HEADE|
|00001070| 52 20 74 6f 20 49 44 2e | 22 5d 29 29 0a 28 64 65 |R to ID.|"])).(de|
|00001080| 66 61 6c 69 61 73 20 27 | 6e 6e 74 70 2d 68 65 61 |falias '|nntp-hea|
|00001090| 64 65 72 2d 72 65 66 65 | 72 65 6e 63 65 73 20 27 |der-refe|rences '|
|000010a0| 28 6d 61 63 72 6f 20 2e | 20 23 5b 28 68 65 61 64 |(macro .| #[(head|
|000010b0| 65 72 29 20 22 c0 09 c2 | 45 87 22 20 5b 61 72 65 |er) "...|E." [are|
|000010c0| 66 20 68 65 61 64 65 72 | 20 37 5d 20 33 20 22 5c |f header| 7] 3 "\|
|000010d0| 0a 52 65 74 75 72 6e 20 | 72 65 66 65 72 65 6e 63 |.Return |referenc|
|000010e0| 65 73 20 28 6f 72 20 69 | 6e 2d 72 65 70 6c 79 2d |es (or i|n-reply-|
|000010f0| 74 6f 29 20 69 6e 20 48 | 45 41 44 45 52 2e 22 5d |to) in H|EADER."]|
|00001100| 29 29 0a 28 64 65 66 61 | 6c 69 61 73 20 27 6e 6e |)).(defa|lias 'nn|
|00001110| 74 70 2d 73 65 74 2d 68 | 65 61 64 65 72 2d 72 65 |tp-set-h|eader-re|
|00001120| 66 65 72 65 6e 63 65 73 | 20 27 28 6d 61 63 72 6f |ferences| '(macro|
|00001130| 20 2e 20 23 5b 28 68 65 | 61 64 65 72 20 72 65 66 | . #[(he|ader ref|
|00001140| 29 20 22 c0 09 c2 0b 46 | 87 22 20 5b 61 73 65 74 |) "....F|." [aset|
|00001150| 20 68 65 61 64 65 72 20 | 37 20 72 65 66 5d 20 34 | header |7 ref] 4|
|00001160| 20 22 5c 0a 53 65 74 20 | 61 72 74 69 63 6c 65 20 | "\.Set |article |
|00001170| 72 65 66 65 72 65 6e 63 | 65 73 20 6f 66 20 48 45 |referenc|es of HE|
|00001180| 41 44 45 52 20 74 6f 20 | 52 45 46 2e 22 5d 29 29 |ADER to |REF."]))|
|00001190| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 6e 6e 74 70 |.(defali|as 'nntp|
|000011a0| 2d 72 65 74 72 69 65 76 | 65 2d 68 65 61 64 65 72 |-retriev|e-header|
|000011b0| 73 20 23 5b 28 73 65 71 | 75 65 6e 63 65 29 20 22 |s #[(seq|uence) "|
|000011c0| 8a 08 71 88 c1 20 88 5c | 6e 47 65 c3 89 c4 c3 c4 |..q.. .\|nGe.....|
|000011d0| 89 89 89 c3 c4 89 1d 1e | 06 1e 07 1e 08 1e 09 1e |........|........|
|000011e0| 5c 6e 1e 0b 1e 0c 1e 0d | 1e 0e 1e 0f 1e 10 1e 11 |\n......|........|
|000011f0| 5c 6e 83 98 00 d2 d3 5c | 6e 40 5c 22 88 5c 6e 41 |\n.....\|n@\".\nA|
|00001200| 12 0e 0e 54 16 0e 5c 6e | 83 4e 00 0e 0e 0e 14 a6 |...T..\n|.N......|
|00001210| c3 55 83 2e 00 d5 20 88 | 0e 10 62 88 d6 d7 c4 d8 |.U.... .|..b.....|
|00001220| 23 83 65 00 0e 0f 54 16 | 0f 82 55 00 60 16 10 0e |#.e...T.|..U.`...|
|00001230| 0f 0e 0e 57 83 2e 00 0e | 19 a7 83 92 00 0e 11 0e |...W....|........|
|00001240| 19 56 83 92 00 0e 0f da | a6 c3 55 83 92 00 db dc |.V......|..U.....|
|00001250| 0e 0f dd 5f 0e 11 a5 5c | 22 88 de 20 88 82 51 00 |..._...\|".. ..Q.|
|00001260| 64 62 88 df d7 c4 d8 23 | 88 e0 e1 21 83 b8 00 64 |db.....#|...!...d|
|00001270| e2 5a 62 88 e0 e3 21 84 | b8 00 de 20 88 82 a7 00 |.Zb...!.|... ....|
|00001280| 0e 19 a7 83 ca 00 0e 11 | 0e 19 56 83 ca 00 db e4 |........|..V.....|
|00001290| 21 88 0e 11 16 0f 65 62 | 88 d6 e5 c4 d8 23 83 e2 |!.....eb|.....#..|
|000012a0| 00 e6 e7 d8 89 23 88 82 | d1 00 0e 19 a7 83 f4 00 |.....#..|........|
|000012b0| 0e 11 0e 19 56 83 f4 00 | db e8 21 88 65 62 88 6d |....V...|..!.eb.m|
|000012c0| 84 13 02 e0 e9 21 83 e6 | 01 ea eb 94 eb 95 7b 21 |.....!..|......{!|
|000012d0| 16 0c ec 94 ec 95 7b 16 | 5c 6e eb 79 88 c4 16 0b |......{.|\n.y....|
|000012e0| c4 16 08 c4 16 09 c3 16 | 07 c4 16 06 c4 15 6d 84 |........|......m.|
|000012f0| b2 01 67 ed 3e 84 b2 01 | e0 ee 21 83 ac 01 ec 94 |..g.>...|..!.....|
|00001300| ec 95 7b c3 94 66 1e 2f | 1e 30 f1 0e 2f f2 5c 22 |..{..f./|.0../.\"|
|00001310| 83 50 01 0e 30 16 09 82 | ab 01 f1 0e 2f f3 5c 22 |.P..0...|..../.\"|
|00001320| 83 5f 01 0e 30 16 0b 82 | ab 01 f1 0e 2f f4 5c 22 |._..0...|..../.\"|
|00001330| 83 6e 01 0e 30 16 06 82 | ab 01 f1 0e 2f f5 5c 22 |.n..0...|..../.\"|
|00001340| 83 7f 01 ea 0e 30 21 16 | 07 82 ab 01 f1 0e 2f f6 |.....0!.|....../.|
|00001350| 5c 22 83 8e 01 0e 30 16 | 08 82 ab 01 f1 0e 2f f7 |\"....0.|....../.|
|00001360| 5c 22 83 9c 01 0e 30 15 | 82 ab 01 f1 0e 2f f8 5c |\"....0.|...../.\|
|00001370| 22 83 ab 01 0d 84 ab 01 | 0e 30 15 2a eb 79 88 82 |".......|.0.*.y..|
|00001380| 25 01 0e 0b 84 ba 01 f9 | 16 0b 0e 09 84 c2 01 fa |%.......|........|
|00001390| 16 09 0e 0c 83 e9 01 0e | 5c 6e 83 e9 01 fb 0e 0c |........|\n......|
|000013a0| 0e 0b 0e 09 0e 08 0e 07 | 0e 06 0e 5c 6e 0d 26 08 |........|...\n.&.|
|000013b0| 0e 0d 42 16 0d 82 e9 01 | eb 79 88 0e 0f 53 16 0f |..B.....|.y...S..|
|000013c0| 0e 19 a7 83 f7 00 0e 11 | 0e 19 56 83 f7 00 0e 0f |........|..V.....|
|000013d0| da a6 c3 55 83 f7 00 db | fc 0e 0f dd 5f 0e 11 a5 |...U....|...._...|
|000013e0| 5c 22 88 82 f7 00 0e 19 | a7 83 25 02 0e 11 0e 19 |\"......|..%.....|
|000013f0| 56 83 25 02 db fd 21 88 | 0e 0d 9f 2e 0e 87 22 20 |V.%...!.|......" |
|00001400| 5b 6e 6e 74 70 2d 73 65 | 72 76 65 72 2d 62 75 66 |[nntp-se|rver-buf|
|00001410| 66 65 72 20 65 72 61 73 | 65 2d 62 75 66 66 65 72 |fer eras|e-buffer|
|00001420| 20 73 65 71 75 65 6e 63 | 65 20 30 20 6e 69 6c 20 | sequenc|e 0 nil |
|00001430| 72 65 66 65 72 65 6e 63 | 65 73 20 64 61 74 65 20 |referenc|es date |
|00001440| 6c 69 6e 65 73 20 78 72 | 65 66 20 66 72 6f 6d 20 |lines xr|ef from |
|00001450| 6d 65 73 73 61 67 65 2d | 69 64 20 73 75 62 6a 65 |message-|id subje|
|00001460| 63 74 20 61 72 74 69 63 | 6c 65 20 68 65 61 64 65 |ct artic|le heade|
|00001470| 72 73 20 63 6f 75 6e 74 | 20 72 65 63 65 69 76 65 |rs count| receive|
|00001480| 64 20 6c 61 73 74 2d 70 | 6f 69 6e 74 20 6e 75 6d |d last-p|oint num|
|00001490| 62 65 72 20 6e 6e 74 70 | 2d 73 65 6e 64 2d 73 74 |ber nntp|-send-st|
|000014a0| 72 69 6e 67 73 2d 74 6f | 2d 73 65 72 76 65 72 20 |rings-to|-server |
|000014b0| 22 48 45 41 44 22 20 6e | 6e 74 70 2d 6d 61 78 69 |"HEAD" n|ntp-maxi|
|000014c0| 6d 75 6d 2d 72 65 71 75 | 65 73 74 20 61 63 63 65 |mum-requ|est acce|
|000014d0| 70 74 2d 70 72 6f 63 65 | 73 73 2d 6f 75 74 70 75 |pt-proce|ss-outpu|
|000014e0| 74 20 72 65 2d 73 65 61 | 72 63 68 2d 66 6f 72 77 |t re-sea|rch-forw|
|000014f0| 61 72 64 20 22 5e 5b 30 | 2d 39 5d 22 20 74 20 6e |ard "^[0|-9]" t n|
|00001500| 6e 74 70 2d 6c 61 72 67 | 65 2d 6e 65 77 73 67 72 |ntp-larg|e-newsgr|
|00001510| 6f 75 70 20 32 30 20 6d | 65 73 73 61 67 65 20 22 |oup 20 m|essage "|
|00001520| 4e 4e 54 50 3a 20 52 65 | 63 65 69 76 69 6e 67 20 |NNTP: Re|ceiving |
|00001530| 68 65 61 64 65 72 73 2e | 2e 2e 20 25 64 25 25 22 |headers.|.. %d%%"|
|00001540| 20 31 30 30 20 6e 6e 74 | 70 2d 61 63 63 65 70 74 | 100 nnt|p-accept|
|00001550| 2d 72 65 73 70 6f 6e 73 | 65 20 72 65 2d 73 65 61 |-respons|e re-sea|
|00001560| 72 63 68 2d 62 61 63 6b | 77 61 72 64 20 6c 6f 6f |rch-back|ward loo|
|00001570| 6b 69 6e 67 2d 61 74 20 | 22 5e 5b 32 33 5d 22 20 |king-at |"^[23]" |
|00001580| 33 20 22 5e 5c 5c 2e 0d | 24 22 20 22 4e 4e 54 50 |3 "^\\..|$" "NNTP|
|00001590| 3a 20 52 65 63 65 69 76 | 69 6e 67 20 68 65 61 64 |: Receiv|ing head|
|000015a0| 65 72 73 2e 2e 2e 20 64 | 6f 6e 65 22 20 22 5c 5c |ers... d|one" "\\|
|000015b0| 28 0d 3f 5c 6e 5b 20 09 | 5d 2b 5c 5c 29 2b 22 20 |(.?\n[ .|]+\\)+" |
|000015c0| 72 65 70 6c 61 63 65 2d | 6d 61 74 63 68 20 22 20 |replace-|match " |
|000015d0| 22 20 22 4e 4e 54 50 3a | 20 50 61 72 73 69 6e 67 |" "NNTP:| Parsing|
|000015e0| 20 68 65 61 64 65 72 73 | 2e 2e 2e 22 20 22 5e 5b | headers|..." "^[|
|000015f0| 32 33 5d 5b 30 2d 39 5d | 5b 30 2d 39 5d 5b 20 09 |23][0-9]|[0-9][ .|
|00001600| 5d 2b 5c 5c 28 5b 30 2d | 39 5d 2b 5c 5c 29 5b 20 |]+\\([0-|9]+\\)[ |
|00001610| 09 5d 2b 5c 5c 28 3c 5b | 5e 3e 5d 2b 3e 5c 5c 29 |.]+\\(<[|^>]+>\\)|
|00001620| 22 20 73 74 72 69 6e 67 | 2d 74 6f 2d 69 6e 74 20 |" string|-to-int |
|00001630| 31 20 32 20 28 35 30 20 | 35 31 29 20 22 5c 5c 28 |1 2 (50 |51) "\\(|
|00001640| 46 72 6f 6d 5c 5c 7c 53 | 75 62 6a 65 63 74 5c 5c |From\\|S|ubject\\|
|00001650| 7c 44 61 74 65 5c 5c 7c | 4c 69 6e 65 73 5c 5c 7c ||Date\\||Lines\\||
|00001660| 58 72 65 66 5c 5c 7c 52 | 65 66 65 72 65 6e 63 65 |Xref\\|R|eference|
|00001670| 73 5c 5c 7c 49 6e 2d 52 | 65 70 6c 79 2d 54 6f 5c |s\\|In-R|eply-To\|
|00001680| 5c 29 3a 5b 20 09 5d 2b | 5c 5c 28 5b 5e 20 09 5c |\):[ .]+|\\([^ .\|
|00001690| 6e 5d 2b 2e 2a 5c 5c 29 | 0d 24 22 20 63 20 73 20 |n]+.*\\)|.$" c s |
|000016a0| 63 68 61 72 2d 65 71 75 | 61 6c 20 37 30 20 38 33 |char-equ|al 70 83|
|000016b0| 20 36 38 20 37 36 20 38 | 38 20 38 32 20 37 33 20 | 68 76 8|8 82 73 |
|000016c0| 22 28 4e 6f 6e 65 29 22 | 20 22 28 55 6e 6b 6e 6f |"(None)"| "(Unkno|
|000016d0| 77 6e 20 55 73 65 72 29 | 22 20 76 65 63 74 6f 72 |wn User)|" vector|
|000016e0| 20 22 4e 4e 54 50 3a 20 | 50 61 72 73 69 6e 67 20 | "NNTP: |Parsing |
|000016f0| 68 65 61 64 65 72 73 2e | 2e 2e 20 25 64 25 25 22 |headers.|.. %d%%"|
|00001700| 20 22 4e 4e 54 50 3a 20 | 50 61 72 73 69 6e 67 20 | "NNTP: |Parsing |
|00001710| 68 65 61 64 65 72 73 2e | 2e 2e 20 64 6f 6e 65 22 |headers.|.. done"|
|00001720| 5d 20 31 33 20 22 5c 0a | 52 65 74 75 72 6e 20 6c |] 13 "\.|Return l|
|00001730| 69 73 74 20 6f 66 20 61 | 72 74 69 63 6c 65 20 68 |ist of a|rticle h|
|00001740| 65 61 64 65 72 73 20 73 | 70 65 63 69 66 69 65 64 |eaders s|pecified|
|00001750| 20 62 79 20 53 45 51 55 | 45 4e 43 45 20 6f 66 20 | by SEQU|ENCE of |
|00001760| 61 72 74 69 63 6c 65 20 | 69 64 2e 0a 54 68 65 20 |article |id..The |
|00001770| 66 6f 72 6d 61 74 20 6f | 66 20 6c 69 73 74 20 69 |format o|f list i|
|00001780| 73 0a 20 60 28 5b 4e 55 | 4d 42 45 52 20 53 55 42 |s. `([NU|MBER SUB|
|00001790| 4a 45 43 54 20 46 52 4f | 4d 20 58 52 45 46 20 4c |JECT FRO|M XREF L|
|000017a0| 49 4e 45 53 20 44 41 54 | 45 20 4d 45 53 53 41 47 |INES DAT|E MESSAG|
|000017b0| 45 2d 49 44 20 52 45 46 | 45 52 45 4e 43 45 53 5d |E-ID REF|ERENCES]|
|000017c0| 20 2e 2e 2e 29 27 2e 0a | 49 66 20 74 68 65 72 65 | ...)'..|If there|
|000017d0| 20 69 73 20 6e 6f 20 52 | 65 66 65 72 65 6e 63 65 | is no R|eference|
|000017e0| 73 3a 20 66 69 65 6c 64 | 2c 20 49 6e 2d 52 65 70 |s: field|, In-Rep|
|000017f0| 6c 79 2d 54 6f 3a 20 66 | 69 65 6c 64 20 69 73 20 |ly-To: f|ield is |
|00001800| 75 73 65 64 20 69 6e 73 | 74 65 61 64 2e 0a 52 65 |used ins|tead..Re|
|00001810| 61 64 65 72 20 6d 61 63 | 72 6f 73 20 66 6f 72 20 |ader mac|ros for |
|00001820| 74 68 65 20 76 65 63 74 | 6f 72 20 61 72 65 20 64 |the vect|or are d|
|00001830| 65 66 69 6e 65 64 20 61 | 73 20 60 6e 6e 74 70 2d |efined a|s `nntp-|
|00001840| 68 65 61 64 65 72 2d 46 | 49 45 4c 44 27 2e 0a 57 |header-F|IELD'..W|
|00001850| 72 69 74 65 72 20 6d 61 | 63 72 6f 73 20 66 6f 72 |riter ma|cros for|
|00001860| 20 74 68 65 20 76 65 63 | 74 6f 72 20 61 72 65 20 | the vec|tor are |
|00001870| 64 65 66 69 6e 65 64 20 | 61 73 20 60 6e 6e 74 70 |defined |as `nntp|
|00001880| 2d 73 65 74 2d 68 65 61 | 64 65 72 2d 46 49 45 4c |-set-hea|der-FIEL|
|00001890| 44 27 2e 0a 4e 65 77 73 | 67 72 6f 75 70 20 6d 75 |D'..News|group mu|
|000018a0| 73 74 20 62 65 20 73 65 | 6c 65 63 74 65 64 20 62 |st be se|lected b|
|000018b0| 65 66 6f 72 65 20 63 61 | 6c 6c 69 6e 67 20 74 68 |efore ca|lling th|
|000018c0| 69 73 2e 22 5d 29 0a 28 | 64 65 66 61 6c 69 61 73 |is."]).(|defalias|
|000018d0| 20 27 6e 6e 74 70 2d 6f | 70 65 6e 2d 73 65 72 76 | 'nntp-o|pen-serv|
|000018e0| 65 72 20 23 5b 28 68 6f | 73 74 20 26 6f 70 74 69 |er #[(ho|st &opti|
|000018f0| 6f 6e 61 6c 20 73 65 72 | 76 69 63 65 29 20 22 08 |onal ser|vice) ".|
|00001900| 86 07 00 c1 c2 21 c3 1c | 18 c5 16 06 08 83 30 00 |.....!..|......0.|
|00001910| c7 08 0e 08 5c 22 83 30 | 00 c9 ca 21 89 14 83 2a |....\".0|...!...*|
|00001920| 00 cb 0e 0c cd 5c 22 88 | 82 37 00 ce 20 88 82 37 |.....\".|.7.. ..7|
|00001930| 00 08 84 37 00 cf 16 06 | 0c 2a 87 22 20 5b 68 6f |...7....|.*." [ho|
|00001940| 73 74 20 67 65 74 65 6e | 76 20 22 4e 4e 54 50 53 |st geten|v "NNTPS|
|00001950| 45 52 56 45 52 22 20 6e | 69 6c 20 73 74 61 74 75 |ERVER" n|il statu|
|00001960| 73 20 22 22 20 6e 6e 74 | 70 2d 73 74 61 74 75 73 |s "" nnt|p-status|
|00001970| 2d 73 74 72 69 6e 67 20 | 6e 6e 74 70 2d 6f 70 65 |-string |nntp-ope|
|00001980| 6e 2d 73 65 72 76 65 72 | 2d 69 6e 74 65 72 6e 61 |n-server|-interna|
|00001990| 6c 20 73 65 72 76 69 63 | 65 20 6e 6e 74 70 2d 77 |l servic|e nntp-w|
|000019a0| 61 69 74 2d 66 6f 72 2d | 72 65 73 70 6f 6e 73 65 |ait-for-|response|
|000019b0| 20 22 5e 5b 32 33 5d 2e | 2a 0d 24 22 20 73 65 74 | "^[23].|*.$" set|
|000019c0| 2d 70 72 6f 63 65 73 73 | 2d 73 65 6e 74 69 6e 65 |-process|-sentine|
|000019d0| 6c 20 6e 6e 74 70 2d 73 | 65 72 76 65 72 2d 70 72 |l nntp-s|erver-pr|
|000019e0| 6f 63 65 73 73 20 6e 6e | 74 70 2d 64 65 66 61 75 |ocess nn|tp-defau|
|000019f0| 6c 74 2d 73 65 6e 74 69 | 6e 65 6c 20 6e 6e 74 70 |lt-senti|nel nntp|
|00001a00| 2d 63 6c 6f 73 65 2d 73 | 65 72 76 65 72 2d 69 6e |-close-s|erver-in|
|00001a10| 74 65 72 6e 61 6c 20 22 | 4e 4e 54 50 20 73 65 72 |ternal "|NNTP ser|
|00001a20| 76 65 72 20 69 73 20 6e | 6f 74 20 73 70 65 63 69 |ver is n|ot speci|
|00001a30| 66 69 65 64 2e 22 5d 20 | 34 20 22 5c 0a 4f 70 65 |fied."] |4 "\.Ope|
|00001a40| 6e 20 6e 65 77 73 20 73 | 65 72 76 65 72 20 6f 6e |n news s|erver on|
|00001a50| 20 48 4f 53 54 2e 0a 49 | 66 20 48 4f 53 54 20 69 | HOST..I|f HOST i|
|00001a60| 73 20 6e 69 6c 2c 20 75 | 73 65 20 76 61 6c 75 65 |s nil, u|se value|
|00001a70| 20 6f 66 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 20 | of envi|ronment |
|00001a80| 76 61 72 69 61 62 6c 65 | 20 60 4e 4e 54 50 53 45 |variable| `NNTPSE|
|00001a90| 52 56 45 52 27 2e 0a 49 | 66 20 6f 70 74 69 6f 6e |RVER'..I|f option|
|00001aa0| 61 6c 20 61 72 67 75 6d | 65 6e 74 20 53 45 52 56 |al argum|ent SERV|
|00001ab0| 49 43 45 20 69 73 20 6e | 6f 6e 2d 6e 69 6c 2c 20 |ICE is n|on-nil, |
|00001ac0| 6f 70 65 6e 20 62 79 20 | 74 68 65 20 73 65 72 76 |open by |the serv|
|00001ad0| 69 63 65 20 6e 61 6d 65 | 2e 22 5d 29 0a 28 64 65 |ice name|."]).(de|
|00001ae0| 66 61 6c 69 61 73 20 27 | 6e 6e 74 70 2d 63 6c 6f |falias '|nntp-clo|
|00001af0| 73 65 2d 73 65 72 76 65 | 72 20 23 5b 6e 69 6c 20 |se-serve|r #[nil |
|00001b00| 22 c0 8e 09 83 13 00 c2 | c3 09 21 3d 83 13 00 c4 |".......|..!=....|
|00001b10| 09 c5 5c 22 88 c6 20 85 | 1c 00 c7 c5 c8 5c 22 29 |..\".. .|.....\")|
|00001b20| 87 22 20 5b 28 28 6e 6e | 74 70 2d 63 6c 6f 73 65 |." [((nn|tp-close|
|00001b30| 2d 73 65 72 76 65 72 2d | 69 6e 74 65 72 6e 61 6c |-server-|internal|
|00001b40| 29 29 20 6e 6e 74 70 2d | 73 65 72 76 65 72 2d 70 |)) nntp-|server-p|
|00001b50| 72 6f 63 65 73 73 20 6e | 6e 74 70 2d 64 65 66 61 |rocess n|ntp-defa|
|00001b60| 75 6c 74 2d 73 65 6e 74 | 69 6e 65 6c 20 70 72 6f |ult-sent|inel pro|
|00001b70| 63 65 73 73 2d 73 65 6e | 74 69 6e 65 6c 20 73 65 |cess-sen|tinel se|
|00001b80| 74 2d 70 72 6f 63 65 73 | 73 2d 73 65 6e 74 69 6e |t-proces|s-sentin|
|00001b90| 65 6c 20 6e 69 6c 20 6e | 6e 74 70 2d 73 65 72 76 |el nil n|ntp-serv|
|00001ba0| 65 72 2d 6f 70 65 6e 65 | 64 20 6e 6e 74 70 2d 73 |er-opene|d nntp-s|
|00001bb0| 65 6e 64 2d 63 6f 6d 6d | 61 6e 64 20 22 51 55 49 |end-comm|and "QUI|
|00001bc0| 54 22 5d 20 33 20 22 5c | 0a 43 6c 6f 73 65 20 6e |T"] 3 "\|.Close n|
|00001bd0| 65 77 73 20 73 65 72 76 | 65 72 2e 22 5d 29 0a 28 |ews serv|er."]).(|
|00001be0| 62 79 74 65 2d 63 6f 64 | 65 20 22 c0 c1 4b 4d 87 |byte-cod|e "..KM.|
|00001bf0| 22 20 5b 6e 6e 74 70 2d | 72 65 71 75 65 73 74 2d |" [nntp-|request-|
|00001c00| 71 75 69 74 20 6e 6e 74 | 70 2d 63 6c 6f 73 65 2d |quit nnt|p-close-|
|00001c10| 73 65 72 76 65 72 5d 20 | 32 29 0a 28 64 65 66 61 |server] |2).(defa|
|00001c20| 6c 69 61 73 20 27 6e 6e | 74 70 2d 73 65 72 76 65 |lias 'nn|tp-serve|
|00001c30| 72 2d 6f 70 65 6e 65 64 | 20 23 5b 6e 69 6c 20 22 |r-opened| #[nil "|
|00001c40| 08 85 09 00 c1 08 21 c2 | 3e 87 22 20 5b 6e 6e 74 |......!.|>." [nnt|
|00001c50| 70 2d 73 65 72 76 65 72 | 2d 70 72 6f 63 65 73 73 |p-server|-process|
|00001c60| 20 70 72 6f 63 65 73 73 | 2d 73 74 61 74 75 73 20 | process|-status |
|00001c70| 28 6f 70 65 6e 20 72 75 | 6e 29 5d 20 32 20 22 5c |(open ru|n)] 2 "\|
|00001c80| 0a 52 65 74 75 72 6e 20 | 73 65 72 76 65 72 20 70 |.Return |server p|
|00001c90| 72 6f 63 65 73 73 20 73 | 74 61 74 75 73 2c 20 54 |rocess s|tatus, T|
|00001ca0| 20 6f 72 20 4e 49 4c 2e | 0a 49 66 20 74 68 65 20 | or NIL.|.If the |
|00001cb0| 73 74 72 65 61 6d 20 69 | 73 20 6f 70 65 6e 65 64 |stream i|s opened|
|00001cc0| 2c 20 72 65 74 75 72 6e | 20 54 2c 20 6f 74 68 65 |, return| T, othe|
|00001cd0| 72 77 69 73 65 20 72 65 | 74 75 72 6e 20 4e 49 4c |rwise re|turn NIL|
|00001ce0| 2e 22 5d 29 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |."]).(de|falias '|
|00001cf0| 6e 6e 74 70 2d 73 74 61 | 74 75 73 2d 6d 65 73 73 |nntp-sta|tus-mess|
|00001d00| 61 67 65 20 23 5b 6e 69 | 6c 20 22 08 83 12 00 c1 |age #[ni|l ".....|
|00001d10| c2 08 5c 22 83 12 00 08 | c3 94 c3 95 4f 87 c4 87 |..\"....|....O...|
|00001d20| 22 20 5b 6e 6e 74 70 2d | 73 74 61 74 75 73 2d 73 |" [nntp-|status-s|
|00001d30| 74 72 69 6e 67 20 73 74 | 72 69 6e 67 2d 6d 61 74 |tring st|ring-mat|
|00001d40| 63 68 20 22 5b 30 2d 39 | 5d 5b 30 2d 39 5d 5b 30 |ch "[0-9|][0-9][0|
|00001d50| 2d 39 5d 5b 20 09 5d 2b | 5c 5c 28 5b 5e 0d 5d 2a |-9][ .]+|\\([^.]*|
|00001d60| 5c 5c 29 2e 2a 24 22 20 | 31 20 22 22 5d 20 33 20 |\\).*$" |1 ""] 3 |
|00001d70| 22 5c 0a 52 65 74 75 72 | 6e 20 73 65 72 76 65 72 |"\.Retur|n server|
|00001d80| 20 73 74 61 74 75 73 20 | 72 65 73 70 6f 6e 73 65 | status |response|
|00001d90| 20 61 73 20 73 74 72 69 | 6e 67 2e 22 5d 29 0a 28 | as stri|ng."]).(|
|00001da0| 64 65 66 61 6c 69 61 73 | 20 27 6e 6e 74 70 2d 72 |defalias| 'nntp-r|
|00001db0| 65 71 75 65 73 74 2d 61 | 72 74 69 63 6c 65 20 23 |equest-a|rticle #|
|00001dc0| 5b 28 69 64 29 20 22 c0 | c1 c2 0b 23 c4 20 88 87 |[(id) ".|...#. ..|
|00001dd0| 22 20 5b 6e 6e 74 70 2d | 73 65 6e 64 2d 63 6f 6d |" [nntp-|send-com|
|00001de0| 6d 61 6e 64 20 22 5e 5c | 5c 2e 0d 24 22 20 22 41 |mand "^\|\..$" "A|
|00001df0| 52 54 49 43 4c 45 22 20 | 69 64 20 6e 6e 74 70 2d |RTICLE" |id nntp-|
|00001e00| 64 65 63 6f 64 65 2d 74 | 65 78 74 5d 20 34 20 22 |decode-t|ext] 4 "|
|00001e10| 5c 0a 53 65 6c 65 63 74 | 20 61 72 74 69 63 6c 65 |\.Select| article|
|00001e20| 20 62 79 20 6d 65 73 73 | 61 67 65 20 49 44 20 28 | by mess|age ID (|
|00001e30| 6f 72 20 6e 75 6d 62 65 | 72 29 2e 22 5d 29 0a 28 |or numbe|r)."]).(|
|00001e40| 64 65 66 61 6c 69 61 73 | 20 27 6e 6e 74 70 2d 72 |defalias| 'nntp-r|
|00001e50| 65 71 75 65 73 74 2d 62 | 6f 64 79 20 23 5b 28 69 |equest-b|ody #[(i|
|00001e60| 64 29 20 22 c0 c1 c2 0b | 23 c4 20 88 87 22 20 5b |d) "....|#. .." [|
|00001e70| 6e 6e 74 70 2d 73 65 6e | 64 2d 63 6f 6d 6d 61 6e |nntp-sen|d-comman|
|00001e80| 64 20 22 5e 5c 5c 2e 0d | 24 22 20 22 42 4f 44 59 |d "^\\..|$" "BODY|
|00001e90| 22 20 69 64 20 6e 6e 74 | 70 2d 64 65 63 6f 64 65 |" id nnt|p-decode|
|00001ea0| 2d 74 65 78 74 5d 20 34 | 20 22 5c 0a 53 65 6c 65 |-text] 4| "\.Sele|
|00001eb0| 63 74 20 61 72 74 69 63 | 6c 65 20 62 6f 64 79 20 |ct artic|le body |
|00001ec0| 62 79 20 6d 65 73 73 61 | 67 65 20 49 44 20 28 6f |by messa|ge ID (o|
|00001ed0| 72 20 6e 75 6d 62 65 72 | 29 2e 22 5d 29 0a 28 64 |r number|)."]).(d|
|00001ee0| 65 66 61 6c 69 61 73 20 | 27 6e 6e 74 70 2d 72 65 |efalias |'nntp-re|
|00001ef0| 71 75 65 73 74 2d 68 65 | 61 64 20 23 5b 28 69 64 |quest-he|ad #[(id|
|00001f00| 29 20 22 c0 c1 c2 0b 23 | c4 20 88 87 22 20 5b 6e |) "....#|. .." [n|
|00001f10| 6e 74 70 2d 73 65 6e 64 | 2d 63 6f 6d 6d 61 6e 64 |ntp-send|-command|
|00001f20| 20 22 5e 5c 5c 2e 0d 24 | 22 20 22 48 45 41 44 22 | "^\\..$|" "HEAD"|
|00001f30| 20 69 64 20 6e 6e 74 70 | 2d 64 65 63 6f 64 65 2d | id nntp|-decode-|
|00001f40| 74 65 78 74 5d 20 34 20 | 22 5c 0a 53 65 6c 65 63 |text] 4 |"\.Selec|
|00001f50| 74 20 61 72 74 69 63 6c | 65 20 68 65 61 64 20 62 |t articl|e head b|
|00001f60| 79 20 6d 65 73 73 61 67 | 65 20 49 44 20 28 6f 72 |y messag|e ID (or|
|00001f70| 20 6e 75 6d 62 65 72 29 | 2e 22 5d 29 0a 28 64 65 | number)|."]).(de|
|00001f80| 66 61 6c 69 61 73 20 27 | 6e 6e 74 70 2d 72 65 71 |falias '|nntp-req|
|00001f90| 75 65 73 74 2d 73 74 61 | 74 20 23 5b 28 69 64 29 |uest-sta|t #[(id)|
|00001fa0| 20 22 c0 c1 c2 0b 23 87 | 22 20 5b 6e 6e 74 70 2d | "....#.|" [nntp-|
|00001fb0| 73 65 6e 64 2d 63 6f 6d | 6d 61 6e 64 20 22 5e 5b |send-com|mand "^[|
|00001fc0| 32 33 5d 2e 2a 0d 24 22 | 20 22 53 54 41 54 22 20 |23].*.$"| "STAT" |
|00001fd0| 69 64 5d 20 34 20 22 5c | 0a 53 65 6c 65 63 74 20 |id] 4 "\|.Select |
|00001fe0| 61 72 74 69 63 6c 65 20 | 62 79 20 6d 65 73 73 61 |article |by messa|
|00001ff0| 67 65 20 49 44 20 28 6f | 72 20 6e 75 6d 62 65 72 |ge ID (o|r number|
|00002000| 29 2e 22 5d 29 0a 28 64 | 65 66 61 6c 69 61 73 20 |)."]).(d|efalias |
|00002010| 27 6e 6e 74 70 2d 72 65 | 71 75 65 73 74 2d 67 72 |'nntp-re|quest-gr|
|00002020| 6f 75 70 20 23 5b 28 67 | 72 6f 75 70 29 20 22 c0 |oup #[(g|roup) ".|
|00002030| c1 c2 0b 23 87 22 20 5b | 6e 6e 74 70 2d 73 65 6e |...#." [|nntp-sen|
|00002040| 64 2d 63 6f 6d 6d 61 6e | 64 20 22 5e 5b 32 33 5d |d-comman|d "^[23]|
|00002050| 2e 2a 24 22 20 22 47 52 | 4f 55 50 22 20 67 72 6f |.*$" "GR|OUP" gro|
|00002060| 75 70 5d 20 34 20 22 5c | 0a 53 65 6c 65 63 74 20 |up] 4 "\|.Select |
|00002070| 6e 65 77 73 20 47 52 4f | 55 50 2e 22 5d 29 0a 28 |news GRO|UP."]).(|
|00002080| 64 65 66 61 6c 69 61 73 | 20 27 6e 6e 74 70 2d 72 |defalias| 'nntp-r|
|00002090| 65 71 75 65 73 74 2d 6c | 69 73 74 20 23 5b 6e 69 |equest-l|ist #[ni|
|000020a0| 6c 20 22 c0 c1 c2 5c 22 | c3 20 88 87 22 20 5b 6e |l "...\"|. .." [n|
|000020b0| 6e 74 70 2d 73 65 6e 64 | 2d 63 6f 6d 6d 61 6e 64 |ntp-send|-command|
|000020c0| 20 22 5e 5c 5c 2e 0d 24 | 22 20 22 4c 49 53 54 22 | "^\\..$|" "LIST"|
|000020d0| 20 6e 6e 74 70 2d 64 65 | 63 6f 64 65 2d 74 65 78 | nntp-de|code-tex|
|000020e0| 74 5d 20 33 20 22 5c 0a | 4c 69 73 74 20 61 63 74 |t] 3 "\.|List act|
|000020f0| 69 76 65 20 6e 65 77 73 | 67 72 6f 75 70 73 2e 22 |ive news|groups."|
|00002100| 5d 29 0a 28 64 65 66 61 | 6c 69 61 73 20 27 6e 6e |]).(defa|lias 'nn|
|00002110| 74 70 2d 72 65 71 75 65 | 73 74 2d 6c 69 73 74 2d |tp-reque|st-list-|
|00002120| 6e 65 77 73 67 72 6f 75 | 70 73 20 23 5b 6e 69 6c |newsgrou|ps #[nil|
|00002130| 20 22 c0 c1 c2 5c 22 c3 | 20 88 87 22 20 5b 6e 6e | "...\".| .." [nn|
|00002140| 74 70 2d 73 65 6e 64 2d | 63 6f 6d 6d 61 6e 64 20 |tp-send-|command |
|00002150| 22 5e 5c 5c 2e 0d 24 22 | 20 22 4c 49 53 54 20 4e |"^\\..$"| "LIST N|
|00002160| 45 57 53 47 52 4f 55 50 | 53 22 20 6e 6e 74 70 2d |EWSGROUP|S" nntp-|
|00002170| 64 65 63 6f 64 65 2d 74 | 65 78 74 5d 20 33 20 22 |decode-t|ext] 3 "|
|00002180| 5c 0a 4c 69 73 74 20 6e | 65 77 73 67 72 6f 75 70 |\.List n|ewsgroup|
|00002190| 73 20 28 64 65 66 69 6e | 65 64 20 69 6e 20 4e 4e |s (defin|ed in NN|
|000021a0| 54 50 32 29 2e 22 5d 29 | 0a 28 64 65 66 61 6c 69 |TP2)."])|.(defali|
|000021b0| 61 73 20 27 6e 6e 74 70 | 2d 72 65 71 75 65 73 74 |as 'nntp|-request|
|000021c0| 2d 6c 69 73 74 2d 64 69 | 73 74 72 69 62 75 74 69 |-list-di|stributi|
|000021d0| 6f 6e 73 20 23 5b 6e 69 | 6c 20 22 c0 c1 c2 5c 22 |ons #[ni|l "...\"|
|000021e0| c3 20 88 87 22 20 5b 6e | 6e 74 70 2d 73 65 6e 64 |. .." [n|ntp-send|
|000021f0| 2d 63 6f 6d 6d 61 6e 64 | 20 22 5e 5c 5c 2e 0d 24 |-command| "^\\..$|
|00002200| 22 20 22 4c 49 53 54 20 | 44 49 53 54 52 49 42 55 |" "LIST |DISTRIBU|
|00002210| 54 49 4f 4e 53 22 20 6e | 6e 74 70 2d 64 65 63 6f |TIONS" n|ntp-deco|
|00002220| 64 65 2d 74 65 78 74 5d | 20 33 20 22 5c 0a 4c 69 |de-text]| 3 "\.Li|
|00002230| 73 74 20 64 69 73 74 72 | 69 62 75 74 69 6f 6e 73 |st distr|ibutions|
|00002240| 20 28 64 65 66 69 6e 65 | 64 20 69 6e 20 4e 4e 54 | (define|d in NNT|
|00002250| 50 32 29 2e 22 5d 29 0a | 28 64 65 66 61 6c 69 61 |P2)."]).|(defalia|
|00002260| 73 20 27 6e 6e 74 70 2d | 72 65 71 75 65 73 74 2d |s 'nntp-|request-|
|00002270| 6c 61 73 74 20 23 5b 6e | 69 6c 20 22 c0 c1 c2 5c |last #[n|il "...\|
|00002280| 22 87 22 20 5b 6e 6e 74 | 70 2d 73 65 6e 64 2d 63 |"." [nnt|p-send-c|
|00002290| 6f 6d 6d 61 6e 64 20 22 | 5e 5b 32 33 5d 2e 2a 0d |ommand "|^[23].*.|
|000022a0| 24 22 20 22 4c 41 53 54 | 22 5d 20 33 20 22 5c 0a |$" "LAST|"] 3 "\.|
|000022b0| 53 65 74 20 63 75 72 72 | 65 6e 74 20 61 72 74 69 |Set curr|ent arti|
|000022c0| 63 6c 65 20 70 6f 69 6e | 74 65 72 20 74 6f 20 74 |cle poin|ter to t|
|000022d0| 68 65 20 70 72 65 76 69 | 6f 75 73 20 61 72 74 69 |he previ|ous arti|
|000022e0| 63 6c 65 0a 69 6e 20 74 | 68 65 20 63 75 72 72 65 |cle.in t|he curre|
|000022f0| 6e 74 20 6e 65 77 73 20 | 67 72 6f 75 70 2e 22 5d |nt news |group."]|
|00002300| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 6e 6e 74 |).(defal|ias 'nnt|
|00002310| 70 2d 72 65 71 75 65 73 | 74 2d 6e 65 78 74 20 23 |p-reques|t-next #|
|00002320| 5b 6e 69 6c 20 22 c0 c1 | c2 5c 22 87 22 20 5b 6e |[nil "..|.\"." [n|
|00002330| 6e 74 70 2d 73 65 6e 64 | 2d 63 6f 6d 6d 61 6e 64 |ntp-send|-command|
|00002340| 20 22 5e 5b 32 33 5d 2e | 2a 0d 24 22 20 22 4e 45 | "^[23].|*.$" "NE|
|00002350| 58 54 22 5d 20 33 20 22 | 5c 0a 41 64 76 61 6e 63 |XT"] 3 "|\.Advanc|
|00002360| 65 20 63 75 72 72 65 6e | 74 20 61 72 74 69 63 6c |e curren|t articl|
|00002370| 65 20 70 6f 69 6e 74 65 | 72 2e 22 5d 29 0a 28 64 |e pointe|r."]).(d|
|00002380| 65 66 61 6c 69 61 73 20 | 27 6e 6e 74 70 2d 72 65 |efalias |'nntp-re|
|00002390| 71 75 65 73 74 2d 70 6f | 73 74 20 23 5b 6e 69 6c |quest-po|st #[nil|
|000023a0| 20 22 c0 c1 c2 5c 22 85 | 12 00 c3 20 88 c4 65 64 | "...\".|... ..ed|
|000023b0| 5c 22 88 c5 c6 21 87 22 | 20 5b 6e 6e 74 70 2d 73 |\"...!."| [nntp-s|
|000023c0| 65 6e 64 2d 63 6f 6d 6d | 61 6e 64 20 22 5e 5b 32 |end-comm|and "^[2|
|000023d0| 33 5d 2e 2a 0d 24 22 20 | 22 50 4f 53 54 22 20 6e |3].*.$" |"POST" n|
|000023e0| 6e 74 70 2d 65 6e 63 6f | 64 65 2d 74 65 78 74 20 |ntp-enco|de-text |
|000023f0| 6e 6e 74 70 2d 73 65 6e | 64 2d 72 65 67 69 6f 6e |nntp-sen|d-region|
|00002400| 2d 74 6f 2d 73 65 72 76 | 65 72 20 6e 6e 74 70 2d |-to-serv|er nntp-|
|00002410| 77 61 69 74 2d 66 6f 72 | 2d 72 65 73 70 6f 6e 73 |wait-for|-respons|
|00002420| 65 20 22 5e 5b 32 33 5d | 2e 2a 24 22 5d 20 33 20 |e "^[23]|.*$"] 3 |
|00002430| 22 5c 0a 50 6f 73 74 20 | 61 20 6e 65 77 20 6e 65 |"\.Post |a new ne|
|00002440| 77 73 20 69 6e 20 63 75 | 72 72 65 6e 74 20 62 75 |ws in cu|rrent bu|
|00002450| 66 66 65 72 2e 22 5d 29 | 0a 28 64 65 66 61 6c 69 |ffer."])|.(defali|
|00002460| 61 73 20 27 6e 6e 74 70 | 2d 64 65 66 61 75 6c 74 |as 'nntp|-default|
|00002470| 2d 73 65 6e 74 69 6e 65 | 6c 20 23 5b 28 70 72 6f |-sentine|l #[(pro|
|00002480| 63 20 73 74 61 74 75 73 | 29 20 22 08 85 0d 00 c1 |c status|) ".....|
|00002490| 20 3f 85 0d 00 c2 c3 21 | 87 22 20 5b 6e 6e 74 70 | ?.....!|." [nntp|
|000024a0| 2d 73 65 72 76 65 72 2d | 70 72 6f 63 65 73 73 20 |-server-|process |
|000024b0| 6e 6e 74 70 2d 73 65 72 | 76 65 72 2d 6f 70 65 6e |nntp-ser|ver-open|
|000024c0| 65 64 20 65 72 72 6f 72 | 20 22 4e 4e 54 50 3a 20 |ed error| "NNTP: |
|000024d0| 43 6f 6e 6e 65 63 74 69 | 6f 6e 20 63 6c 6f 73 65 |Connecti|on close|
|000024e0| 64 2e 22 5d 20 32 20 22 | 5c 0a 44 65 66 61 75 6c |d."] 2 "|\.Defaul|
|000024f0| 74 20 73 65 6e 74 69 6e | 65 6c 20 66 75 6e 63 74 |t sentin|el funct|
|00002500| 69 6f 6e 20 66 6f 72 20 | 4e 4e 54 50 20 73 65 72 |ion for |NNTP ser|
|00002510| 76 65 72 20 70 72 6f 63 | 65 73 73 2e 22 5d 29 0a |ver proc|ess."]).|
|00002520| 28 64 65 66 61 6c 69 61 | 73 20 27 6e 6e 74 70 2d |(defalia|s 'nntp-|
|00002530| 64 65 63 6f 64 65 2d 74 | 65 78 74 20 23 5b 6e 69 |decode-t|ext #[ni|
|00002540| 6c 20 22 8a 08 71 88 64 | 62 88 6e 84 0e 00 c1 63 |l "..q.d|b.n....c|
|00002550| 88 65 62 88 60 c2 79 88 | 60 7c 88 6d 84 2f 00 c3 |.eb.`.y.|`|.m./..|
|00002560| 7f 88 68 c4 55 83 29 00 | c5 c6 21 88 c2 79 88 82 |..h.U.).|..!..y..|
|00002570| 18 00 64 62 88 c6 79 88 | c7 c8 21 83 42 00 60 c2 |..db..y.|..!.B.`.|
|00002580| 79 88 60 7c 88 65 62 88 | c9 ca c3 cb 23 85 54 00 |y.`|.eb.|....#.T.|
|00002590| c5 c6 21 88 82 45 00 29 | 87 22 20 5b 6e 6e 74 70 |..!..E.)|." [nntp|
|000025a0| 2d 73 65 72 76 65 72 2d | 62 75 66 66 65 72 20 22 |-server-|buffer "|
|000025b0| 5c 6e 22 20 31 20 6e 69 | 6c 20 31 33 20 64 65 6c |\n" 1 ni|l 13 del|
|000025c0| 65 74 65 2d 63 68 61 72 | 20 2d 31 20 6c 6f 6f 6b |ete-char| -1 look|
|000025d0| 69 6e 67 2d 61 74 20 22 | 5e 5c 5c 2e 24 22 20 73 |ing-at "|^\\.$" s|
|000025e0| 65 61 72 63 68 2d 66 6f | 72 77 61 72 64 20 22 5c |earch-fo|rward "\|
|000025f0| 6e 2e 2e 22 20 74 5d 20 | 34 20 22 5c 0a 44 65 63 |n.." t] |4 "\.Dec|
|00002600| 6f 64 65 20 74 65 78 74 | 20 74 72 61 6e 73 6d 69 |ode text| transmi|
|00002610| 74 74 65 64 20 62 79 20 | 4e 4e 54 50 2e 0a 30 2e |tted by |NNTP..0.|
|00002620| 20 44 65 6c 65 74 65 20 | 73 74 61 74 75 73 20 6c | Delete |status l|
|00002630| 69 6e 65 2e 0a 31 2e 20 | 44 65 6c 65 74 65 20 60 |ine..1. |Delete `|
|00002640| 5e 4d 27 20 61 74 20 65 | 6e 64 20 6f 66 20 6c 69 |^M' at e|nd of li|
|00002650| 6e 65 2e 0a 32 2e 20 44 | 65 6c 65 74 65 20 60 2e |ne..2. D|elete `.|
|00002660| 27 20 61 74 20 65 6e 64 | 20 6f 66 20 62 75 66 66 |' at end| of buff|
|00002670| 65 72 20 28 65 6e 64 20 | 6f 66 20 74 65 78 74 20 |er (end |of text |
|00002680| 6d 61 72 6b 29 2e 0a 33 | 2e 20 44 65 6c 65 74 65 |mark)..3|. Delete|
|00002690| 20 60 2e 27 20 61 74 20 | 62 65 67 69 6e 6e 69 6e | `.' at |beginnin|
|000026a0| 67 20 6f 66 20 6c 69 6e | 65 2e 22 5d 29 0a 28 64 |g of lin|e."]).(d|
|000026b0| 65 66 61 6c 69 61 73 20 | 27 6e 6e 74 70 2d 65 6e |efalias |'nntp-en|
|000026c0| 63 6f 64 65 2d 74 65 78 | 74 20 23 5b 6e 69 6c 20 |code-tex|t #[nil |
|000026d0| 22 8a 64 62 88 6e 84 0b | 00 c0 63 88 65 62 88 c1 |".db.n..|..c.eb..|
|000026e0| c2 c3 c4 23 83 1c 00 c5 | 63 88 82 0e 00 64 62 88 |...#....|c....db.|
|000026f0| c6 63 29 87 22 20 5b 22 | 5c 6e 22 20 73 65 61 72 |.c)." ["|\n" sear|
|00002700| 63 68 2d 66 6f 72 77 61 | 72 64 20 22 5c 6e 2e 22 |ch-forwa|rd "\n."|
|00002710| 20 6e 69 6c 20 74 20 22 | 2e 22 20 22 2e 5c 6e 22 | nil t "|." ".\n"|
|00002720| 5d 20 34 20 22 5c 0a 45 | 6e 63 6f 64 65 20 74 65 |] 4 "\.E|ncode te|
|00002730| 78 74 20 69 6e 20 63 75 | 72 72 65 6e 74 20 62 75 |xt in cu|rrent bu|
|00002740| 66 66 65 72 20 66 6f 72 | 20 4e 4e 54 50 20 74 72 |ffer for| NNTP tr|
|00002750| 61 6e 73 6d 69 73 73 69 | 6f 6e 2e 0a 31 2e 20 49 |ansmissi|on..1. I|
|00002760| 6e 73 65 72 74 20 60 2e | 27 20 61 74 20 62 65 67 |nsert `.|' at beg|
|00002770| 69 6e 6e 69 6e 67 20 6f | 66 20 6c 69 6e 65 2e 0a |inning o|f line..|
|00002780| 32 2e 20 49 6e 73 65 72 | 74 20 60 2e 27 20 61 74 |2. Inser|t `.' at|
|00002790| 20 65 6e 64 20 6f 66 20 | 62 75 66 66 65 72 20 28 | end of |buffer (|
|000027a0| 65 6e 64 20 6f 66 20 74 | 65 78 74 20 6d 61 72 6b |end of t|ext mark|
|000027b0| 29 2e 22 5d 29 0a 28 64 | 65 66 61 6c 69 61 73 20 |)."]).(d|efalias |
|000027c0| 27 6e 6e 74 70 2d 73 65 | 6e 64 2d 63 6f 6d 6d 61 |'nntp-se|nd-comma|
|000027d0| 6e 64 20 23 5b 28 72 65 | 73 70 6f 6e 73 65 20 63 |nd #[(re|sponse c|
|000027e0| 6d 64 20 26 72 65 73 74 | 20 61 72 67 73 29 20 22 |md &rest| args) "|
|000027f0| 8a 08 71 88 c1 20 88 c2 | c3 0c 0d 23 88 0e 06 83 |..q.. ..|...#....|
|00002800| 19 00 c7 0e 06 21 82 1a | 00 c8 29 87 22 20 5b 6e |.....!..|..)." [n|
|00002810| 6e 74 70 2d 73 65 72 76 | 65 72 2d 62 75 66 66 65 |ntp-serv|er-buffe|
|00002820| 72 20 65 72 61 73 65 2d | 62 75 66 66 65 72 20 61 |r erase-|buffer a|
|00002830| 70 70 6c 79 20 6e 6e 74 | 70 2d 73 65 6e 64 2d 73 |pply nnt|p-send-s|
|00002840| 74 72 69 6e 67 73 2d 74 | 6f 2d 73 65 72 76 65 72 |trings-t|o-server|
|00002850| 20 63 6d 64 20 61 72 67 | 73 20 72 65 73 70 6f 6e | cmd arg|s respon|
|00002860| 73 65 20 6e 6e 74 70 2d | 77 61 69 74 2d 66 6f 72 |se nntp-|wait-for|
|00002870| 2d 72 65 73 70 6f 6e 73 | 65 20 74 5d 20 34 20 22 |-respons|e t] 4 "|
|00002880| 5c 0a 57 61 69 74 20 66 | 6f 72 20 73 65 72 76 65 |\.Wait f|or serve|
|00002890| 72 20 52 45 53 50 4f 4e | 53 45 20 61 66 74 65 72 |r RESPON|SE after|
|000028a0| 20 73 65 6e 64 69 6e 67 | 20 43 4d 44 20 61 6e 64 | sending| CMD and|
|000028b0| 20 6f 70 74 69 6f 6e 61 | 6c 20 41 52 47 53 20 74 | optiona|l ARGS t|
|000028c0| 6f 20 73 65 72 76 65 72 | 2e 22 5d 29 0a 28 64 65 |o server|."]).(de|
|000028d0| 66 61 6c 69 61 73 20 27 | 6e 6e 74 70 2d 77 61 69 |falias '|nntp-wai|
|000028e0| 74 2d 66 6f 72 2d 72 65 | 73 70 6f 6e 73 65 20 23 |t-for-re|sponse #|
|000028f0| 5b 28 72 65 67 65 78 70 | 29 20 22 8a c0 89 c1 5c |[(regexp|) "....\|
|00002900| 6e a7 83 0d 00 5c 6e 82 | 0e 00 c3 1c 1d 1e 06 1e |n....\n.|........|
|00002910| 07 0e 08 71 88 c9 20 88 | 0e 06 83 46 00 65 62 88 |...q.. .|...F.eb.|
|00002920| ca cb 21 83 30 00 cc 89 | 16 06 82 1d 00 ca cd 21 |..!.0...|.......!|
|00002930| 83 40 00 cc 16 07 cc 89 | 16 06 82 1d 00 c9 20 88 |.@......|...... .|
|00002940| 82 1b 00 cc 7f 88 65 60 | 7b 16 0e 0e 07 85 a1 00 |......e`|{.......|
|00002950| c0 16 06 0e 06 83 92 00 | 64 62 88 cf 79 88 ca 0e |........|db..y...|
|00002960| 10 21 83 6f 00 cc 89 16 | 06 82 58 00 5c 6e 83 8c |.!.o....|..X.\n..|
|00002970| 00 d1 20 0c a5 1e 12 0d | 0e 12 55 84 8b 00 0e 12 |.. .....|..U.....|
|00002980| 15 d3 d4 d5 0d d6 5c 22 | 5c 22 88 29 c9 20 88 82 |......\"|\".). ..|
|00002990| 56 00 5c 6e 83 a0 00 0d | c1 56 83 a0 00 d3 d7 21 |V.\n....|.V.....!|
|000029a0| 88 c0 2d 87 22 20 5b 74 | 20 30 20 6e 6e 74 70 2d |..-." [t| 0 nntp-|
|000029b0| 64 65 62 75 67 2d 72 65 | 61 64 20 31 30 30 30 30 |debug-re|ad 10000|
|000029c0| 20 64 6f 74 73 69 7a 65 | 20 64 6f 74 6e 75 6d 20 | dotsize| dotnum |
|000029d0| 77 61 69 74 20 73 74 61 | 74 75 73 20 6e 6e 74 70 |wait sta|tus nntp|
|000029e0| 2d 73 65 72 76 65 72 2d | 62 75 66 66 65 72 20 6e |-server-|buffer n|
|000029f0| 6e 74 70 2d 61 63 63 65 | 70 74 2d 72 65 73 70 6f |ntp-acce|pt-respo|
|00002a00| 6e 73 65 20 6c 6f 6f 6b | 69 6e 67 2d 61 74 20 22 |nse look|ing-at "|
|00002a10| 5b 32 33 5d 22 20 6e 69 | 6c 20 22 5b 34 35 5d 22 |[23]" ni|l "[45]"|
|00002a20| 20 6e 6e 74 70 2d 73 74 | 61 74 75 73 2d 73 74 72 | nntp-st|atus-str|
|00002a30| 69 6e 67 20 2d 31 20 72 | 65 67 65 78 70 20 62 75 |ing -1 r|egexp bu|
|00002a40| 66 66 65 72 2d 73 69 7a | 65 20 6e 65 77 6e 75 6d |ffer-siz|e newnum|
|00002a50| 20 6d 65 73 73 61 67 65 | 20 22 4e 4e 54 50 3a 20 | message| "NNTP: |
|00002a60| 52 65 61 64 69 6e 67 20 | 25 73 22 20 6d 61 6b 65 |Reading |%s" make|
|00002a70| 2d 73 74 72 69 6e 67 20 | 34 36 20 22 22 5d 20 36 |-string |46 ""] 6|
|00002a80| 20 22 5c 0a 57 61 69 74 | 20 66 6f 72 20 73 65 72 | "\.Wait| for ser|
|00002a90| 76 65 72 20 72 65 73 70 | 6f 6e 73 65 20 77 68 69 |ver resp|onse whi|
|00002aa0| 63 68 20 6d 61 74 63 68 | 65 73 20 52 45 47 45 58 |ch match|es REGEX|
|00002ab0| 50 2e 22 5d 29 0a 28 64 | 65 66 61 6c 69 61 73 20 |P."]).(d|efalias |
|00002ac0| 27 6e 6e 74 70 2d 73 65 | 6e 64 2d 73 74 72 69 6e |'nntp-se|nd-strin|
|00002ad0| 67 73 2d 74 6f 2d 73 65 | 72 76 65 72 20 23 5b 28 |gs-to-se|rver #[(|
|00002ae0| 26 72 65 73 74 20 73 74 | 72 69 6e 67 73 29 20 22 |&rest st|rings) "|
|00002af0| 08 40 08 41 18 19 08 83 | 17 00 09 c2 08 40 51 11 |.@.A....|.....@Q.|
|00002b00| 08 41 89 10 84 5c 6e 00 | c3 0c 09 c5 50 5c 22 2a |.A...\n.|....P\"*|
|00002b10| 87 22 20 5b 73 74 72 69 | 6e 67 73 20 63 6d 64 20 |." [stri|ngs cmd |
|00002b20| 22 20 22 20 70 72 6f 63 | 65 73 73 2d 73 65 6e 64 |" " proc|ess-send|
|00002b30| 2d 73 74 72 69 6e 67 20 | 6e 6e 74 70 2d 73 65 72 |-string |nntp-ser|
|00002b40| 76 65 72 2d 70 72 6f 63 | 65 73 73 20 22 0d 5c 6e |ver-proc|ess ".\n|
|00002b50| 22 5d 20 35 20 22 5c 0a | 53 65 6e 64 20 6c 69 73 |"] 5 "\.|Send lis|
|00002b60| 74 20 6f 66 20 53 54 52 | 49 4e 47 53 20 74 6f 20 |t of STR|INGS to |
|00002b70| 6e 65 77 73 20 73 65 72 | 76 65 72 20 61 73 20 63 |news ser|ver as c|
|00002b80| 6f 6d 6d 61 6e 64 20 61 | 6e 64 20 69 74 73 20 61 |ommand a|nd its a|
|00002b90| 72 67 75 6d 65 6e 74 73 | 2e 22 5d 29 0a 28 64 65 |rguments|."]).(de|
|00002ba0| 66 61 6c 69 61 73 20 27 | 6e 6e 74 70 2d 73 65 6e |falias '|nntp-sen|
|00002bb0| 64 2d 72 65 67 69 6f 6e | 2d 74 6f 2d 73 65 72 76 |d-region|-to-serv|
|00002bc0| 65 72 20 23 5b 28 62 65 | 67 69 6e 20 65 6e 64 29 |er #[(be|gin end)|
|00002bd0| 20 22 8a c0 09 5c 6e 0b | 23 88 09 71 88 65 12 64 | "...\n.|#..q.e.d|
|00002be0| 13 c4 c5 1e 06 1e 07 8c | 5c 6e 0b 7d 88 5c 6e 62 |........|\n.}.\nb|
|00002bf0| 88 6d 84 46 00 8a 0b 60 | 0e 06 5c 5c 5e 62 88 6d |.m.F...`|..\\^b.m|
|00002c00| 84 30 00 c8 75 88 60 29 | 16 07 c9 0e 5c 6e 60 0e |.0..u.`)|....\n`.|
|00002c10| 07 23 88 cb 20 88 0e 07 | 62 88 82 1c 00 2b 5c 6e |.#.. ...|b....+\n|
|00002c20| 0b 7c 29 87 22 20 5b 63 | 6f 70 79 2d 74 6f 2d 62 |.|)." [c|opy-to-b|
|00002c30| 75 66 66 65 72 20 6e 6e | 74 70 2d 73 65 72 76 65 |uffer nn|tp-serve|
|00002c40| 72 2d 62 75 66 66 65 72 | 20 62 65 67 69 6e 20 65 |r-buffer| begin e|
|00002c50| 6e 64 20 6e 69 6c 20 31 | 30 30 20 73 69 7a 65 20 |nd nil 1|00 size |
|00002c60| 6c 61 73 74 20 31 20 70 | 72 6f 63 65 73 73 2d 73 |last 1 p|rocess-s|
|00002c70| 65 6e 64 2d 72 65 67 69 | 6f 6e 20 6e 6e 74 70 2d |end-regi|on nntp-|
|00002c80| 73 65 72 76 65 72 2d 70 | 72 6f 63 65 73 73 20 61 |server-p|rocess a|
|00002c90| 63 63 65 70 74 2d 70 72 | 6f 63 65 73 73 2d 6f 75 |ccept-pr|ocess-ou|
|00002ca0| 74 70 75 74 5d 20 34 20 | 22 5c 0a 53 65 6e 64 20 |tput] 4 |"\.Send |
|00002cb0| 63 75 72 72 65 6e 74 20 | 62 75 66 66 65 72 20 72 |current |buffer r|
|00002cc0| 65 67 69 6f 6e 20 28 66 | 72 6f 6d 20 42 45 47 49 |egion (f|rom BEGI|
|00002cd0| 4e 20 74 6f 20 45 4e 44 | 29 20 74 6f 20 6e 65 77 |N to END|) to new|
|00002ce0| 73 20 73 65 72 76 65 72 | 2e 22 5d 29 0a 28 64 65 |s server|."]).(de|
|00002cf0| 66 61 6c 69 61 73 20 27 | 6e 6e 74 70 2d 6f 70 65 |falias '|nntp-ope|
|00002d00| 6e 2d 73 65 72 76 65 72 | 2d 69 6e 74 65 72 6e 61 |n-server|-interna|
|00002d10| 6c 20 23 5b 28 68 6f 73 | 74 20 26 6f 70 74 69 6f |l #[(hos|t &optio|
|00002d20| 6e 61 6c 20 73 65 72 76 | 69 63 65 29 20 22 8a c0 |nal serv|ice) "..|
|00002d30| c1 21 84 0b 00 c2 c3 21 | 88 c4 c5 21 89 16 06 71 |.!.....!|...!...q|
|00002d40| 88 c7 70 21 88 c8 20 88 | c9 20 88 ca 16 0b c1 cc |..p!.. .|. ......|
|00002d50| 70 0e 0d 0e 0e 86 2b 00 | cf 24 16 10 0e 0d 16 11 |p.....+.|.$......|
|00002d60| d2 d3 21 88 0e 10 29 87 | 22 20 5b 66 62 6f 75 6e |..!...).|" [fboun|
|00002d70| 64 70 20 6f 70 65 6e 2d | 6e 65 74 77 6f 72 6b 2d |dp open-|network-|
|00002d80| 73 74 72 65 61 6d 20 72 | 65 71 75 69 72 65 20 74 |stream r|equire t|
|00002d90| 63 70 20 67 65 74 2d 62 | 75 66 66 65 72 2d 63 72 |cp get-b|uffer-cr|
|00002da0| 65 61 74 65 20 22 20 2a | 6e 6e 74 70 64 2a 22 20 |eate " *|nntpd*" |
|00002db0| 6e 6e 74 70 2d 73 65 72 | 76 65 72 2d 62 75 66 66 |nntp-ser|ver-buff|
|00002dc0| 65 72 20 62 75 66 66 65 | 72 2d 66 6c 75 73 68 2d |er buffe|r-flush-|
|00002dd0| 75 6e 64 6f 20 65 72 61 | 73 65 2d 62 75 66 66 65 |undo era|se-buffe|
|00002de0| 72 20 6b 69 6c 6c 2d 61 | 6c 6c 2d 6c 6f 63 61 6c |r kill-a|ll-local|
|00002df0| 2d 76 61 72 69 61 62 6c | 65 73 20 74 20 63 61 73 |-variabl|es t cas|
|00002e00| 65 2d 66 6f 6c 64 2d 73 | 65 61 72 63 68 20 22 6e |e-fold-s|earch "n|
|00002e10| 6e 74 70 64 22 20 68 6f | 73 74 20 73 65 72 76 69 |ntpd" ho|st servi|
|00002e20| 63 65 20 22 6e 6e 74 70 | 22 20 6e 6e 74 70 2d 73 |ce "nntp|" nntp-s|
|00002e30| 65 72 76 65 72 2d 70 72 | 6f 63 65 73 73 20 6e 6e |erver-pr|ocess nn|
|00002e40| 74 70 2d 73 65 72 76 65 | 72 2d 6e 61 6d 65 20 72 |tp-serve|r-name r|
|00002e50| 75 6e 2d 68 6f 6f 6b 73 | 20 6e 6e 74 70 2d 73 65 |un-hooks| nntp-se|
|00002e60| 72 76 65 72 2d 68 6f 6f | 6b 5d 20 36 20 22 5c 0a |rver-hoo|k] 6 "\.|
|00002e70| 4f 70 65 6e 20 63 6f 6e | 6e 65 63 74 69 6f 6e 20 |Open con|nection |
|00002e80| 74 6f 20 6e 65 77 73 20 | 73 65 72 76 65 72 20 6f |to news |server o|
|00002e90| 6e 20 48 4f 53 54 20 62 | 79 20 53 45 52 56 49 43 |n HOST b|y SERVIC|
|00002ea0| 45 20 28 64 65 66 61 75 | 6c 74 20 69 73 20 6e 6e |E (defau|lt is nn|
|00002eb0| 74 70 29 2e 22 5d 29 0a | 28 64 65 66 61 6c 69 61 |tp)."]).|(defalia|
|00002ec0| 73 20 27 6e 6e 74 70 2d | 63 6c 6f 73 65 2d 73 65 |s 'nntp-|close-se|
|00002ed0| 72 76 65 72 2d 69 6e 74 | 65 72 6e 61 6c 20 23 5b |rver-int|ernal #[|
|00002ee0| 6e 69 6c 20 22 08 83 08 | 00 c1 08 21 88 5c 6e 83 |nil "...|...!.\n.|
|00002ef0| 10 00 c3 5c 6e 21 88 c4 | 12 c4 89 10 87 22 20 5b |...\n!..|....." [|
|00002f00| 6e 6e 74 70 2d 73 65 72 | 76 65 72 2d 70 72 6f 63 |nntp-ser|ver-proc|
|00002f10| 65 73 73 20 64 65 6c 65 | 74 65 2d 70 72 6f 63 65 |ess dele|te-proce|
|00002f20| 73 73 20 6e 6e 74 70 2d | 73 65 72 76 65 72 2d 62 |ss nntp-|server-b|
|00002f30| 75 66 66 65 72 20 6b 69 | 6c 6c 2d 62 75 66 66 65 |uffer ki|ll-buffe|
|00002f40| 72 20 6e 69 6c 5d 20 32 | 20 22 5c 0a 43 6c 6f 73 |r nil] 2| "\.Clos|
|00002f50| 65 20 63 6f 6e 6e 65 63 | 74 69 6f 6e 20 74 6f 20 |e connec|tion to |
|00002f60| 6e 65 77 73 20 73 65 72 | 76 65 72 2e 22 5d 29 0a |news ser|ver."]).|
|00002f70| 28 64 65 66 61 6c 69 61 | 73 20 27 6e 6e 74 70 2d |(defalia|s 'nntp-|
|00002f80| 61 63 63 65 70 74 2d 72 | 65 73 70 6f 6e 73 65 20 |accept-r|esponse |
|00002f90| 23 5b 6e 69 6c 20 22 c0 | 09 21 c2 3e 84 0c 00 c3 |#[nil ".|.!.>....|
|00002fa0| c4 21 88 0d 83 1c 00 c6 | c7 21 88 c8 c9 21 88 c6 |.!......|.!...!..|
|00002fb0| ca 21 87 cb cc cd 8f 87 | 22 20 5b 70 72 6f 63 65 |.!......|" [proce|
|00002fc0| 73 73 2d 73 74 61 74 75 | 73 20 6e 6e 74 70 2d 73 |ss-statu|s nntp-s|
|00002fd0| 65 72 76 65 72 2d 70 72 | 6f 63 65 73 73 20 28 6f |erver-pr|ocess (o|
|00002fe0| 70 65 6e 20 72 75 6e 29 | 20 65 72 72 6f 72 20 22 |pen run)| error "|
|00002ff0| 4e 4e 54 50 3a 20 43 6f | 6e 6e 65 63 74 69 6f 6e |NNTP: Co|nnection|
|00003000| 20 63 6c 6f 73 65 64 2e | 22 20 6e 6e 74 70 2d 62 | closed.|" nntp-b|
|00003010| 75 67 67 79 2d 73 65 6c | 65 63 74 20 6d 65 73 73 |uggy-sel|ect mess|
|00003020| 61 67 65 20 22 4e 4e 54 | 50 3a 20 52 65 61 64 69 |age "NNT|P: Readi|
|00003030| 6e 67 2e 2e 2e 22 20 73 | 6c 65 65 70 2d 66 6f 72 |ng..." s|leep-for|
|00003040| 20 31 20 22 22 20 65 72 | 72 6f 72 63 6f 64 65 20 | 1 "" er|rorcode |
|00003050| 28 61 63 63 65 70 74 2d | 70 72 6f 63 65 73 73 2d |(accept-|process-|
|00003060| 6f 75 74 70 75 74 20 6e | 6e 74 70 2d 73 65 72 76 |output n|ntp-serv|
|00003070| 65 72 2d 70 72 6f 63 65 | 73 73 29 20 28 28 65 72 |er-proce|ss) ((er|
|00003080| 72 6f 72 20 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |ror (byt|e-code "|
|00003090| 08 41 40 c1 98 83 5c 6e | 00 c2 87 c3 08 40 08 41 |.A@...\n|.....@.A|
|000030a0| 5c 22 87 22 20 5b 65 72 | 72 6f 72 63 6f 64 65 20 |\"." [er|rorcode |
|000030b0| 22 73 65 6c 65 63 74 20 | 65 72 72 6f 72 3a 20 49 |"select |error: I|
|000030c0| 6e 76 61 6c 69 64 20 61 | 72 67 75 6d 65 6e 74 22 |nvalid a|rgument"|
|000030d0| 20 6e 69 6c 20 73 69 67 | 6e 61 6c 5d 20 33 29 29 | nil sig|nal] 3))|
|000030e0| 29 5d 20 33 20 22 5c 0a | 52 65 61 64 20 72 65 73 |)] 3 "\.|Read res|
|000030f0| 70 6f 6e 73 65 20 6f 66 | 20 73 65 72 76 65 72 2e |ponse of| server.|
|00003100| 0a 49 74 20 69 73 20 77 | 65 6c 6c 2d 6b 6e 6f 77 |.It is w|ell-know|
|00003110| 6e 20 74 68 61 74 20 74 | 68 65 20 63 6f 6d 6d 75 |n that t|he commu|
|00003120| 6e 69 63 61 74 69 6f 6e | 20 73 70 65 65 64 20 77 |nication| speed w|
|00003130| 69 6c 6c 20 62 65 20 6d | 75 63 68 20 69 6d 70 72 |ill be m|uch impr|
|00003140| 6f 76 65 64 20 62 79 0a | 64 65 66 69 6e 69 6e 67 |oved by.|defining|
|00003150| 20 74 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 61 | this fu|nction a|
|00003160| 73 20 6d 61 63 72 6f 2e | 22 5d 29 0a 28 70 72 6f |s macro.|"]).(pro|
|00003170| 76 69 64 65 20 28 71 75 | 6f 74 65 20 6e 6e 74 70 |vide (qu|ote nntp|
|00003180| 29 29 0a | |)). | |
+--------+-------------------------+-------------------------+--------+--------+