home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / mush-7.1.1 / config.h-dist < prev    next >
Encoding:
Text File  |  1990-05-02  |  5.3 KB  |  141 lines

  1. /* config.h 1.1    (c) copyright 1986 (Dan Heller) */
  2.  
  3. /* Default names and locations for files */
  4. #define MAILRC        ".mushrc"
  5. #define ALTERNATE_RC    ".mailrc"
  6. #define DEFAULT_RC    "/usr/lib/Mushrc"
  7. #define ALT_DEF_RC    "/usr/lib/Mail.rc"
  8. #define COMMAND_HELP    "/usr/lib/cmd_help"
  9. #ifdef SUNTOOL
  10. #    define TOOL_HELP    "/usr/lib/tool_help"
  11. #endif /* SUNTOOL */
  12. #define ALTERNATE_HOME    "/tmp"       /* Path must be read/write to EVERYONE */
  13. #define EDFILE      ".edXXXXXX"  /* file/pathname added to user's "home" */
  14.  
  15. /*
  16.  * Define INTERNAL_MALLOC and recompile if you have trouble with mush
  17.  * core-dumping due to malloc/free errors.  Also, if you run a System 5
  18.  * variant, you might notice a performance improvement if you define this
  19.  * variable.  It uses the malloc distributed by Larry Wall for perl v2.
  20.  */
  21. /* #define INTERNAL_MALLOC /**/
  22.  
  23. /*
  24.  * Define TIMEZONE if your system has neither the SysV external variable
  25.  * tzname nor the BSD timezone() function.  The example below is for
  26.  * Gould BSD4.3 systems; others should define it as a string, e.g. "PST"
  27.  * If TIMEZONE is defined, DAYLITETZ can also be defined, e.g. "PDT"
  28.  */
  29. /* #define TIMEZONE T->tm_zone /**/
  30.  
  31. /* mail delivery system macros and defines... */
  32.  
  33. /*
  34.  * If you are using MMDF, define MMDF here.
  35.  */
  36. /* #define MMDF /**/
  37. #ifdef MMDF
  38. /*
  39.  * If MMDF delivers mail the user's home directory, define HOMEMAIL.
  40.  * Also check the definition of the delivery file name MAILFILE, below.
  41.  */
  42. /* #define HOMEMAIL /**/
  43. #define MAIL_DELIVERY    "exec /usr/mmdf/bin/submit -mlnr"
  44. #define VERBOSE_ARG    "Ww"
  45. #define MTA_EXIT    9    /* exit status for successful submit */
  46. #else /* MMDF */
  47. /*
  48.  * If you are not using MMDF, check these definitions.
  49.  */
  50. #define MAIL_DELIVERY    "/usr/lib/sendmail -i" /* "-i" works like "-oi" */
  51. #define VERBOSE_ARG    "-v"    /* undef if none exists */
  52. #define METOO_ARG    "-m"    /* man sendmail for more info. */
  53. #define MTA_EXIT    0    /* exit status for successful mail delivery */
  54. #endif /* MMDF */
  55.  
  56. /* If your mail transfer agent uses something *besides* "From " to separate
  57.  * adjacent messages in a folder, define MSG_SEPARATOR to be this string.
  58.  * If that string is 4 ^A's, then the string would be "\001\001\001\001".
  59.  * With the exception of MMDF, below, you should OMIT a trailing newline
  60.  * from the setting of MSG_SEPARATOR.
  61.  * If you don't know what any of this means, leave it alone.
  62.  */
  63. /* #define MSG_SEPARATOR "From " /**/
  64. #ifdef MMDF
  65. /*
  66.  * These values should be identical (respectively) to the contents of
  67.  * delim1 and delim2 in MMDFSRC/conf/yoursite/conf.c (sans newline).
  68.  */
  69. #define MSG_SEPARATOR    "\001\001\001\001\n"
  70. #define END_MSG_SEP    "\001\001\001\001\n"
  71. /*
  72.  * You only need to define LCKDFLDIR if you have MMDF configured to use the
  73.  * locking routines in lib/util/lk_lock.c (ie., link(2)-based locking).
  74.  * Most of you WILL NOT need this, since you probably use one of the more
  75.  * sophisticated locking modules provided with MMDF.  Remember to alter the
  76.  * Makefile so as to access the MMDF library at the link step.
  77.  */
  78. /* #define LCKDFLDIR    "/usr/spool/mmdf/lockfiles" /* (for example) */
  79. #else /* !MMDF */
  80. #ifdef M_XENIX
  81. #define DOT_LOCK    /* DOT_LOCK should be used for SCO Xenix */
  82. #endif /* M_XENIX */
  83. #endif /* MMDF */
  84.  
  85. /* If your mailer does not understand commas between addresses, you should
  86.  * define NO_COMMAS.  This includes pre-3.0 smail and default MTAs used on
  87.  * xenix, and sys-v systems.
  88.  * This does NOT apply to MMDF or sendmail.
  89.  */
  90. /* #define NO_COMMAS /**/
  91.  
  92. /*
  93.  * Most RFC822 compliant mailers (sendmail) will add the headers From:
  94.  * and Date: on outgoing mail.  If the user or UA sends these headers,
  95.  * most MTAs will not append them automatically.  However, there are
  96.  * certain MTAs which will not allow this -- these "picky mailers" will
  97.  * precede such headers with a '>' and make the headers very ugly and
  98.  * somewhat redundant or contradictory.  It is advisable to set this
  99.  * *UNLESS* your MTA is not RFC822 compiant -- therefore you should NOT
  100.  * set this (xenix, sys-v).
  101.  */
  102. /* #define PICKY_MAILER /**/
  103.  
  104. /* Headers that will NOT be included when forwarding mail */
  105. #define IGNORE_ON_FWD    "status"    /* comma or space separated list */
  106.  
  107. #define    MAXMSGS        1000    /* maximum number of messages we can read */
  108. #define HDRSIZ BUFSIZ    /* This should not be < BUFSIZ! (but can be >) */
  109.  
  110. /* If your system supports the vprintf() functions, True for sys-v and
  111.  * later sun versions (3.0+ ?).  Typically not true for BSD systems, but
  112.  * that will probably change in the future.
  113.  */
  114. #if defined(SYSV) || defined(sun)
  115. #define VPRINTF
  116. #endif /* SYSV || sun */
  117.  
  118. #define LS_COMMAND    "ls"
  119. #define FORTUNE        "/usr/games/fortune"
  120. #define LPR        "lpr"
  121. #define SIGNATURE    ".signature"
  122. #ifdef HOMEMAIL
  123. #define MAILFILE    "Mailbox"    /* or whatever */
  124. #else /* HOMEMAIL */
  125. #define MAILDIR        "/usr/spool/mail"
  126. #endif /* HOMEMAIL */
  127.  
  128. /* default settings for some variable strings */
  129. #define DEF_PROMPT    "Msg %m of %t: "
  130. #define DEF_PAGER    "more" /* set to "internal" to use internal pager */
  131. #define DEF_SHELL    "csh"
  132. #define DEF_EDITOR    "vi"
  133. #define DEF_FOLDER    "~/Mail"        /* default Mail folder */
  134. #define DEF_MBOX    "~/mbox"    /* default mbox */
  135. #define DEF_INDENT_STR    "> "        /* indent included mail */
  136. #define DEF_PRINTER    "lp"
  137. #define DEF_ESCAPE    "~"
  138. #define DEF_HDR_FMT    "%25f %7d (%l/%c) \"%s\"" /* default hdr_format */
  139. #define DEF_CURSES_HELP    \
  140.     "display save mail reply next-msg back-msg screen-next screen-back"
  141.