home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / elm / elm2.4 / hdrs / sysdefs.SH < prev    next >
Encoding:
Text File  |  1992-12-24  |  5.1 KB  |  165 lines

  1. case $CONFIG in
  2. '')
  3.     if test ! -f config.sh; then
  4.     ln ../config.sh . || \
  5.     ln ../../config.sh . || \
  6.     ln ../../../config.sh . || \
  7.     (echo "Can't find config.sh."; exit 1)
  8.     echo "Using config.sh from above..."
  9.     fi
  10.     . ./config.sh
  11.     ;;
  12. esac
  13. case "$0" in
  14. */*) cd `expr X$0 : 'X\(.*\)/'` ;;
  15. esac
  16.  
  17. echo "Extracting hdrs/sysdefs.h (with variable substitutions)"
  18. sed <<!GROK!THIS! >sysdefs.h -e 's!^#undef!/\*#undef!'
  19. /* $Id: sysdefs.SH,v 5.4 1992/12/24 19:24:10 syd Exp $ */
  20. /*******************************************************************************
  21.  *  The Elm Mail System  -  $Revision: 5.4 $   $State: Exp $
  22.  *
  23.  *             Copyright (c) 1988-1992 USENET Community Trust
  24.  *             Copyright (c) 1986,1987 Dave Taylor
  25.  *******************************************************************************
  26.  * Bug reports, patches, comments, suggestions should be sent to:
  27.  *
  28.  *    Syd Weinstein, Elm Coordinator
  29.  *    elm@DSI.COM            dsinc!elm
  30.  *
  31.  *******************************************************************************
  32.  * $Log: sysdefs.SH,v $
  33.  * Revision 5.4  1992/12/24  19:24:10  syd
  34.  * EDITOROPTS and DEFEDITOR appear to be unused but here is
  35.  * a patch to make use of $editoropts.
  36.  * From: "Robert L. Howard" <robert.howard@matd.gatech.edu>
  37.  *
  38.  * Revision 5.3  1992/11/22  01:14:20  syd
  39.  * Allow SCO MMDF to use the mmdf library for mailer via execmail.
  40.  * From: Larry Philps <larryp@sco.com>
  41.  *
  42.  * Revision 5.2  1992/10/24  13:44:41  syd
  43.  * There is now an additional elmrc option "displaycharset", which
  44.  * sets the charset supported on your terminal. This is to prevent
  45.  * elm from calling out to metamail too often.
  46.  * Plus a slight documentation update for MIME composition (added examples)
  47.  * From: Klaus Steinberger <Klaus.Steinberger@Physik.Uni-Muenchen.DE>
  48.  *
  49.  * Revision 5.1  1992/10/03  22:34:39  syd
  50.  * Initial checkin as of 2.4 Release at PL0
  51.  *
  52.  *
  53.  ******************************************************************************/
  54.  
  55. /**  System level, configurable, defines for the ELM mail system.  **/
  56.  
  57.  
  58. #define MAX_IN_WEEDLIST 150    /* max headers to weed out               */
  59.  
  60. #define MAX_HOPS    35    /* max hops in return addr to E)veryone  */
  61.  
  62. #define DEFAULT_BATCH_SUBJECT  "$defbatsub"
  63.  
  64. #define DEFAULT_DOMAIN  "$mydomain"  /* if mydomain file is missing */
  65.  
  66. /** If you want to implement 'site hiding' in the mail, then you'll need to
  67.     uncomment the following lines and set them to reasonable values.  See 
  68.     the configuration guide for more details....(actually these are undoc-
  69.     umented because they're fairly dangerous to use.  Just ignore 'em and
  70.     perhaps one day you'll find out what they do, ok?)
  71. **/
  72.  
  73. /****************************************************************************
  74.  
  75. #define   SITE_HIDING
  76. #define   HIDDEN_SITE_NAME    "fake-machine-name"
  77. #define   HIDDEN_SITE_USERS    "/usr/mail/lists/hidden_site_users"
  78.  
  79. ****************************************************************************/
  80.  
  81. #define system_text_file        "$lib/aliases.text"
  82. #define system_data_file        "$lib/aliases"
  83. #define system_rc_file        "$lib/elm.rc"
  84.  
  85. #define ALIAS_TEXT        ".elm/aliases.text"
  86. #define ALIAS_DATA        ".elm/aliases"
  87.  
  88. #define hostdomfile             "$lib/domain"
  89.  
  90. /** where to put the output of the elm -d command... (in home dir) **/
  91. #define DEBUGFILE    "ELM:debug.info"
  92. #define OLDEBUG        "ELM:debug.last"
  93.  
  94. #define    default_temp       "$tmpdir/"
  95. #define temp_file    "snd."
  96. #define temp_form_file    "form."
  97. #define temp_mbox    "mbox."
  98. #define temp_print      "print."
  99. #define temp_edit    "elm-edit"
  100. #define temp_uuname    "uuname."
  101. #define temp_state    "est."
  102.  
  103. #define emacs_editor    "$emacs"
  104. #define vi_editor    "$vi"
  105.  
  106. #define default_editor    "$defeditor $editoropts"
  107. #define mailhome    "$maildir/"
  108.  
  109. #define default_shell    "$prefshell"
  110. #define default_pager    "$pager"
  111. #define default_printout    "$cat %s | $linepr"
  112.  
  113. #define default_charset    "$defcharset"
  114. #define default_display_charset    "$defdispcharset"
  115. #define default_encoding    "$defencoding"
  116. #define execmail    "$execmail"
  117. #define emflags        ""
  118. #define emflagsv    "-d"        /* Verbose voyuer mode */
  119. #define emflagmt    "-m"        /* metoo copy to sender */
  120.  
  121. #define sendmail    "$sendmail"
  122. #define smflags        "-oi -oem"    /* ignore dots and mail back errors */
  123. #define smflagsv    "-oi -oem -v"    /* Verbose voyuer mode */
  124. #define smflagmt    " -om"        /* metoo copy to sender */
  125. #define submitmail    "$submit"
  126. #define submitflags    "-mlrnvxto,cc*"
  127. #define submitflags_s    "-mlrnv"
  128. #define mailer        "$mailer"
  129.  
  130. #define mailx        "$mailx"
  131.  
  132. #define helphome    "$lib"
  133. #define helpfile    "elm-help"
  134.  
  135. #define ELMRC_INFO    "$lib/elmrc-info"
  136.  
  137. #define elmrcfile    ".elm/elmrc"
  138. #define old_elmrcfile    ".elm/elmrc.old"
  139. #define mailheaders    ".elm/elmheaders"
  140. #define dead_letter    "Canceled.mail"
  141.  
  142. #define unedited_mail    "emergency.mbox"
  143.  
  144. #define newalias    "newalias 1>&2 > /dev/null"
  145. #define readmsg        "readmsg"
  146.  
  147. #define remove_cmd    "$rm -f"    /* how to remove a file */
  148. #define cat        "$cat"        /* how to display files */
  149. #define sed_cmd        "$sed"        /* how to access sed */
  150. #define move_cmd    "$mv"        /* how to access sed */
  151. #define uuname        "$uuname"    /* how to get a uuname  */
  152.  
  153. #define MSG_SEPARATOR    "\001\001\001\001\n"    /* mmdf message seperator */
  154.  
  155. #ifdef CRAY
  156. /* avoid conflict with typedef'd word */
  157. #define word wrd   
  158. #endif /* CRAY */
  159.  
  160. #ifndef STRSTR
  161. char *strstr();
  162. #endif
  163.  
  164. !GROK!THIS!
  165.