home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume14 / vn.nntp.pch / config_std.h next >
C/C++ Source or Header  |  1988-04-19  |  6KB  |  166 lines

  1. /*
  2. ** default news poster
  3. ** If talking to an NNTP server, and there is a %s in this somewhere,
  4. ** the machine will be substituted at runtime
  5. **
  6. ** LOC_POST only applies for NNTP.  It is the poster used in conjunction
  7. ** with the +l option or NULL for DEF_MACHINE, ie. when you are reading
  8. ** the local files directly instead of through NNTP.
  9. */
  10. #define DEF_POST "/usr/lib/news/inews -h"
  11. #define LOC_POST "/usr/lib/news/inews -h"
  12.  
  13. /*
  14. ** DEF_MACHINE
  15. **
  16. ** this will affect only NNTP versions, and will have to differ from
  17. ** site to site.  shipped commented out so that you will be forced to set it
  18. **
  19. ** NULL or empty string will result in direct reading of the local files
  20. ** rather than NNTP.
  21. #define DEF_MACHINE "rtech"
  22. */
  23.  
  24. /*
  25. ** SHOW_FROM applies only to NNTP.  If defined, a FROM line will be
  26. ** placed in the user's file when posting followups.  FROM_CR_FORM
  27. ** is the format used for the From line, with arguments corresponding
  28. ** to the "From: " header, the user name, the machine name and the user's
  29. ** "gecos" string, in that order.
  30. **
  31. ** This is distributed turned off, since the feature may encourage
  32. ** userid forgery.  If turned off, vn will prepend the user's article
  33. ** with the FROM line instead, effectively preventing the user from
  34. ** specifying one.  In the non-NNTP case, inews runs as the user,
  35. ** and constructs a FROM line if the user didn't
  36. **
  37. ** If SHOW_FROM is not defined, REPLY_CR_FORM may be defined, which shows
  38. ** the user a "Reply-to" line to edit into a more appropriate mail reply path.
  39. ** If defined, REPLY_CR_FORM is the format used for the line with arguments
  40. ** corresponding to the "Reply-to: " header, the user name, and the machine
  41. ** name, in that order.
  42. **
  43. ** An important point is that since the _FORM strings have the header as one
  44. ** of their arguments, they had better begin with "%s" to work right.
  45. **
  46. ** The machine placed into these lines is the HOST machine, usually.
  47. ** If FROM_REAL is defined, the actual machine the user is logged into
  48. ** is used instead.  Using the host works well locally, since our news
  49. ** gateway also functions as a mail gateway.  If you ALSO define MACH_CONCAT,
  50. ** the machine placed into the from line will be <host>!<real>.  Using
  51. ** either of these alternatives may lead to problems since you are then
  52. ** displaying your internal machine names to the outside world, and the
  53. ** names are very likely conflict with some net site or another.
  54. #define FROM_REAL
  55. #define MACH_CONCAT
  56. #define SHOW_FROM
  57. #define REPLY_CR_FORM "%s%s@%s.UUCP"
  58. */
  59. #define FROM_CR_FORM "%s%s@%s.UUCP (%s)"
  60.  
  61. /*
  62. ** default user .newsrc file
  63. */
  64. #define DEF_NEWSRC ".newsrc"
  65.  
  66. /*
  67. ** If INLETTER is defined, the address line will be placed into the
  68. ** file editted by the user, and the mailer is assumed smart enough
  69. ** to understand about header lines in the file.  Otherwise the
  70. ** address is part of the mailer's command line.
  71. **
  72. ** if MAILSMART is defined, The From: line will be used for mail replies,
  73. ** or overridden by a "Reply-to:" line if present - "Path:" will be used
  74. ** as a last resort.  If MAILSMART is not defined, "Path:" will simply be
  75. ** used.
  76. **
  77. ** if MAILCHOOSE is defined, the user is prompted before edit with all
  78. ** of the address lines to choose from, or to input a new one.  MAILCHOOSE
  79. ** makes MAILSMART irrelevant, but the two are independent of INLETTER.
  80. **
  81. #define MAILCHOOSE
  82. */
  83. #define MAILSMART
  84. #define INLETTER
  85.  
  86. /*
  87. ** default mail sender.  If INLETTER, will be done as
  88. ** cat <file> | DEF_MAIL,  Otherwise, cat <file> | DEF_MAIL <address>
  89. ** user's MAILER variable will have to conform, too.
  90. */
  91. #ifdef INLETTER
  92. #define DEF_MAIL "/usr/lib/sendmail -t"
  93. #else
  94. #define DEF_MAIL "/bin/mail"
  95. #endif
  96.  
  97. /*
  98. ** OLDRC defined for an apparently earlier news version which took unnamed
  99. ** command line options as synonyms for -n, and did not take ranges in
  100. ** the .newsrc file.  Probably useless, but kept in for historical reasons.
  101. **
  102. **#define OLDRC
  103. */
  104.  
  105. /*
  106. ** article spool directory
  107. */
  108. #define SPOOLDIR "/usr/spool/news"
  109.  
  110. /*
  111. ** active file
  112. */
  113. #define ACTFILE "/usr/lib/news/active"
  114.  
  115. /*
  116. ** maximum number of option lines in .newsrc
  117. */
  118. #define OPTLINES 60
  119.  
  120. /*
  121. ** maximum number of filter options
  122. */
  123. #define NUMFILTER 30
  124.  
  125. /*
  126. ** maximum number of file lines to search looking for header lines.
  127. */
  128. #define HDR_LINES 36
  129.  
  130. /*
  131. ** When a newsgroup is scanned, we ignore articles less than <high spool> -
  132. ** MAXARTRANGE.  This is intended to prevent ridiculous numbers of article
  133. ** opening attempts the first time a user reads a new newsgroup which has a
  134. ** huge difference between the high and low spool numbers, perhaps due to
  135. ** some articles not getting expired.
  136. */
  137. #define MAXARTRANGE 1600    /* about 2 weeks of soc.singles */
  138.  
  139. /*
  140. ** If we detect that the user has a higher number in .newsrc than the
  141. ** high article number, obviously the active file is out of synch with the
  142. ** .newsrc.  We set the user's number back to the low article number in
  143. ** this case, on the theory that it's better to repeat stuff than miss
  144. ** articles.  On such setbacks, we won't backdate the user by more than
  145. ** SYN_SETBACK articles, preventing floods of articles on large newsgroups
  146. ** if you don't define SYN_CHECK, the user's number won't be adjusted in
  147. ** this case, choosing to lose articles rather than show old ones.
  148. */
  149. #define SYN_CHECK
  150. #define SYN_SETBACK 60
  151.  
  152. /*
  153. ** Normally, unrecognized newsgroup names are silently removed from the
  154. ** user's .newsrc
  155. **
  156. ** if KEEP_UNK is defined, unknown newsgroups will be left alone in
  157. ** the users .newsrc.  This is intended to allow the same .newsrc
  158. ** to be used against servers on different NNTP installations.  Of course,
  159. ** it works only if newsgroup names are unique across installations.
  160. ** Essentially, this is a hack for our local situation, which may come
  161. ** in handy for somebody else.  If this is defined, users will have to
  162. ** edit out bogus newsgroup names in their own .newsrc's if they wish
  163. ** to keep it accurate.
  164. #define KEEP_UNK
  165. */
  166.