home *** CD-ROM | disk | FTP | other *** search
/ Beijing Paradise BBS Backup / PARADISE.ISO / software / BBSDOORW / CPPNWS18.ZIP / CPPNEWS.DOC next >
Encoding:
Text File  |  1992-09-23  |  10.7 KB  |  239 lines

  1. Preliminary cppnews documentation $Revision: 1.2 $
  2.  
  3. The significance of the cppnews.ini variables
  4. =============================================
  5.  
  6. File and directory names
  7. ~~~~~~~~~~~~~~~~~~~~~~~~
  8. <news_dir> is set from your CPPNEWS environment variable. If there is no
  9. CPPNEWS environment variable, the SNEWS environment variable is tried
  10. instead. If there is no SNEWS environment variable either, the current
  11. directory is used. 
  12.  
  13. Filenames for the various files used by the system, and the use of each
  14. of these files, is given below ...
  15.  
  16. cppnews.ini - <news_dir>\cppnews.ini
  17.  
  18. This is where the cppnews.ini file is expected. If none exists, the 
  19. default values of the variables are taken from any existing SNEWS.RC file.
  20. The file is re-written to this directory on normal program exit.
  21. To change most of the other variables, the normal method is to edit this 
  22. file. It is not normally necessary to edit any of the other files used by 
  23. the system (except the signature file), and in many cases an incorrect 
  24. edit can prevent the proper function of the news reading system.
  25.  
  26. Newsgroups index - <newsdir>\active
  27.  
  28. This is created by the snews unbatch, addgroup and rmgroup programs. It 
  29. contains a list of all active groups, with a line for each group giving 
  30. the group name, the filename and the first and last message numbers.
  31.  
  32. DO NOT attempt to edit this file yourself, unless you REALLY know what you
  33. are doing.
  34.  
  35. To add or remove groups, use the snews addgroup and rmgroup programs, 
  36. respectively.
  37.  
  38. Articles read list - <news_dir>\<userid>.nrc
  39.  
  40. This is a list of all the newsgroup articles that have been read. It 
  41. contains records, one per logical line, of a newsgroup name followed by a 
  42. space-separated list of article numbers. A logical line is split over 
  43. multiple physical lines by including a backslash character (\) at the end 
  44. of each physical line.
  45.  
  46. DO NOT attempt to edit this file yourself, unless you know what you are
  47. doing. 
  48.  
  49. The file is automatically maintained by cppnews. You can mark articles, 
  50. threads and whole groups as read or unread using cppnews menu options.
  51.  
  52. Kill file - <news_dir>\<userid>.kil
  53.  
  54. This is a list of hash codes of subject lines that have been "killed". 
  55. Hash codes are used for speedy lookup, and to allow some "fuzzy matching" 
  56. in subject lines. 
  57.  
  58. I can't see any purpose behind editing this file - it is just a list of 
  59. apparently meaningless numbers !
  60.  
  61. This file is automatically maintained by cppnews on normal exit from the
  62. program. Thread/Kill and Thread/Revive menu options are provided to add
  63. and remove subject lines from the kill list. 
  64.  
  65. Incoming mail folders - <maildir>\*.<mailext>
  66.  
  67. Cppnews uses this mask to look for mail folders. If you create a new folder
  68. within cppnews, it will be created in the <maildir>, so it can be found 
  69. next time.
  70.  
  71.  
  72. The contents of this file are mail messages. The start of a new message is
  73. recognised by the <startofheader> string at the beginning of a line.
  74. My mailer justs throws the messages onto the end of the file, so I use
  75. "From " (note the space) as my <startofheader>. Some mailers place a 
  76. special marker between each message (e.g. a ^A character) - if yours does,
  77. use this as your <startofheader> (you will need a good editor to place a 
  78. ^A character in your cppnews.ini).
  79.  
  80. Once cppnews has read the mailbox, it reformats it to place its own 
  81. markers between each message. This header includes the size of the 
  82. message, and offsets to various important header lines, so subsequent 
  83. reading of the file is much faster. New messages added to the end by your 
  84. mailer are recognised as such the next time you run cppnews.
  85.  
  86. DO NOT attempt to edit this file yourself, unless you know what you are
  87. doing - you could lose mail messages altogether if you change the number
  88. of characters of text in a message that has been reformatted by cppnews.
  89. You can add new messages to the end of the file, though, but beware of 
  90. text editors that invisibly change the text (e.g. removing trailing 
  91. spaces, expanding tabs, changing line feed delimiters).
  92.  
  93. Group file -<news_dir>\newsbase\*
  94. Group index - <news_dir>\newsbase\*.idx
  95.  
  96. The snews unbatch and expire programs create and maintain these files.
  97. There is one text file and one index file per group. The filename is 
  98. obtained from the Newsgroups Index. The text file contains all the news 
  99. postings, separated by a line containing "@@@@END" (although this latter 
  100. is not essential). The index file contains one line per posting, with the 
  101. offset of the article in the file, the article number, the date the 
  102. article was added to the file by unbatch, and the article subject.
  103.  
  104. DO NOT attempt to edit these files yourself, unless you REALLY know what
  105. you are doing. The index file contains pointers into the text file, so 
  106. they must be kept in step (e.g. when doing backup/restore).
  107.  
  108. Signature - <home>\<signature>
  109.  
  110. You can edit this file to place any signature text you want to follow all 
  111. your mail messages and news postings. It is automatically read in to the 
  112. editor buffer ready for you to compose your message. Please bear in mind 
  113. that your signature uses up net bandwith, so don't go overboard !
  114.  
  115. Outgoing mail sequence number file - <mailqueue>\sequence.seq
  116. Outgoing mail work files - <mailqueue>\*.wrk
  117. Outgoing mail text files - <mailqueue>\*.txt
  118.  
  119. Cppnews places all outgoing mail messages into the <mailqueue> directory.
  120. The sequence.seq file contains the number of the last item posted to the
  121. queue. This file is updated during each posting. This form of posting is 
  122. known to be compatible with KA9Q. Support for other mail agents with 
  123. different queue schemes will be considered. If your mailer is different,
  124. let me know the details by mailing cppnews@trmphrst.demon.co.uk.
  125.  
  126. The .wrk and .txt file use this posting number as the filename. Each .txt 
  127. file contains the complete message, and the .wrk file contains routing 
  128. information - the destination machine, the fully qualified sender name, 
  129. and the fully qualified recipient name.
  130.  
  131. Unused cppnews variables - <tempdir> and <newsdir>
  132.  
  133. These are not currently used in cppnews, but are maintained in case of
  134. future enhancement. 
  135.  
  136. Posting messages
  137. ~~~~~~~~~~~~~~~~
  138. Cppnews expects messages posted to newsgroups to be handled by a news/mail
  139. server. Cppnews versions up to 1.18 only support one kind of newsserver - 
  140. a dummy mail address "mail2news@<newsserver>" which accepts articles for 
  141. posting, and despatches them to the newgroups in the header.
  142.  
  143. There is another kind of news/mail server, which accepts articles posted 
  144. to a user name derived from the newsgroup name, and posts to that group. 
  145. Some of these servers accept the newsgroup name unchanged, and some need 
  146. the full stops (.) in the newsgroup name changed to some other character.
  147.  
  148. Cppnews 1.18 will introduce improved newsserver support using a new 
  149. cppnews.ini variable <servername>. This can be set to ...
  150. The name (like "mail2news") of the first kind of server above.
  151. A single punctuation character (.,-% etc.) to indicate the second kind of 
  152. server above. The newsgroup name will have any full stops (.) in the name
  153. changed to the specified character. Specify a full stop (.) character for 
  154. no translation.
  155.  
  156. Cppnews generates default headers for mail and news postings, as follows ...
  157.  
  158. Path: <nodename>.<domain>!<userid>
  159. From: <userid>@<nodename>.<domain> (<name>)
  160. ReplyTo: <userid>@<nodename>.<domain>
  161. Subject: Re: The subject of the message/article to which this is a reply
  162. References: The message ID of the message/article to which this is a reply
  163. Cc: <mailcc> or <newscc> as appropriate
  164. Bcc: <mailbcc> or <newsbcc> as appropriate
  165. Distribution: world (news postings only)
  166. Followup-To: The first group on the To list (news postings only)
  167. Message-ID: A unique ID based on the time posted, <nodename> and <domain>
  168. X-Mailer: cppnews revision number
  169. Date: The date posted. Cppnews takes notice of your TZ environment 
  170.       variable. U.K. users should set it to GMT0BST.
  171. Organization: <organisation>
  172. Lines: The number of newlines in the message.
  173.  
  174. Other cppnews.ini variables
  175. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  176. Your text editor - <editor>
  177.  
  178. This should be set to the command line to call your editor, with a "%s" 
  179. sequence where the file name should be.
  180. There are some strange and wonderful editors out there. A few pitfalls to 
  181. look out for ...
  182.  
  183. Some editors are too big to fit in memory along with cppnews. You can 
  184. change the amount of memory cppnews takes by adjusting the <maxarticlesize>
  185. variable. This can take values from 1 to 63, and is the number of kbytes 
  186. that cppnews can use to hold article text in memory. Some editors are just
  187. too big even with <maxarticlesize> set quite small. I did consider 
  188. swapping cppnews out of memory, but the delay in calling up the editor 
  189. every time a message is posted would be unacceptable.
  190.  
  191. Some editors won't edit an empty file ! The solution to this problem is to
  192. create a signature file, so that your blank message for posting is never 
  193. empty.
  194.  
  195. Some editors don't output straight ASCII text files. Most wordprocessor
  196. files contain control characters and information, and are unsuitable for
  197. posting to the net. Some wordprocessors have a special ASCII file save 
  198. option, but a simple, small text editor is the best thing to use. There 
  199. are so many free text editors available it would be pointless to write an 
  200. internal editor for cppnews.
  201.  
  202. Article quoting prefix - <quotemark>
  203.  
  204. When you quote an existing message, the <quotemark> characters are added 
  205. at the start of every line. Most people use "> " (note the space).
  206.  
  207. Tab setting - <tabwidth>
  208.  
  209. Tab characters in articles are expanded to tab stops every <tabwidth> 
  210. characters.
  211.  
  212. Word wrap width - <wordwrap>
  213.  
  214. Long lines in articles are not usually wrapped by cppnews. If you set 
  215. <wordwrap> to a non-zero value, lines will be wrapped at a word break near
  216. this column. This value can be changed using the cppnews Options/Wordwrap 
  217. menu option.
  218.  
  219. Posting logs - <newslog> and <maillog>
  220.  
  221. If these variables are set to a mail folder name (up to 8 characters), 
  222. all news and/or mail postings are copied to the folder.
  223.  
  224.  
  225. Notes
  226. ~~~~~
  227. It may appear that because some of the file names used contain a user 
  228. name, that cppnews may be used by a number of different people. This is 
  229. currently NOT the case - the user name comes from cppnews.ini, which must 
  230. be in the newsbase directory, and the program makes ALL mailboxes publicly
  231. available, no matter what the setting of "userid".
  232.  
  233. I do intend to rectify this situation some time in the future. If you have
  234. a need for this (or any other) feature, feel free to mail the cppnews 
  235. support mailbox - cppnews@trmphrst.demon.co.uk. I keep a list of all 
  236. requests, with the number of (different users :-) requesting each one, and
  237. this helps me decide development priorities.
  238.  
  239.