home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / N / ELM / ELM2.4 / elm2.4.diff
Encoding:
Text File  |  1995-01-13  |  80.3 KB  |  3,012 lines

  1. diff -u --new-file --recursive elm2.4.orig/Makefile elm2.4/Makefile
  2. --- elm2.4.orig/Makefile    Wed Dec 31 19:00:00 1969
  3. +++ elm2.4/Makefile    Fri Jan 13 20:03:59 1995
  4. @@ -0,0 +1,108 @@
  5. +#
  6. +# : Makefile.SH,v 5.3 1993/04/21 01:53:10 syd Exp $
  7. +#
  8. +#  Makefile for the entire ELM mail system
  9. +#
  10. +#         (C) Copyright 1986,1987, by Dave Taylor
  11. +#         (C) Copyright 1988-1992, USENET Community Trust
  12. +#
  13. +#  $Log: Makefile.SH,v $
  14. +# Revision 5.3  1993/04/21  01:53:10  syd
  15. +# take out parallelism, effects standard make
  16. +#
  17. +# Revision 5.2  1993/04/21  01:26:18  syd
  18. +# Support parallel makes in subdirectories with e.g. "make J=2".
  19. +# From: decwrl!uunet.UU.NET!fin!chip (Chip Salzenberg)
  20. +#
  21. +# Revision 5.1  1992/10/03  22:12:17  syd
  22. +# Initial checkin as of 2.4 Release at PL0
  23. +#
  24. +# 
  25. +#
  26. +
  27. +#    Variables established by Configure
  28. +CAT        =    /bin/cat
  29. +GREP        =    /usr/bin/grep
  30. +ECHO        =    /bin/echo
  31. +MAKE        =    /usr/bin/pmake
  32. +PR        =    /usr/bin/pr
  33. +SHAR        =    /usr/bin/shar -s 60000
  34. +SLEEP        =    /usr/bin/sleep
  35. +TAR        =    /bin/tar
  36. +TAPE        =    unknown-remote-tape-unit
  37. +
  38. +#    Other variables
  39. +SHELL            =    /bin/sh
  40. +SOURCE_FILES        =    `$(GREP) -v 'doc/' MANIFEST`
  41. +DISTRIBUTED_FILES    =    `$(CAT) MANIFEST`
  42. +
  43. +# Targets
  44. +#    Give default target first and alone
  45. +default_target:    all
  46. +
  47. +#    Targets that are simply executed in each subordinate makefile as is
  48. +all install uninstall lint clean:
  49. +        cd lib; $(MAKE) $(MJ) -$(MAKEFLAGS) $@
  50. +        cd src; $(MAKE) $(MJ) -$(MAKEFLAGS) $@
  51. +        cd utils; $(MAKE) $(MJ) -$(MAKEFLAGS) $@
  52. +        cd filter; $(MAKE) $(MJ) -$(MAKEFLAGS) $@
  53. +        cd doc; $(MAKE) $(MJ) -$(MAKEFLAGS) $@
  54. +
  55. +#    Targets that apply to all elm at once
  56. +listing:
  57. +        @$(ECHO) "Making source listing in file LISTING."
  58. +        @$(PR) -n -f $(SOURCE_FILES) > LISTING
  59. +
  60. +#    This is the only target that gets installed even if not out-of-date
  61. +#    with respect the files from which it is installed.
  62. +rmt-install:    rmt-defined
  63. +        @($(ECHO) "Warning: This assumes you have already installed";\
  64. +          $(ECHO) "ELM on the remote machine <$(REMOTE)>. If this is";\
  65. +          $(ECHO) "not the case, interrupt this process quickly!";\
  66. +          $(SLEEP) 10;)
  67. +        cd lib; $(MAKE) $(MJ) -$(MAKEFLAGS) REMOTE=$(REMOTE) $@
  68. +        cd src; $(MAKE) $(MJ) -$(MAKEFLAGS) REMOTE=$(REMOTE) $@
  69. +        cd filter; $(MAKE) $(MJ) -$(MAKEFLAGS) REMOTE=$(REMOTE) $@
  70. +        cd utils; $(MAKE) $(MJ) -$(MAKEFLAGS) REMOTE=$(REMOTE) $@
  71. +        cd doc; $(MAKE) $(MJ) -$(MAKEFLAGS) REMOTE=$(REMOTE) $@
  72. +
  73. +rmt-defined:
  74. +    @(if [ "$(REMOTE)" = "" ];\
  75. +      then\
  76. +        $(ECHO) "You need to define 'REMOTE' as the remote file system";\
  77. +        $(ECHO) "for this particular command. The easiest way to do this";\
  78. +        $(ECHO) "to type:";\
  79. +        $(ECHO) "        make REMOTE=<remote file system> rmt-install";\
  80. +        exit 1;\
  81. +    fi);
  82. +
  83. +shar:
  84. +        $(SHAR) $(DISTRIBUTED_FILES)
  85. +
  86. +tar:
  87. +        $(TAR) cvf $(TAPE) $(DISTRIBUTED_FILES)
  88. +
  89. +#    Targets that are really in subordinate make files
  90. +documentation:
  91. +    cd doc; $(MAKE) $(MJ) -$(MAKEFLAGS) $@
  92. +
  93. +elm:
  94. +    cd lib; $(MAKE) $(MJ) -$(MAKEFLAGS) all
  95. +    cd src; $(MAKE) $(MJ) -$(MAKEFLAGS) all
  96. +
  97. +#    The dummy dependency here prevents make from thinking the target is the
  98. +#    filter directory that sits in the current directory, rather than
  99. +#    an abstract target.
  100. +filter: _filter
  101. +
  102. +_filter:
  103. +    cd filter; $(MAKE) $(MJ) -$(MAKEFLAGS) all
  104. +
  105. +#    The dummy dependency here prevents make from thinking the target is the
  106. +#    utils directory that sits in the current directory, rather than
  107. +#    an abstract target.
  108. +utils: _utils
  109. +
  110. +_utils:
  111. +    cd utils; $(MAKE) $(MJ) -$(MAKEFLAGS) all
  112. +
  113. diff -u --new-file --recursive elm2.4.orig/config.h elm2.4/config.h
  114. --- elm2.4.orig/config.h    Wed Dec 31 19:00:00 1969
  115. +++ elm2.4/config.h    Fri Jan 13 20:03:59 1995
  116. @@ -0,0 +1,590 @@
  117. +/* config.h
  118. + * This file was produced by running the config.h.SH script, which
  119. + * gets its values from config.sh, which is generally produced by
  120. + * running Configure.
  121. + *
  122. + * Feel free to modify any of this as the need arises.  Note, however,
  123. + * that running config.h.SH again will wipe out any changes you've made.
  124. + * For a more permanent change edit config.sh and rerun config.h.SH.
  125. + */
  126. +
  127. +
  128. +/* BIN:
  129. + *    This symbol holds the name of the directory in which the user wants
  130. + *    to put publicly executable images for the package in question.  It
  131. + *    is most often a local directory such as /usr/local/bin.
  132. + */
  133. +#define BIN "/usr/bin"             /**/
  134. +
  135. +/* CPPSTDIN:
  136. + *    This symbol contains the first part of the string which will invoke
  137. + *    the C preprocessor on the standard input and produce to standard
  138. + *    output.     Typical value of "cc -E" or "/lib/cpp".
  139. + */
  140. +/* CPPMINUS:
  141. + *    This symbol contains the second part of the string which will invoke
  142. + *    the C preprocessor on the standard input and produce to standard
  143. + *    output.  This symbol will have the value "-" if CPPSTDIN needs a minus
  144. + *    to specify standard input, otherwise the value is "".
  145. + */
  146. +#define CPPSTDIN "/lib/cpp"
  147. +#define CPPMINUS ""
  148. +
  149. +/* GETOPT:
  150. + *    This symbol, if defined, indicates that the getopt() routine exists.
  151. + */
  152. +#define    GETOPT        /**/
  153. +
  154. +/* MEMCPY:
  155. + *    This symbol, if defined, indicates that the memcpy routine is available
  156. + *    to copy blocks of memory.  Otherwise you should probably use bcopy().
  157. + *    If neither is defined, roll your own.
  158. + */
  159. +#define    MEMCPY        /**/
  160. +
  161. +/* MKDIR:
  162. + *    This symbol, if defined, indicates that the mkdir routine is available
  163. + *    to create directories.  Otherwise you should fork off a new process to
  164. + *    exec /bin/mkdir.
  165. + */
  166. +#define    MKDIR        /**/
  167. +
  168. +/* RENAME:
  169. + *    This symbol, if defined, indicates that the rename routine is available
  170. + *    to rename files.  Otherwise you should do the unlink(), link(), unlink()
  171. + *    trick.
  172. + */
  173. +#define    RENAME        /**/
  174. +
  175. +/* SYMLINK:
  176. + *    This symbol, if defined, indicates that the symlink routine is available
  177. + *    to create symbolic links.
  178. + */
  179. +#define    SYMLINK        /**/
  180. +
  181. +/* WHOAMI:
  182. + *    This symbol, if defined, indicates that the program may include
  183. + *    whoami.h.
  184. + */
  185. +/*#undef    WHOAMI        /**/
  186. +
  187. +/* PREFSHELL:
  188. + *    This symbol contains the full name of the preferred user shell on this
  189. + *    system.  Usual values are /bin/csh, /bin/ksh, /bin/sh.
  190. + */
  191. +#define PREFSHELL "/bin/bash"        /**/
  192. +
  193. +/* EUNICE:
  194. + *    This symbol, if defined, indicates that the program is being compiled
  195. + *    under the EUNICE package under VMS.  The program will need to handle
  196. + *    things like files that don't go away the first time you unlink them,
  197. + *    due to version numbering.  It will also need to compensate for lack
  198. + *    of a respectable link() command.
  199. + */
  200. +/* VMS:
  201. + *    This symbol, if defined, indicates that the program is running under
  202. + *    VMS.  It is currently only set in conjunction with the EUNICE symbol.
  203. + */
  204. +/*#undef    EUNICE        /**/
  205. +/*#undef    VMS        /**/
  206. +
  207. +/* CONFIGURE_DATE
  208. + *    This symbol contains the last date that configure was run for elm -v output.
  209. + */
  210. +#define        CONFIGURE_DATE    "Fri Jan 13 19:55:47 EST 1995"
  211. +
  212. +/* ASCII_CTYPE:
  213. + *    This symbol, if defined, indicates that the ctype functions and
  214. + *    macros are ASCII specific and not 8-bit clean.
  215. + */
  216. +/*#undef    ASCII_CTYPE    /**/
  217. +
  218. +/* BROKE_CTYPE:
  219. + *    This symbol, if defined, indicates that toupper and tolower
  220. + *    routines/macros are not safe to use.
  221. + */
  222. +/*#undef    BROKE_CTYPE    /**/
  223. +
  224. +/* ENABLE_CALENDAR:
  225. + *    This symbol, if defined, indicates that the calendar feature
  226. + *    should be supported.
  227. + */
  228. +/*#undef    ENABLE_CALENDAR    /**/
  229. +#define dflt_calendar_file    ""    
  230. +
  231. +/* CHOWN_NEG1:
  232. + */
  233. +#define    CHOWN_NEG1    /**/
  234. +
  235. +/* DONT_ESCAPE_MESSAGES:
  236. + *    This symbol, if defined, indicates that a binary capable MTA is in use
  237. + *    that honors the content-length header and no message constructs need
  238. + *    to be escaped.
  239. + */
  240. +/*#undef    DONT_ESCAPE_MESSAGES /**/
  241. +
  242. +/* CRYPT:
  243. + *    This symbol, if defined, indicates that the crypt routine is available
  244. + *    to encrypt passwords and the like.
  245. + */
  246. +#define    CRYPT        /**/
  247. +
  248. +/* HAS_CUSERID:
  249. + *    This symbol, if defined, means not to include our own cuserid().
  250. + */
  251. +#define HAS_CUSERID        /**/
  252. +
  253. +/* DISP_HOST:
  254. + *    This symbol, if defined, indicates that elm should display the
  255. + *    host name on the index screen.
  256. + */
  257. +/*#undef    DISP_HOST /**/
  258. +
  259. +/* GETDOMAINNAME
  260. + *    This symbol, if defined, indicates that the getdomainname system call
  261. + *    is available to obtain the domain name.  Note that the /domain
  262. + *    file overrides the value of getdomainname().  If getdomainname() exists,
  263. + *    MYDOMAIN will be ignored.
  264. + */
  265. +/* USEGETDOMAINNAME
  266. + *    This symbol, if defined, indicates that the getdomainname system call
  267. + *    should be used to obtain the domain name.  Note that the /domain
  268. + *    file overrides the value of getdomainname().  If this variable is set
  269. + *    MYDOMAIN (and therefore DEFAULT_DOMAIN) will be ignored.
  270. + */
  271. +/*#undef    GETDOMAINNAME        /**/
  272. +
  273. +/*#undef    USEGETDOMAINNAME        /**/
  274. +
  275. +/* ERRLST:
  276. + *    This symbol, if defined, indicates that the sys_errlist and sys_nerr
  277. + *    symbols exist.
  278. + */
  279. +/*#undef    ERRLST    /**/
  280. +
  281. +/* USE_FLOCK_LOCKING
  282. + *    This symbol, if defined, indicates that the flock mailbox locking should be used.
  283. + */
  284. +/* USE_DOTLOCK_LOCKING
  285. + *    This symbol, if defined, indicates that the .lock mailbox locking should be used.
  286. + */
  287. +/* USE_FCNTL_LOCKING
  288. + *    This symbol, if defined, indicates that SYSV style fcntl file locking should be used.
  289. + */
  290. +/* LOCK_DIR
  291. + *    This symbol is the name of the lock directory for access (not mailbox) locks.
  292. + *    It will be /usr/spool/locks or /usr/spool/uucp
  293. + */
  294. +/*#undef    USE_FLOCK_LOCKING        /**/
  295. +
  296. +#define    USE_DOTLOCK_LOCKING        /**/
  297. +
  298. +/*#undef    USE_FCNTL_LOCKING    /**/
  299. +
  300. +#define        LOCK_DIR    "/usr/spool/locks"    /**/
  301. +
  302. +/* FTRUNCATE:
  303. + *    This symbol, if defined, indicates that the ftruncate() routine exists.
  304. + */
  305. +#define    FTRUNCATE        /**/
  306. +
  307. +/* GETHOSTNAME:
  308. + *    This symbol, if defined, indicates that the C program may use the
  309. + *    gethostname() routine to derive the host name.  See also DOUNAME.
  310. + */
  311. +/* DOUNAME:
  312. + *    This symbol, if defined, indicates that the C program may use the
  313. + *    uname() routine to derive the host name.  See also GETHOSTNAME.
  314. + */
  315. +/* HOSTCOMPILED:
  316. + *    This symbol, if defined, indicated that the host name is compiled
  317. + *    in from the string hostname
  318. + */
  319. +/*#undef    GETHOSTNAME    /**/
  320. +#define    DOUNAME        /**/
  321. +/*#undef    HOSTCOMPILED    /**/
  322. +
  323. +/* HAVETERMLIB:
  324. + *    This symbol, when defined, indicates that termlib-style routines
  325. + *    are available.  There is nothing to include.
  326. + */
  327. +#define    HAVETERMLIB    /**/
  328. +
  329. +/* index:
  330. + *    This preprocessor symbol is defined, along with rindex, if the system
  331. + *    uses the strchr and strrchr routines instead.
  332. + */
  333. +/* rindex:
  334. + *    This preprocessor symbol is defined, along with index, if the system
  335. + *    uses the strchr and strrchr routines instead.
  336. + */
  337. +/*#undef    index strchr    /* cultural */
  338. +/*#undef    rindex strrchr    /*  differences? */
  339. +
  340. +/* INTERNET:
  341. + *    This symbol, if defined, indicates that there is a mailer available
  342. + *    which supports internet-style addresses (user@site.domain).
  343. + */
  344. +#define    INTERNET    /**/
  345. +
  346. +/* ISPELL:
  347. + *    This symbol, if defined, indicates that the GNU ispell
  348. + *    spelling checker that is available to Elm.
  349. + */
  350. +/* ISPELL_PATH:
  351. + *    This symbol contains the path to the GNU ispell
  352. + *    spelling checker that is available to Elm.
  353. + */
  354. +/* ISPELL_OPTIONS:
  355. + *    This symbol contains the options to the GNU ispell
  356. + *    spelling checker that is available to Elm.
  357. + */
  358. +#define    ISPELL    /**/
  359. +#define        ISPELL_PATH    "/usr/bin/ispell" /**/
  360. +#define        ISPELL_OPTIONS    "-x" /**/
  361. +
  362. +/* I_LOCALE:
  363. + *    This symbol, if defined, indicates that the file locale.h
  364. + *    should be included
  365. + */
  366. +/* MSGCAT:
  367. + *    This symbol, if defined, indicates that the MSGCAT NLS libraries
  368. + *    are available.
  369. + */
  370. +/* USENLS:
  371. + *    This symbol, if defined, indicates that the Elm NLS libraries
  372. + *    are being used instead of the system NLS libraries.
  373. + */
  374. +#define    I_LOCALE    /**/
  375. +#define    I_NL_TYPES    /**/
  376. +/*#undef    MSGCAT        /**/
  377. +#define    USENLS        /**/
  378. +
  379. +/* MALLOCVOID:
  380. + *    This symbol, if defined, indicates that the malloc_t type should
  381. + *    be void * instead of char *
  382. + */
  383. +#define    MALLOCVOID    /**/
  384. +
  385. +/* ALLOW_MAILBOX_EDITING:
  386. + *    This symbol, if defined, indicates that the E)dit mailbox
  387. + *    function is to be allowed.
  388. + */
  389. +/*#undef    ALLOW_MAILBOX_EDITING    /**/
  390. +
  391. +/* MIME:
  392. + *    This symbol, if defined, indicates that the MIME mail
  393. + *    extension utilities are available
  394. + */
  395. +#define    MIME    /**/
  396. +
  397. +/* MMDF:
  398. + *    This symbol, if defined, indicates that mailboxes are in
  399. + *    the MMDF format.
  400. + */
  401. +/*#undef    MMDF    /**/
  402. +
  403. +/* AUTO_BACKGROUND:
  404. + *    This symbol, if defined, indicates that newmail should go to
  405. + *    the background automatically.
  406. + */
  407. +#define AUTO_BACKGROUND /**/
  408. +
  409. +/* DONT_ADD_FROM:
  410. + *    This symbol, if defined, indicates that elm should not add
  411. + *    the From: header
  412. + */
  413. +/* USE_DOMAIN:
  414. + *    This symbol, if defined, indicates that elm should add
  415. + *    the domain name to our address
  416. + */
  417. +#define    DONT_ADD_FROM /**/
  418. +/*#undef    USE_DOMAIN /**/
  419. +
  420. +/* NO_XHEADER:
  421. + *    This symbol, if defined, will not automatically add "X-Mailer:"
  422. + *    headers.
  423. + */
  424. +/*#undef    NO_XHEADER    /**/
  425. +
  426. +/* PIDCHECK:
  427. + *    This symbol, if defined, means that the kill(pid, 0) will
  428. + *    check for an active pid.
  429. + */
  430. +#define PIDCHECK        /**/
  431. +
  432. +/* PTEM:
  433. + *    This symbol, if defined, indicates that the sys/ptem.h include file is
  434. + *    needed for window sizing.
  435. + */
  436. +/*#undef    PTEM        /**/
  437. +
  438. +/* PUTENV:
  439. + *    This symbol, if defined, indicates that putenv() exists.
  440. + */
  441. +#define    PUTENV    /**/
  442. +
  443. +/* REMOVE_AT_LAST:
  444. + *    This symbol, if defined, tells the C code to remove the lock
  445. + *    file on lock failure.
  446. + */
  447. +/* MAX_ATTEMPTS:
  448. + *    This symbol defines to the C code the number of times to try
  449. + *    locking the mail file.
  450. + */
  451. +/*#undef REMOVE_AT_LAST    /**/
  452. +#define MAX_ATTEMPTS    6
  453. +
  454. +/* SAVE_GROUP_MAILBOX_ID:
  455. + *    This symbol, if defined, indicates that Elm needs to restore the
  456. + *    group id of the file, as it is running setgid.
  457. + */
  458. +#define SAVE_GROUP_MAILBOX_ID    /**/
  459. +
  460. +/* SIGVEC:
  461. + *    This symbol, if defined, indicates that BSD reliable signals routine
  462. + *    sigvec is available.
  463. + */
  464. +/* SIGVECTOR:
  465. + *    This symbol, if defined, indicates that the sigvec() routine is called
  466. + *    sigvector() instead, and that sigspace() is provided instead of
  467. + *    sigstack().  This is probably only true for HP-UX.
  468. + */
  469. +/* SIGSET:
  470. + *    This symbol, if defined, indicates that BSD reliable signal routine
  471. + *    sigset is available.
  472. + */
  473. +/* POSIX_SIGNALS:
  474. + *    This symbol, if defined, indicated that POSIX sigaction
  475. + *    routine is available.
  476. + */
  477. +/* HASSIGHOLD:
  478. + *    This symbol, if defined, indicates that sighold routine is
  479. + *    available.
  480. + */
  481. +/* HASSIGBLOCK
  482. + *    This symbol, if defined, indicates that the sigblock routine is
  483. + *    available.
  484. + */
  485. +/* HASSIGPROCMASK:
  486. + *    This symbol, if defined, indicates that POSIX sigprocmask
  487. + *    routine is available.
  488. + */
  489. +/*#undef    SIGVEC        /**/
  490. +
  491. +/*#undef    SIGVECTOR    /**/
  492. +
  493. +/*#undef    SIGSET    /**/
  494. +
  495. +#define    POSIX_SIGNALS    /**/
  496. +
  497. +/*#undef    HASSIGHOLD    /**/
  498. +
  499. +#define    HASSIGBLOCK    /**/
  500. +
  501. +/*#undef    HASSIGPROCMASK    /**/
  502. +
  503. +/* STRSPN:
  504. + *    This symbol, if defined, indicates that the strspn() routine exists.
  505. + */
  506. +/* STRCSPN:
  507. + *    This symbol, if defined, indicates that the strcspn() routine exists.
  508. + */
  509. +/* STRPBRK:
  510. + *    This symbol, if defined, indicates that the strpbrk() routine exists.
  511. + */
  512. +#define    STRSPN        /**/
  513. +
  514. +#define    STRCSPN        /**/
  515. +
  516. +#define    STRPBRK        /**/
  517. +
  518. +/* STRERROR:
  519. + *    This symbol, if defined, indicates that strerror() exists.
  520. + */
  521. +#define    STRERROR    /**/
  522. +
  523. +/* STRFTIME:
  524. + *    This symbol, if defined, indicates that strftime() exists.
  525. + */
  526. +#define    STRFTIME    /**/
  527. +
  528. +/* STRINGS:
  529. + *    This symbol, if defined, indicates that the file strings.h
  530. + *    should be included not string.h
  531. + */
  532. +/* PWDINSYS:
  533. + *    This symbol, if defined, indicates that the file pwd.h
  534. + *    is in the sys sub directory
  535. + */
  536. +/*#undef    STRINGS        /**/
  537. +/*#undef    PWDINSYS    /**/
  538. +
  539. +/* STRSTR:
  540. + *    This symbol, if defined, indicates that strstr() exists.
  541. + */
  542. +#define    STRSTR    /**/
  543. +
  544. +/* STRTOK:
  545. + *    This symbol, if defined, indicates that strtok() exists.
  546. + */
  547. +#define    STRTOK    /**/
  548. +
  549. +/* ALLOW_SUBSHELL:
  550. + *    This symbol, if defined, indicates that the '!' subshell
  551. + *    function is to be allowed at various places.
  552. + */
  553. +#define    ALLOW_SUBSHELL    /**/
  554. +
  555. +/* TEMPNAM:
  556. + *    This symbol, if defined, indicates that the tempnam() routine exists.
  557. + */
  558. +#define    TEMPNAM        /**/
  559. +
  560. +/* TERMIOS:
  561. + *    This symbol, if defined, indicates that the program should include
  562. + *    termios.h rather than sgtty.h or termio.h.  There are also differences
  563. + *    in the ioctl() calls that depend on the value of this symbol.
  564. + */
  565. +/* TERMIO:
  566. + *    This symbol, if defined, indicates that the program should include
  567. + *    termio.h rather than sgtty.h.  There are also differences in the
  568. + *    ioctl() calls that depend on the value of this symbol.
  569. + */
  570. +#define    TERMIOS        /**/
  571. +
  572. +/*#undef    TERMIO        /**/
  573. +
  574. +/* USE_EMBEDDED_ADDRESSES:
  575. + *    This symbol, if defined, indicates that replyto: and from:
  576. + *    headers can be trusted.
  577. + */
  578. +#define USE_EMBEDDED_ADDRESSES     /**/
  579. +
  580. +/* UTIMBUF:
  581. + *    This symbol is defined if this system defines struct utimbuf.
  582. + */
  583. +#define UTIMBUF        /**/
  584. +
  585. +/* VFORK:
  586. + *    This symbol, if defined, indicates that vfork() exists.
  587. + */
  588. +#define    VFORK    /**/
  589. +
  590. +/* DEFEDITOR:
  591. + *    This symbol contains the name of the default editor.
  592. + */
  593. +/* EDITOROPTS:
  594. + *    This symbol contains the command line options for the default editor.
  595. + */
  596. +#define DEFEDITOR "/usr/bin/vi"        /**/
  597. +
  598. +#define EDITOROPTS ""        /**/
  599. +
  600. +/* HOSTNAME:
  601. + *    This symbol contains name of the host the program is going to run on.
  602. + *    The domain is not kept with hostname, but must be gotten from MYDOMAIN.
  603. + *    The dot comes with MYDOMAIN, and need not be supplied by the program.
  604. + *    If gethostname() or uname() exist, HOSTNAME may be ignored.
  605. + */
  606. +/* MYDOMAIN:
  607. + *    This symbol contains the domain of the host the program is going to
  608. + *    run on.  The domain must be appended to HOSTNAME to form a complete
  609. + *    host name.  The dot comes with MYDOMAIN, and need not be supplied by
  610. + *    the program.  If the host name is derived from PHOSTNAME, the domain
  611. + *    may or may not already be there, and the program should check.
  612. + */
  613. +#define HOSTNAME "fuzzy"        /**/
  614. +#define MYDOMAIN ".UUCP"        /**/
  615. +
  616. +/* I_MEMORY:
  617. + *    This symbol, if defined, indicates that the file memory.h
  618. + *    should be included instead of declaring the memory routines.
  619. + */
  620. +#define    I_MEMORY    /**/
  621. +
  622. +/* I_STDARG:
  623. + *    This symbol, if defined, indicates that the file stdarg.h
  624. + *    should be included instead of varargs
  625. + */
  626. +/*#undef    I_STDARG    /**/
  627. +
  628. +/* I_STDLIB:
  629. + *    This symbol, if defined, indicates that the file stdlib.h
  630. + *    should be included instead of declaring the stdlib routines.
  631. + */
  632. +#define    I_STDLIB    /**/
  633. +
  634. +/* I_TIME:
  635. + *    This symbol is defined if the program should include <time.h>.
  636. + */
  637. +/* I_SYSTIME:
  638. + *    This symbol is defined if the program should include <sys/time.h>.
  639. + */
  640. +/* I_SYSTIMEKERNEL:
  641. + *    This symbol is defined if the program should include <sys/time.h>
  642. + *    with KERNEL defined.
  643. + */
  644. +#define        I_TIME         /**/
  645. +#define    I_SYSTIME     /**/
  646. +/*#undef    SYSTIMEKERNEL     /**/
  647. +
  648. +/* I_UNISTD:
  649. + *    This symbol, if defined, indicates that the file unistd.h
  650. + *    should be included instead of declaring the unistd routines.
  651. + */
  652. +#define    I_UNISTD    /**/
  653. +
  654. +/* I_UTIME:
  655. + *    This symbol, if defined, indicates that the file utime.h
  656. + *    should be included instead of declaring our own utimbuf.
  657. + */
  658. +/* I_USYSTIME:
  659. + *    This symbol, if defined, indicates that the file sys/utime.h
  660. + *    should be included instead of declaring our own utimbuf.
  661. + */
  662. +#define    I_UTIME    /**/
  663. +/*#undef    I_SYSUTIME    /**/
  664. +
  665. +/* PASSNAMES:
  666. + *    This symbol, if defined, indicates that full names are stored in
  667. + *    the /etc/passwd file.
  668. + */
  669. +/* BERKNAMES:
  670. + *    This symbol, if defined, indicates that full names are stored in
  671. + *    the /etc/passwd file in Berkeley format (name first thing, everything
  672. + *    up to first comma, with & replaced by capitalized login ID, yuck).
  673. + */
  674. +/* USGNAMES:
  675. + *    This symbol, if defined, indicates that full names are stored in
  676. + *    the /etc/passwd file in USG format (everything after - and before ( is
  677. + *    the name).
  678. + */
  679. +#define    PASSNAMES /*  (undef to take name from ~/.fullname) */
  680. +#define    BERKNAMES /* (that is, ":name,stuff:") */
  681. +/*#undef    USGNAMES  /* (that is, ":stuff-name(stuff):") */
  682. +
  683. +/* SIG_TYPE:
  684. + *    This symbol contains the type name of the signal handler functions.
  685. + */
  686. +#define    SIGHAND_TYPE    void
  687. +
  688. +/* TZNAME_USE_xxxxxx:
  689. + *    Specify how to get timezone name.  Possible values are:
  690. + *         TZNAME_USE_TM_NAME    use (struct tm *)->tm_name
  691. + *         TZNAME_USE_TM_ZONE    use (struct tm *)->tm_zone
  692. + *         TZNAME_USE_TZNAME    use "tzname[]" external
  693. + *         TZNAME_USE_TIMEZONE    use timezone() function
  694. + */
  695. +#define TZNAME_USE_TZNAME
  696. +
  697. +/* XENIX:
  698. + *    This symbol, if defined, indicates this is a Xenix system,
  699. + *    for knocking  out the far keyword in selected places.
  700. + */
  701. +/* BSD:
  702. + *    This symbol, if defined, indicates this is a BSD type system,
  703. + */
  704. +/*#undef    XENIX    /**/
  705. +/*#undef    BSD    /**/
  706. +
  707. diff -u --new-file --recursive elm2.4.orig/config.sh elm2.4/config.sh
  708. --- elm2.4.orig/config.sh    Wed Dec 31 19:00:00 1969
  709. +++ elm2.4/config.sh    Fri Jan 13 20:03:57 1995
  710. @@ -0,0 +1,283 @@
  711. +#!/bin/sh
  712. +# config.sh
  713. +# This file was produced by running the Configure script.
  714. +
  715. +Log='$Log'
  716. +Header='$Header'
  717. +bin='/usr/bin'
  718. +contains='grep'
  719. +cppstdin='/lib/cpp'
  720. +cppminus=''
  721. +d_getopt='define'
  722. +d_memcpy='define'
  723. +d_mkdir='define'
  724. +d_rename='define'
  725. +d_symlink='define'
  726. +d_whoami='undef'
  727. +n='-n'
  728. +c=''
  729. +orderlib='false'
  730. +ranlib=':'
  731. +package='elm2'
  732. +pager='builtin+'
  733. +prefshell='/bin/bash'
  734. +startsh='#!/bin/sh'
  735. +d_eunice='undef'
  736. +define='define'
  737. +eunicefix=':'
  738. +loclist='
  739. +cat
  740. +chgrp
  741. +chmod
  742. +cp
  743. +echo
  744. +expr
  745. +grep
  746. +ln
  747. +ls
  748. +make
  749. +mv
  750. +rm
  751. +sed
  752. +sleep
  753. +touch
  754. +tr
  755. +'
  756. +expr='/usr/bin/expr'
  757. +sed='/usr/bin/sed'
  758. +echo='/bin/echo'
  759. +cat='/bin/cat'
  760. +rm='/bin/rm'
  761. +mv='/bin/mv'
  762. +cp='/bin/cp'
  763. +tail=''
  764. +tr='/usr/bin/tr'
  765. +mkdir=''
  766. +sort=''
  767. +uniq=''
  768. +grep='/usr/bin/grep'
  769. +trylist='
  770. +Mcc
  771. +compress
  772. +cpp
  773. +date
  774. +emacs
  775. +execmail
  776. +ispell
  777. +line
  778. +lint
  779. +lp
  780. +lpr
  781. +mailx
  782. +mips
  783. +more
  784. +nroff
  785. +pack
  786. +pg
  787. +pmake
  788. +pr
  789. +rmail
  790. +sendmail
  791. +shar
  792. +smail
  793. +submit
  794. +tar
  795. +tbl
  796. +test
  797. +troff
  798. +uname
  799. +uuname
  800. +vi
  801. +'
  802. +test='test'
  803. +inews=''
  804. +ispell='/usr/bin/ispell'
  805. +egrep=''
  806. +more='/bin/more'
  807. +pg='pg'
  808. +Mcc='Mcc'
  809. +vi='/usr/bin/vi'
  810. +mailx='/bin/mailx'
  811. +mail=''
  812. +cpp='/lib/cpp'
  813. +perl=''
  814. +emacs='emacs'
  815. +ls='/bin/ls'
  816. +rmail='/usr/bin/rmail'
  817. +sendmail='/usr/sbin/sendmail'
  818. +shar='/usr/bin/shar'
  819. +smail='smail'
  820. +submit=''
  821. +tbl='/usr/bin/tbl'
  822. +troff='/usr/bin/troff'
  823. +nroff='/usr/bin/nroff'
  824. +uname='/bin/uname'
  825. +uuname='uuname'
  826. +line='line'
  827. +chgrp='/bin/chgrp'
  828. +chmod='/bin/chmod'
  829. +lint='lint'
  830. +sleep='/usr/bin/sleep'
  831. +pr='/usr/bin/pr'
  832. +tar='/bin/tar'
  833. +ln='/bin/ln'
  834. +lpr='/usr/bin/lpr'
  835. +lp='lp'
  836. +touch='/bin/touch'
  837. +make='/usr/bin/pmake'
  838. +date='/bin/date'
  839. +csh=''
  840. +pmake='/usr/bin/pmake'
  841. +mips='false'
  842. +col=''
  843. +pack='pack'
  844. +compress='/bin/compress'
  845. +execmail=''
  846. +libswanted='intl nls'
  847. +c_date='Fri Jan 13 19:55:47 EST 1995'
  848. +d_ascii='undef'
  849. +d_broke_ctype='undef'
  850. +d_calendar='undef'
  851. +calendar=''
  852. +d_chown_neg1='define'
  853. +d_content='undef'
  854. +d_crypt='define'
  855. +cryptlib=''
  856. +d_cuserid='define'
  857. +d_disphost='undef'
  858. +d_domname='undef'
  859. +d_usegetdom='undef'
  860. +d_errlst='undef'
  861. +d_flock='undef'
  862. +d_dotlock='define'
  863. +d_fcntlock='undef'
  864. +lock_dir='/usr/spool/locks'
  865. +has_flock='undef'
  866. +has_fcntl='undef'
  867. +d_ftruncate='define'
  868. +d_gethname='undef'
  869. +d_douname='define'
  870. +d_host_comp='undef'
  871. +ign_hname='n'
  872. +d_havetlib='define'
  873. +termlib='-ltermcap'
  874. +d_index='undef'
  875. +d_internet='define'
  876. +d_ispell='define'
  877. +ispell_path='/usr/bin/ispell'
  878. +ispell_options='-x'
  879. +d_locale='define'
  880. +d_nl_types='define'
  881. +d_msgcat='undef'
  882. +d_usenls='define'
  883. +d_mallocvoid='define'
  884. +d_mboxedit='undef'
  885. +d_mime='define'
  886. +defencoding='7bit'
  887. +defcharset='US-ASCII'
  888. +defdispcharset='US-ASCII'
  889. +d_mmdf='undef'
  890. +d_newauto='define'
  891. +d_noaddfrom='define'
  892. +d_usedomain='undef'
  893. +d_noxheader='undef'
  894. +d_pidcheck='define'
  895. +d_ptem='undef'
  896. +d_putenv='define'
  897. +d_remlock='undef'
  898. +maxattempts='6'
  899. +d_setgid='define'
  900. +d_savegrpmboxid='define'
  901. +mailermode='2755'
  902. +d_sigvec='undef'
  903. +d_sigvectr='undef'
  904. +d_sigset='undef'
  905. +d_sighold='undef'
  906. +d_sigprocmask='undef'
  907. +d_sigblock='define'
  908. +d_sigaction='define'
  909. +d_strcspn='define'
  910. +d_strspn='define'
  911. +d_strpbrk='define'
  912. +d_strerror='define'
  913. +d_strftime='define'
  914. +d_strings='undef'
  915. +d_pwdinsys='undef'
  916. +strings='/usr/include/string.h'
  917. +includepath=''
  918. +d_strstr='define'
  919. +d_strtok='define'
  920. +d_subshell='define'
  921. +d_tempnam='define'
  922. +tempnamo=''
  923. +tempnamc=''
  924. +d_termio='undef'
  925. +d_termios='define'
  926. +d_useembed='define'
  927. +d_utimbuf='define'
  928. +d_vfork='define'
  929. +defbatsub='no subject (file transmission)'
  930. +defeditor='/usr/bin/vi'
  931. +editoropts=''
  932. +hostname='fuzzy'
  933. +phostname='hostname'
  934. +mydomain='.UUCP'
  935. +autohostname='define'
  936. +i_memory='define'
  937. +i_stdarg='undef'
  938. +i_stdlib='define'
  939. +i_time='define'
  940. +i_systime='define'
  941. +d_systimekernel='undef'
  942. +i_unistd='define'
  943. +i_utime='define'
  944. +i_sysutime='undef'
  945. +lib='/var/lib/elm'
  946. +libc='/usr/lib/libc.a'
  947. +linepr='/usr/bin/lpr'
  948. +maildir='/var/spool/mail'
  949. +mailer='/usr/sbin/sendmail'
  950. +mailgrp='mail'
  951. +mansrc='/usr/man/man1'
  952. +catmansrc='/usr/man/preformat/cat1'
  953. +manext='.1'
  954. +manext_choice='.1'
  955. +catmanext='.1'
  956. +catmanext_choice='.1'
  957. +packed='y'
  958. +manroff='/usr/bin/nroff'
  959. +manroffopts='-Tascii -mandoc'
  960. +suffix='.Z'
  961. +packer='/bin/compress'
  962. +models='none'
  963. +split=''
  964. +small=''
  965. +medium=''
  966. +large=''
  967. +huge=''
  968. +optimize='-O2'
  969. +ccflags='-fpcc-struct-return -traditional'
  970. +cppflags=' -D__GNUC__'
  971. +ldflags='-s'
  972. +cc='gcc'
  973. +libs=''
  974. +nametype='bsd'
  975. +d_passnames='define'
  976. +d_berknames='define'
  977. +d_usgnames='undef'
  978. +passcat='cat /etc/passwd'
  979. +rmttape='unknown-remote-tape-unit'
  980. +roff='/usr/bin/troff'
  981. +roffopts='-Tascii -mandoc'
  982. +sigtype='void'
  983. +spitshell='cat'
  984. +shsharp='true'
  985. +sharpbang='#!'
  986. +tmpdir='/tmp'
  987. +tzname_handling='TZNAME'
  988. +use_pmake='y'
  989. +xencf=''
  990. +xenlf=''
  991. +d_xenix='undef'
  992. +d_bsd='undef'
  993. +CONFIG=true
  994. diff -u --new-file --recursive elm2.4.orig/doc/Makefile elm2.4/doc/Makefile
  995. --- elm2.4.orig/doc/Makefile    Wed Dec 31 19:00:00 1969
  996. +++ elm2.4/doc/Makefile    Fri Jan 13 20:04:00 1995
  997. @@ -0,0 +1,510 @@
  998. +#
  999. +# : Makefile.SH,v 5.12 1994/03/10 17:20:23 syd Exp $
  1000. +#
  1001. +#  Makefile for the documentation of the ELM mail system
  1002. +#
  1003. +#         (C) Copyright 1988-1992, USENET Community Trust
  1004. +#
  1005. +#  $Log: Makefile.SH,v $
  1006. +# Revision 5.12  1994/03/10  17:20:23  syd
  1007. +# Remove autoreply
  1008. +# From: Syd
  1009. +#
  1010. +# Revision 5.11  1993/04/12  02:12:07  syd
  1011. +# Added elmalias.1 man page.  Updated Users.guide to mention elmalias.
  1012. +# From: chip@chinacat.unicom.com (Chip Rosenthal)
  1013. +#
  1014. +# Revision 5.10  1993/01/20  03:11:51  syd
  1015. +# During 'make uninstall', an error occurs with the make for doc/,
  1016. +# due to a wrongly-extended "if" statement in the Makefile.
  1017. +# From: Allan Kugel <hico2!hico3!allan@tsdiag.ocpt.ccur.com>
  1018. +#
  1019. +# Revision 5.9  1992/12/13  18:00:05  syd
  1020. +# Add one more missing rm of a previously packed man page
  1021. +# From: Bo Asbjorn Muldbak <bam@jutland.ColumbiaSC.NCR.COM>
  1022. +#
  1023. +# Revision 5.8  1992/12/12  01:28:50  syd
  1024. +# Remove the old packed manual page before trying to pack the new one.
  1025. +# From: Tom Moore <tmoore@fievel.DaytonOH.NCR.COM>
  1026. +#
  1027. +# Revision 5.7  1992/12/07  05:05:27  syd
  1028. +# fix ; placement
  1029. +# From: Syd
  1030. +#
  1031. +# Revision 5.6  1992/12/07  03:28:35  syd
  1032. +# add else clause with true to TEST lines as some Makefiles exit if
  1033. +# the if construct doesnt execute a clause as the if returns an error
  1034. +# status.
  1035. +# From: Syd via requests from several people
  1036. +#
  1037. +# Revision 5.5  1992/12/07  02:17:14  syd
  1038. +# Add missing -n flag to doc makefile.
  1039. +# From: gwh@dogmatix.inmos.co.uk
  1040. +#
  1041. +# Revision 5.4  1992/11/22  00:47:02  syd
  1042. +# Change the way Configure and doc/Makefile.SH deal with installing
  1043. +# man pages.
  1044. +# From: Tom Moore <tmoore@wnas.DaytonOH.NCR.COM>
  1045. +#
  1046. +# Revision 5.3  1992/11/07  16:13:00  syd
  1047. +# Limit test arguments to -f instead of -x as several shells and
  1048. +# their resulting test commands dont have -x
  1049. +# From: Syd via request from Tim Pierce
  1050. +#
  1051. +# Revision 5.2  1992/10/30  21:06:09  syd
  1052. +# add missing MAKE variable definition
  1053. +# From: syd via note from Keith Petersen w8sdz@tacom-emh1.army.mil
  1054. +#
  1055. +# Revision 5.1  1992/10/03  20:51:50  syd
  1056. +# Initial checkin as of 2.4 Release at PL0
  1057. +#
  1058. +# 
  1059. +#
  1060. +# Variables
  1061. +#    Variables established by Configure
  1062. +CHMOD        =    /bin/chmod
  1063. +CP        =    /bin/cp
  1064. +DEST        =    /usr/bin
  1065. +ECHO        =    /bin/echo
  1066. +FORMATTER    =    /usr/bin/troff
  1067. +FORMATTER_OPTS    =    -Tascii -mandoc
  1068. +LIB        =    /var/lib/elm
  1069. +LN        =    /bin/ln
  1070. +MAKE        =    /usr/bin/pmake
  1071. +MAN        =    /usr/man/man1
  1072. +MANEXT        =    .1
  1073. +CATMAN        =    /usr/man/preformat/cat1
  1074. +CATMANEXT    =    .1
  1075. +RM        =     /bin/rm -f
  1076. +TBL           =    /usr/bin/tbl
  1077. +MANROFF        =    /usr/bin/nroff
  1078. +MANROFF_OPTS    =    -Tascii -mandoc
  1079. +MV        =    /bin/mv
  1080. +TEST        =    test
  1081. +SUFFIX        =    .Z
  1082. +PACKED        =    y
  1083. +PACKER        =    /bin/compress
  1084. +
  1085. +#    Other variables
  1086. +SHELL        =    /bin/sh
  1087. +
  1088. +# List of installed man pages (except for wnemail.1 - handled differently)
  1089. +MAN_LIST    =    $(MAN)/answer$(MANEXT)        \
  1090. +            $(MAN)/checkalias$(MANEXT)    \
  1091. +            $(MAN)/elm$(MANEXT)        \
  1092. +            $(MAN)/elmalias$(MANEXT)    \
  1093. +            $(MAN)/fastmail$(MANEXT)    \
  1094. +            $(MAN)/filter$(MANEXT)        \
  1095. +            $(MAN)/frm$(MANEXT)        \
  1096. +            $(MAN)/listalias$(MANEXT)    \
  1097. +            $(MAN)/messages$(MANEXT)    \
  1098. +            $(MAN)/newalias$(MANEXT)    \
  1099. +            $(MAN)/newmail$(MANEXT)    \
  1100. +            $(MAN)/printmail$(MANEXT)    \
  1101. +            $(MAN)/readmsg$(MANEXT)
  1102. +
  1103. +# List of installed catman pages (except for wnemail.1 - handled differently)
  1104. +CATMAN_LIST    =    $(CATMAN)/answer$(CATMANEXT)$(SUFFIX)    \
  1105. +            $(CATMAN)/checkalias$(CATMANEXT)$(SUFFIX)\
  1106. +            $(CATMAN)/elm$(CATMANEXT)$(SUFFIX)    \
  1107. +            $(CATMAN)/elmalias$(CATMANEXT)$(SUFFIX)\
  1108. +            $(CATMAN)/fastmail$(CATMANEXT)$(SUFFIX)    \
  1109. +            $(CATMAN)/filter$(CATMANEXT)$(SUFFIX)    \
  1110. +            $(CATMAN)/frm$(CATMANEXT)$(SUFFIX)    \
  1111. +            $(CATMAN)/listalias$(CATMANEXT)$(SUFFIX)    \
  1112. +            $(CATMAN)/messages$(CATMANEXT)$(SUFFIX)    \
  1113. +            $(CATMAN)/newalias$(CATMANEXT)$(SUFFIX)    \
  1114. +            $(CATMAN)/newmail$(CATMANEXT)$(SUFFIX)    \
  1115. +            $(CATMAN)/printmail$(CATMANEXT)$(SUFFIX)    \
  1116. +            $(CATMAN)/readmsg$(CATMANEXT)$(SUFFIX)
  1117. +
  1118. +# List of formatted pages for catman
  1119. +FORMATTED_PAGES_LIST =    catman/answer$(CATMANEXT)$(SUFFIX)    \
  1120. +            catman/checkalias$(CATMANEXT)$(SUFFIX)\
  1121. +            catman/elm$(CATMANEXT)$(SUFFIX)    \
  1122. +            catman/elmalias$(CATMANEXT)$(SUFFIX)\
  1123. +            catman/fastmail$(CATMANEXT)$(SUFFIX)    \
  1124. +            catman/filter$(CATMANEXT)$(SUFFIX)    \
  1125. +            catman/frm$(CATMANEXT)$(SUFFIX)    \
  1126. +            catman/listalias$(CATMANEXT)$(SUFFIX)    \
  1127. +            catman/messages$(CATMANEXT)$(SUFFIX)    \
  1128. +            catman/newalias$(CATMANEXT)$(SUFFIX)    \
  1129. +            catman/newmail$(CATMANEXT)$(SUFFIX)    \
  1130. +            catman/printmail$(CATMANEXT)$(SUFFIX)    \
  1131. +            catman/readmsg$(CATMANEXT)$(SUFFIX)
  1132. +
  1133. +# List of remotely installed man pages (except for wnemail.1 - handled
  1134. +# differently)
  1135. +REMOTE_MAN_LIST    =    $(REMOTE)$(MAN)/answer$(MANEXT)    \
  1136. +            $(REMOTE)$(MAN)/checkalias$(MANEXT)    \
  1137. +            $(REMOTE)$(MAN)/elm$(MANEXT)        \
  1138. +            $(REMOTE)$(MAN)/elmalias$(MANEXT)    \
  1139. +            $(REMOTE)$(MAN)/fastmail$(MANEXT)    \
  1140. +            $(REMOTE)$(MAN)/filter$(MANEXT)    \
  1141. +            $(REMOTE)$(MAN)/frm$(MANEXT)        \
  1142. +            $(REMOTE)$(MAN)/listalias$(MANEXT)    \
  1143. +            $(REMOTE)$(MAN)/messages$(MANEXT)    \
  1144. +            $(REMOTE)$(MAN)/newalias$(MANEXT)    \
  1145. +            $(REMOTE)$(MAN)/newmail$(MANEXT)    \
  1146. +            $(REMOTE)$(MAN)/printmail$(MANEXT)    \
  1147. +            $(REMOTE)$(MAN)/readmsg$(MANEXT)
  1148. +
  1149. +# List of files installed in LIB directory
  1150. +LIB_LIST    =    $(LIB)/elm-help.0    \
  1151. +            $(LIB)/elm-help.1    \
  1152. +            $(LIB)/elm-help.2    \
  1153. +            $(LIB)/elm-help.3    \
  1154. +            $(LIB)/elmrc-info
  1155. +
  1156. +# List of files installed in remote LIB directory
  1157. +REMOTE_LIB_LIST    =    $(REMOTE)$(LIB)/elm-help.0    \
  1158. +            $(REMOTE)$(LIB)/elm-help.1    \
  1159. +            $(REMOTE)$(LIB)/elm-help.2    \
  1160. +            $(REMOTE)$(LIB)/elm-help.3    \
  1161. +            $(REMOTE)$(LIB)/elmrc-info
  1162. +
  1163. +# List of formatted guides
  1164. +FORMATTED_LIST    =    Alias.fmtd    \
  1165. +            Config.fmtd     \
  1166. +            Cover.fmtd    \
  1167. +            Filter.fmtd    \
  1168. +            Form.fmtd    \
  1169. +            Ref.fmtd    \
  1170. +            Users.fmtd
  1171. +
  1172. +# Targets
  1173. +all: 
  1174. +    @if $(TEST) '$(CATMAN)' != none; then $(MAKE) formatted_pages ;  else true ; fi
  1175. +
  1176. +#    The following are no-ops
  1177. +lint:
  1178. +clean:    
  1179. +
  1180. +formatted_pages: catman $(FORMATTED_PAGES_LIST)
  1181. +
  1182. +catman:
  1183. +    mkdir catman
  1184. +
  1185. +install: $(LIB_LIST)
  1186. +    @if $(TEST) '$(MAN)' != none; then $(MAKE) install_man ; else true ;  fi
  1187. +    @if $(TEST) '$(CATMAN)' != none; then $(MAKE) install_catman ; else true ;  fi
  1188. +
  1189. +install_man: $(MAN_LIST) $(MAN)/wnewmail$(MANEXT)
  1190. +
  1191. +install_catman: $(CATMAN_LIST) $(CATMAN)/wnewmail$(CATMANEXT)$(SUFFIX)
  1192. +
  1193. +uninstall:
  1194. +    $(RM) $(LIB_LIST) 
  1195. +    @if $(TEST) '$(MAN)' != none; then  \
  1196. +        $(RM) $(MAN_LIST) $(MAN)/wnewmail$(MANEXT) ; \
  1197. +    else \
  1198. +        true ; \
  1199. +    fi
  1200. +    @if $(TEST) '$(CATMAN)' != none; then \
  1201. +        $(RM) $(CATMAN_LIST) $(CATMAN)/wnewmail$(CATMANEXT)$(SUFFIX) ; \
  1202. +    else \
  1203. +        true ; \
  1204. +    fi
  1205. +
  1206. +#    Dependencies and rules for installing man pages and lib files
  1207. +#    taken from a remote system
  1208. +#    This is the only target that gets installed even if not out-of-date
  1209. +#    with respect the files from which it is installed.
  1210. +rmt-install:    rmt-defined
  1211. +        $(RM) $(MAN)/newmail$(MANEXT) $(MAN)/wnewmail$(MANEXT)
  1212. +        $(CP) $(REMOTE_MAN_LIST) $(MAN)
  1213. +        $(CHMOD) u=rw,go=r $(MAN_LIST)
  1214. +        $(LN) $(MAN)/newmail$(MANEXT) $(MAN)/wnewmail$(MANEXT)
  1215. +        $(CP) $(REMOTE_LIB_LIST) $(LIB)
  1216. +        $(CHMOD) u=rw,go=r $(LIB_LIST)
  1217. +
  1218. +rmt-defined:
  1219. +    @(if [ "$(REMOTE)" = "" ];\
  1220. +      then\
  1221. +        $(ECHO) "You need to define 'REMOTE' as the remote file system";\
  1222. +        $(ECHO) "for this particular command. The easiest way to do this";\
  1223. +        $(ECHO) "to type:";\
  1224. +        $(ECHO) "        make REMOTE=<remote file system> rmt-install";\
  1225. +        exit 1;\
  1226. +      fi);
  1227. +
  1228. +#    Dependencies and rules for installing man pages and lib files
  1229. +$(MAN)/answer$(MANEXT):    answer.1
  1230. +                $(CP) $? $@
  1231. +                $(CHMOD) u=rw,go=r $@
  1232. +
  1233. +$(MAN)/checkalias$(MANEXT):    chkalias.1
  1234. +                $(CP) $? $@
  1235. +                $(CHMOD) u=rw,go=r $@
  1236. +
  1237. +$(MAN)/elm$(MANEXT):        elm.1
  1238. +                $(CP) $? $@
  1239. +                $(CHMOD) u=rw,go=r $@
  1240. +
  1241. +$(MAN)/elmalias$(MANEXT):    elmalias.1
  1242. +                $(CP) $? $@
  1243. +                $(CHMOD) u=rw,go=r $@
  1244. +
  1245. +$(MAN)/fastmail$(MANEXT):    fastmail.1
  1246. +                $(CP) $? $@
  1247. +                $(CHMOD) u=rw,go=r $@
  1248. +
  1249. +$(MAN)/filter$(MANEXT):    filter.1
  1250. +                $(CP) $? $@
  1251. +                $(CHMOD) u=rw,go=r $@
  1252. +
  1253. +$(MAN)/frm$(MANEXT):        frm.1
  1254. +                $(CP) $? $@
  1255. +                $(CHMOD) u=rw,go=r $@
  1256. +
  1257. +$(MAN)/listalias$(MANEXT):    listalias.1
  1258. +                $(CP) $? $@
  1259. +                $(CHMOD) u=rw,go=r $@
  1260. +
  1261. +$(MAN)/messages$(MANEXT):    messages.1
  1262. +                $(CP) $? $@
  1263. +                $(CHMOD) u=rw,go=r $@
  1264. +
  1265. +$(MAN)/newalias$(MANEXT):    newalias.1
  1266. +                $(CP) $? $@
  1267. +                $(CHMOD) u=rw,go=r $@
  1268. +
  1269. +$(MAN)/newmail$(MANEXT):    newmail.1
  1270. +                $(RM) $@
  1271. +                $(CP) $? $@
  1272. +                $(CHMOD) u=rw,go=r $@
  1273. +
  1274. +$(MAN)/printmail$(MANEXT):    printmail.1
  1275. +                $(CP) $? $@
  1276. +                $(CHMOD) u=rw,go=r $@
  1277. +
  1278. +$(MAN)/readmsg$(MANEXT):    readmsg.1
  1279. +                $(CP) $? $@
  1280. +                $(CHMOD) u=rw,go=r $@
  1281. +
  1282. +$(MAN)/wnewmail$(MANEXT):    $(MAN)/newmail$(MANEXT)
  1283. +                $(RM) $@
  1284. +                $(LN) $? $@
  1285. +
  1286. +$(LIB)/elm-help.0:        elm-help.0
  1287. +                $(CP) $? $@
  1288. +                $(CHMOD) u=rw,go=r $@
  1289. +
  1290. +$(LIB)/elm-help.1:        elm-help.1
  1291. +                $(CP) $? $@
  1292. +                $(CHMOD) u=rw,go=r $@
  1293. +
  1294. +$(LIB)/elm-help.2:        elm-help.2
  1295. +                $(CP) $? $@
  1296. +                $(CHMOD) u=rw,go=r $@
  1297. +
  1298. +$(LIB)/elm-help.3:        elm-help.3
  1299. +                $(CP) $? $@
  1300. +                $(CHMOD) u=rw,go=r $@
  1301. +
  1302. +$(LIB)/elmrc-info:        elmrc-info
  1303. +                $(CP) $? $@
  1304. +                $(CHMOD) u=rw,go=r $@
  1305. +
  1306. +#    Dependencies and rules for installing catman
  1307. +$(CATMAN)/answer$(CATMANEXT)$(SUFFIX):    catman/answer$(CATMANEXT)$(SUFFIX)
  1308. +                $(CP) $? $@
  1309. +                $(CHMOD) u=rw,go=r $@
  1310. +
  1311. +$(CATMAN)/checkalias$(CATMANEXT)$(SUFFIX): catman/checkalias$(CATMANEXT)$(SUFFIX)
  1312. +                $(CP) $? $@
  1313. +                $(CHMOD) u=rw,go=r $@
  1314. +
  1315. +$(CATMAN)/elm$(CATMANEXT)$(SUFFIX): catman/elm$(CATMANEXT)$(SUFFIX)
  1316. +                $(CP) $? $@
  1317. +                $(CHMOD) u=rw,go=r $@
  1318. +
  1319. +$(CATMAN)/elmalias$(CATMANEXT)$(SUFFIX): catman/elmalias$(CATMANEXT)$(SUFFIX)
  1320. +                $(CP) $? $@
  1321. +                $(CHMOD) u=rw,go=r $@
  1322. +
  1323. +$(CATMAN)/fastmail$(CATMANEXT)$(SUFFIX): catman/fastmail$(CATMANEXT)$(SUFFIX)
  1324. +                $(CP) $? $@
  1325. +                $(CHMOD) u=rw,go=r $@
  1326. +
  1327. +$(CATMAN)/filter$(CATMANEXT)$(SUFFIX): catman/filter$(CATMANEXT)$(SUFFIX)
  1328. +                $(CP) $? $@
  1329. +                $(CHMOD) u=rw,go=r $@
  1330. +
  1331. +$(CATMAN)/frm$(CATMANEXT)$(SUFFIX): catman/frm$(CATMANEXT)$(SUFFIX)
  1332. +                $(CP) $? $@
  1333. +                $(CHMOD) u=rw,go=r $@
  1334. +
  1335. +$(CATMAN)/listalias$(CATMANEXT)$(SUFFIX): catman/listalias$(CATMANEXT)$(SUFFIX)
  1336. +                $(CP) $? $@
  1337. +                $(CHMOD) u=rw,go=r $@
  1338. +
  1339. +$(CATMAN)/messages$(CATMANEXT)$(SUFFIX): catman/messages$(CATMANEXT)$(SUFFIX)
  1340. +                $(CP) $? $@
  1341. +                $(CHMOD) u=rw,go=r $@
  1342. +
  1343. +$(CATMAN)/newalias$(CATMANEXT)$(SUFFIX): catman/newalias$(CATMANEXT)$(SUFFIX)
  1344. +                $(CP) $? $@
  1345. +                $(CHMOD) u=rw,go=r $@
  1346. +
  1347. +$(CATMAN)/newmail$(CATMANEXT)$(SUFFIX): catman/newmail$(CATMANEXT)$(SUFFIX)
  1348. +                $(RM) $@
  1349. +                $(CP) $? $@
  1350. +                $(CHMOD) u=rw,go=r $@
  1351. +
  1352. +$(CATMAN)/printmail$(CATMANEXT)$(SUFFIX): catman/printmail$(CATMANEXT)$(SUFFIX)
  1353. +                $(CP) $? $@
  1354. +                $(CHMOD) u=rw,go=r $@
  1355. +
  1356. +$(CATMAN)/readmsg$(CATMANEXT)$(SUFFIX): catman/readmsg$(CATMANEXT)$(SUFFIX)
  1357. +                $(CP) $? $@
  1358. +                $(CHMOD) u=rw,go=r $@
  1359. +
  1360. +$(CATMAN)/wnewmail$(CATMANEXT)$(SUFFIX): $(CATMAN)/newmail$(CATMANEXT)$(SUFFIX)
  1361. +                $(RM) $@
  1362. +                $(LN) $? $@
  1363. +
  1364. +
  1365. +#    Dependencies and rules for making catman pages
  1366. +catman/answer$(CATMANEXT)$(SUFFIX):        answer.1
  1367. +    $(MANROFF) $(MANROFF_OPTS) -man $? > catman/answer$(CATMANEXT)
  1368. +    @if $(TEST) "$(PACKED)" = y ; then \
  1369. +        $(RM) $@ ; \
  1370. +        $(PACKER) catman/answer$(CATMANEXT) ; \
  1371. +    else \
  1372. +        true ; \
  1373. +    fi
  1374. +
  1375. +catman/checkalias$(CATMANEXT)$(SUFFIX):        chkalias.1
  1376. +    $(MANROFF) $(MANROFF_OPTS) -man $? > catman/checkalias$(CATMANEXT)
  1377. +    @if $(TEST) "$(PACKED)" = y ; then \
  1378. +        $(RM) $@ ; \
  1379. +        $(PACKER) catman/checkalias$(CATMANEXT) ; \
  1380. +    else \
  1381. +        true ; \
  1382. +    fi
  1383. +
  1384. +catman/elm$(CATMANEXT)$(SUFFIX):        elm.1
  1385. +    $(MANROFF) $(MANROFF_OPTS) -man $? > catman/elm$(CATMANEXT)
  1386. +    @if $(TEST) "$(PACKED)" = y ; then \
  1387. +        $(RM) $@ ; \
  1388. +        $(PACKER) catman/elm$(CATMANEXT) ; \
  1389. +    else \
  1390. +        true ; \
  1391. +    fi
  1392. +
  1393. +catman/elmalias$(CATMANEXT)$(SUFFIX):        elmalias.1
  1394. +    $(MANROFF) $(MANROFF_OPTS) -man $? > catman/elmalias$(CATMANEXT)
  1395. +    @if $(TEST) "$(PACKED)" = y ; then \
  1396. +        $(RM) $@ ; \
  1397. +        $(PACKER) catman/elmalias$(CATMANEXT) ; \
  1398. +    else \
  1399. +        true ; \
  1400. +    fi
  1401. +
  1402. +catman/fastmail$(CATMANEXT)$(SUFFIX):        fastmail.1
  1403. +    $(MANROFF) $(MANROFF_OPTS) -man $? > catman/fastmail$(CATMANEXT)
  1404. +    @if $(TEST) "$(PACKED)" = y ; then \
  1405. +        $(RM) $@ ; \
  1406. +        $(PACKER) catman/fastmail$(CATMANEXT) ; \
  1407. +    else \
  1408. +        true ; \
  1409. +    fi
  1410. +
  1411. +catman/filter$(CATMANEXT)$(SUFFIX):        filter.1
  1412. +    $(MANROFF) $(MANROFF_OPTS) -man $? > catman/filter$(CATMANEXT)
  1413. +    @if $(TEST) "$(PACKED)" = y ; then \
  1414. +        $(RM) $@ ; \
  1415. +        $(PACKER) catman/filter$(CATMANEXT) ; \
  1416. +    else \
  1417. +        true ; \
  1418. +    fi
  1419. +
  1420. +catman/frm$(CATMANEXT)$(SUFFIX):        frm.1
  1421. +    $(MANROFF) $(MANROFF_OPTS) -man $? > catman/frm$(CATMANEXT)
  1422. +    @if $(TEST) "$(PACKED)" = y ; then \
  1423. +        $(RM) $@ ; \
  1424. +        $(PACKER) catman/frm$(CATMANEXT) ; \
  1425. +    else \
  1426. +        true ; \
  1427. +    fi
  1428. +
  1429. +catman/listalias$(CATMANEXT)$(SUFFIX):        listalias.1
  1430. +    $(MANROFF) $(MANROFF_OPTS) -man $? > catman/listalias$(CATMANEXT)
  1431. +    @if $(TEST) "$(PACKED)" = y ; then \
  1432. +        $(RM) $@ ; \
  1433. +        $(PACKER) catman/listalias$(CATMANEXT) ; \
  1434. +    else \
  1435. +        true ; \
  1436. +    fi
  1437. +
  1438. +catman/messages$(CATMANEXT)$(SUFFIX):        messages.1
  1439. +    $(MANROFF) $(MANROFF_OPTS) -man $? > catman/messages$(CATMANEXT)
  1440. +    @if $(TEST) "$(PACKED)" = y ; then \
  1441. +        $(RM) $@ ; \
  1442. +        $(PACKER) catman/messages$(CATMANEXT) ; \
  1443. +    else \
  1444. +        true ; \
  1445. +    fi
  1446. +
  1447. +catman/newalias$(CATMANEXT)$(SUFFIX):        newalias.1
  1448. +    $(MANROFF) $(MANROFF_OPTS) -man $? > catman/newalias$(CATMANEXT)
  1449. +    @if $(TEST) "$(PACKED)" = y ; then \
  1450. +        $(RM) $@ ; \
  1451. +        $(PACKER) catman/newalias$(CATMANEXT) ; \
  1452. +    else \
  1453. +        true ; \
  1454. +    fi
  1455. +
  1456. +catman/newmail$(CATMANEXT)$(SUFFIX):        newmail.1
  1457. +    $(MANROFF) $(MANROFF_OPTS) -man $? > catman/newmail$(CATMANEXT)
  1458. +    @if $(TEST) "$(PACKED)" = y ; then \
  1459. +        $(RM) $@ ; \
  1460. +        $(PACKER) catman/newmail$(CATMANEXT) ; \
  1461. +    else \
  1462. +        true ; \
  1463. +    fi
  1464. +
  1465. +catman/printmail$(CATMANEXT)$(SUFFIX):        printmail.1
  1466. +    $(MANROFF) $(MANROFF_OPTS) -man $? > catman/printmail$(CATMANEXT)
  1467. +    @if $(TEST) "$(PACKED)" = y ; then \
  1468. +        $(RM) $@ ; \
  1469. +        $(PACKER) catman/printmail$(CATMANEXT) ; \
  1470. +    else \
  1471. +        true ; \
  1472. +    fi
  1473. +
  1474. +catman/readmsg$(CATMANEXT)$(SUFFIX):        readmsg.1
  1475. +    $(MANROFF) $(MANROFF_OPTS) -man $? > catman/readmsg$(CATMANEXT)
  1476. +    @if $(TEST) "$(PACKED)" = y ; then \
  1477. +        $(RM) $@ ; \
  1478. +        $(PACKER) catman/readmsg$(CATMANEXT) ; \
  1479. +    else \
  1480. +        true ; \
  1481. +    fi
  1482. +
  1483. +
  1484. +#    Dependencies and rules for formatting guides
  1485. +documentation:    $(FORMATTED_LIST)
  1486. +
  1487. +Alias.fmtd:    Alias.guide
  1488. +        $(TBL) $? | $(FORMATTER) $(FORMATTER_OPTS) tmac.n - > $@
  1489. +
  1490. +Config.fmtd:    Config.guid
  1491. +        $(TBL) $? | $(FORMATTER) $(FORMATTER_OPTS) tmac.n - > $@
  1492. +
  1493. +Cover.fmtd:    Elm.cover
  1494. +        $(FORMATTER) $(FORMATTER_OPTS) tmac.n $? > $@
  1495. +
  1496. +Filter.fmtd:    Filter.guid
  1497. +        $(TBL) $? | $(FORMATTER) $(FORMATTER_OPTS) tmac.n - > $@
  1498. +
  1499. +Form.fmtd:    Form.guide
  1500. +        $(FORMATTER) $(FORMATTER_OPTS) tmac.n $? > $@
  1501. +
  1502. +Ref.fmtd:    Ref.guide
  1503. +        $(FORMATTER) $(FORMATTER_OPTS) tmac.n $? > $@
  1504. +
  1505. +Users.fmtd:    Users.guide
  1506. +        $(TBL) $? | $(FORMATTER) $(FORMATTER_OPTS) tmac.n - > $@
  1507. +
  1508. diff -u --new-file --recursive elm2.4.orig/filter/Makefile elm2.4/filter/Makefile
  1509. --- elm2.4.orig/filter/Makefile    Wed Dec 31 19:00:00 1969
  1510. +++ elm2.4/filter/Makefile    Fri Jan 13 20:04:00 1995
  1511. @@ -0,0 +1,160 @@
  1512. +#
  1513. +# @(#): Makefile.SH,v 5.5 1993/06/06 17:35:04 syd Exp $
  1514. +#  Makefile for the Elm system filter program
  1515. +#
  1516. +#         (C) Copyright 1986,1987, by Dave Taylor
  1517. +#         (C) Copyright 1988-1992, USENET Community Trust
  1518. +#
  1519. +# Bug reports, patches, comments, suggestions should be sent to:
  1520. +#
  1521. +#    Syd Weinstein - elm@DSI.COM
  1522. +#            dsinc!elm
  1523. +#
  1524. +#  $Log: Makefile.SH,v $
  1525. +# Revision 5.5  1993/06/06  17:35:04  syd
  1526. +# Remove useless buffer.c
  1527. +#
  1528. +# Revision 5.4  1993/02/03  16:22:06  syd
  1529. +# add libutil.a as strtokq moved to lib
  1530. +#
  1531. +# Revision 5.3  1993/01/27  19:40:01  syd
  1532. +# I implemented a change to filter's default verbose message format
  1533. +# including %x %X style date and time along with username
  1534. +# From: mark@drd.com (Mark Lawrence)
  1535. +#
  1536. +# Revision 5.2  1992/11/15  01:40:43  syd
  1537. +# Add regexp processing to filter.
  1538. +# Add execc operator
  1539. +# From: Jan Djarv <Jan.Djarv@sa.erisoft.se>
  1540. +#
  1541. +# Revision 5.1  1992/10/03  22:18:09  syd
  1542. +# Initial checkin as of 2.4 Release at PL0
  1543. +#
  1544. +#
  1545. +# Variables
  1546. +#    Variables established by Configure
  1547. +CC        =    gcc
  1548. +CCFLAGS        =    -fpcc-struct-return -traditional 
  1549. +CHGRP        =    /bin/chgrp
  1550. +CHMOD        =    /bin/chmod
  1551. +CP        =    /bin/cp
  1552. +DEST        =    /usr/bin
  1553. +ECHO        =    /bin/echo
  1554. +LFLAGS        =    -s 
  1555. +LIB        =    /var/lib/elm
  1556. +LIB2        =     
  1557. +LIBS        =    -ltermcap 
  1558. +LINT        =    lint
  1559. +MAILGRP        =    mail
  1560. +MAILERMODE    =    2755
  1561. +MAKE        =    /usr/bin/pmake
  1562. +MV        =    /bin/mv
  1563. +OPTIMIZE    =    -O2
  1564. +RM        =     /bin/rm -f
  1565. +TOUCH        =    /bin/touch
  1566. +
  1567. +#    Variables you may want to manually edit
  1568. +#        If you want debug logging then you'll
  1569. +#        want to uncomment the following.
  1570. +#DEBUG        =    -DDEBUG
  1571. +
  1572. +#    Other variables
  1573. +BIN        =    ../bin
  1574. +INCLDIR        =    ../hdrs
  1575. +CFLAGS        =    $(CCFLAGS) $(OPTIMIZE) -I$(INCLDIR) $(DEBUG) $(DACSNET) 
  1576. +LINTFLAGS    =    -I$(INCLDIR)
  1577. +SHELL        =    /bin/sh
  1578. +
  1579. +# Definitions of variables
  1580. +FILTER_SRC    =    actions.c    \
  1581. +            filter.c    \
  1582. +            lock.c        \
  1583. +            parse.c        \
  1584. +            regexp.c    \
  1585. +            rules.c        \
  1586. +            summarize.c    \
  1587. +            utils.c        \
  1588. +            audit.c
  1589. +
  1590. +FILTER_OBJ    =    actions.o    \
  1591. +            filter.o    \
  1592. +            lock.o        \
  1593. +            parse.o        \
  1594. +            regexp.o    \
  1595. +            rules.o        \
  1596. +            summarize.o    \
  1597. +            utils.o        \
  1598. +            audit.o        \
  1599. +            ../lib/libutil.a
  1600. +
  1601. +# Standard targets
  1602. +all:        $(BIN)/filter
  1603. +        
  1604. +install:    $(DEST)/filter
  1605. +
  1606. +uninstall:    
  1607. +        $(RM) $(DEST)/filter
  1608. +
  1609. +#    This is the only target that gets installed even if not out-of-date
  1610. +#    with respect the files from which it is installed.
  1611. +rmt-install:    rmt-defined
  1612. +        -$(MV) $(DEST)/filter $(DEST)/filter.old
  1613. +        -$(RM) $(DEST)/filter.old
  1614. +        $(CP) $(REMOTE)$(DEST)/filter $(DEST)/filter
  1615. +        $(CHGRP) $(MAILGRP) $(DEST)/filter
  1616. +        $(CHMOD) $(MAILERMODE) $(DEST)/filter
  1617. +
  1618. +rmt-defined:
  1619. +    @(if [ "$(REMOTE)" = "" ];\
  1620. +      then\
  1621. +        $(ECHO) "You need to define 'REMOTE' as the remote file system";\
  1622. +        $(ECHO) "for this particular command. The easiest way to do this";\
  1623. +        $(ECHO) "to type:";\
  1624. +        $(ECHO) "        make REMOTE=<remote file system> rmt-install";\
  1625. +        exit 1;\
  1626. +      fi);
  1627. +
  1628. +lint:        
  1629. +        $(LINT) $(LINTFLAGS) $(FILTER_SRC) > LINT.OUT
  1630. +
  1631. +clean:        
  1632. +        $(RM) $(FILTER_OBJ) $(BIN)/filter
  1633. +
  1634. +# Dependencies and rules
  1635. +#    Dependencies of header files upon other header files they include
  1636. +.PRECIOUS:        $(INCLDIR)/defs.h $(INCLDIR)/elm.h $(INCLDIR)/headers.h
  1637. +
  1638. +$(INCLDIR)/defs.h:    $(INCLDIR)/../config.h $(INCLDIR)/sysdefs.h
  1639. +            $(CHMOD) u+w $@
  1640. +            $(TOUCH) $@
  1641. +
  1642. +$(INCLDIR)/elm.h:    $(INCLDIR)/curses.h $(INCLDIR)/defs.h
  1643. +            $(CHMOD) u+w $@
  1644. +            $(TOUCH) $@
  1645. +
  1646. +$(INCLDIR)/headers.h:    $(INCLDIR)/curses.h $(INCLDIR)/defs.h
  1647. +            $(CHMOD) u+w $@
  1648. +            $(TOUCH) $@
  1649. +
  1650. +#    Dependencies and rules for C object files
  1651. +actions.o:        $(INCLDIR)/defs.h $(INCLDIR)/filter.h $(INCLDIR)/s_filter.h
  1652. +filter.o:        $(INCLDIR)/defs.h $(INCLDIR)/filter.h $(INCLDIR)/s_filter.h
  1653. +lock.o:            $(INCLDIR)/defs.h $(INCLDIR)/filter.h $(INCLDIR)/s_filter.h
  1654. +parse.o:        $(INCLDIR)/defs.h $(INCLDIR)/filter.h $(INCLDIR)/s_filter.h
  1655. +regexp.o:        $(INCLDIR)/defs.h $(INCLDIR)/regexp.h
  1656. +rules.o:        $(INCLDIR)/defs.h $(INCLDIR)/filter.h $(INCLDIR)/s_filter.h
  1657. +summarize.o:        $(INCLDIR)/defs.h $(INCLDIR)/filter.h $(INCLDIR)/s_filter.h
  1658. +utils.o:        $(INCLDIR)/defs.h $(INCLDIR)/filter.h $(INCLDIR)/s_filter.h
  1659. +audit.o:        $(INCLDIR)/defs.h $(INCLDIR)/filter.h $(INCLDIR)/s_filter.h
  1660. +
  1661. +#    Dependencies and rules for compiling programs
  1662. +$(BIN)/filter:    $& $(FILTER_OBJ)
  1663. +        $(CC) $(LFLAGS) -o $@ $(FILTER_OBJ) ../lib/libutil.a $(LIB2)
  1664. +
  1665. +#    Dependencies and rules for installing programs from bin directory
  1666. +$(DEST)/filter:        $(BIN)/filter
  1667. +            -$(MV) $(DEST)/filter $(DEST)/filter.old
  1668. +            -$(RM) $(DEST)/filter.old
  1669. +            $(CP) $? $@
  1670. +            $(CHGRP) $(MAILGRP) $@
  1671. +            $(CHMOD) $(MAILERMODE) $@
  1672. diff -u --new-file --recursive elm2.4.orig/hdrs/sysdefs.h elm2.4/hdrs/sysdefs.h
  1673. --- elm2.4.orig/hdrs/sysdefs.h    Wed Dec 31 19:00:00 1969
  1674. +++ elm2.4/hdrs/sysdefs.h    Fri Jan 13 20:04:00 1995
  1675. @@ -0,0 +1,145 @@
  1676. +/* : sysdefs.SH,v 5.4 1992/12/24 19:24:10 syd Exp $ */
  1677. +/*******************************************************************************
  1678. + *  The Elm Mail System  -  : 5.4 $   : Exp $
  1679. + *
  1680. + *             Copyright (c) 1988-1992 USENET Community Trust
  1681. + *             Copyright (c) 1986,1987 Dave Taylor
  1682. + *******************************************************************************
  1683. + * Bug reports, patches, comments, suggestions should be sent to:
  1684. + *
  1685. + *    Syd Weinstein, Elm Coordinator
  1686. + *    elm@DSI.COM            dsinc!elm
  1687. + *
  1688. + *******************************************************************************
  1689. + * $Log: sysdefs.SH,v $
  1690. + * Revision 5.4  1992/12/24  19:24:10  syd
  1691. + * EDITOROPTS and DEFEDITOR appear to be unused but here is
  1692. + * a patch to make use of .
  1693. + * From: "Robert L. Howard" <robert.howard@matd.gatech.edu>
  1694. + *
  1695. + * Revision 5.3  1992/11/22  01:14:20  syd
  1696. + * Allow SCO MMDF to use the mmdf library for mailer via execmail.
  1697. + * From: Larry Philps <larryp@sco.com>
  1698. + *
  1699. + * Revision 5.2  1992/10/24  13:44:41  syd
  1700. + * There is now an additional elmrc option "displaycharset", which
  1701. + * sets the charset supported on your terminal. This is to prevent
  1702. + * elm from calling out to metamail too often.
  1703. + * Plus a slight documentation update for MIME composition (added examples)
  1704. + * From: Klaus Steinberger <Klaus.Steinberger@Physik.Uni-Muenchen.DE>
  1705. + *
  1706. + * Revision 5.1  1992/10/03  22:34:39  syd
  1707. + * Initial checkin as of 2.4 Release at PL0
  1708. + *
  1709. + *
  1710. + ******************************************************************************/
  1711. +
  1712. +/**  System level, configurable, defines for the ELM mail system.  **/
  1713. +
  1714. +
  1715. +#define MAX_IN_WEEDLIST 150    /* max headers to weed out               */
  1716. +
  1717. +#define MAX_HOPS    35    /* max hops in return addr to E)veryone  */
  1718. +
  1719. +#define DEFAULT_BATCH_SUBJECT  "no subject (file transmission)"
  1720. +
  1721. +#define DEFAULT_DOMAIN  ".UUCP"  /* if mydomain file is missing */
  1722. +
  1723. +/** If you want to implement 'site hiding' in the mail, then you'll need to
  1724. +    uncomment the following lines and set them to reasonable values.  See 
  1725. +    the configuration guide for more details....(actually these are undoc-
  1726. +    umented because they're fairly dangerous to use.  Just ignore 'em and
  1727. +    perhaps one day you'll find out what they do, ok?)
  1728. +**/
  1729. +
  1730. +/****************************************************************************
  1731. +
  1732. +#define   SITE_HIDING
  1733. +#define   HIDDEN_SITE_NAME    "fake-machine-name"
  1734. +#define   HIDDEN_SITE_USERS    "/usr/mail/lists/hidden_site_users"
  1735. +
  1736. +****************************************************************************/
  1737. +
  1738. +#define system_text_file        "/var/lib/elm/aliases.text"
  1739. +#define system_data_file        "/var/lib/elm/aliases"
  1740. +#define system_rc_file        "/var/lib/elm/elm.rc"
  1741. +
  1742. +#define ALIAS_TEXT        ".elm/aliases.text"
  1743. +#define ALIAS_DATA        ".elm/aliases"
  1744. +
  1745. +#define hostdomfile             "/var/lib/elm/domain"
  1746. +
  1747. +/** where to put the output of the elm -d command... (in home dir) **/
  1748. +#define DEBUGFILE    "ELM:debug.info"
  1749. +#define OLDEBUG        "ELM:debug.last"
  1750. +
  1751. +#define    default_temp       "/tmp/"
  1752. +#define temp_file    "snd."
  1753. +#define temp_form_file    "form."
  1754. +#define temp_mbox    "mbox."
  1755. +#define temp_print      "print."
  1756. +#define temp_edit    "elm-edit"
  1757. +#define temp_uuname    "uuname."
  1758. +#define temp_state    "est."
  1759. +
  1760. +#define emacs_editor    "emacs"
  1761. +#define vi_editor    "/usr/bin/vi"
  1762. +
  1763. +#define default_editor    "/usr/bin/vi "
  1764. +#define mailhome    "/var/spool/mail/"
  1765. +
  1766. +#define default_shell    "/bin/bash"
  1767. +#define default_pager    "builtin+"
  1768. +#define default_printout    "/bin/cat %s | /usr/bin/lpr"
  1769. +
  1770. +#define default_charset    "US-ASCII"
  1771. +#define default_display_charset    "US-ASCII"
  1772. +#define default_encoding    "7bit"
  1773. +#define execmail    ""
  1774. +#define emflags        ""
  1775. +#define emflagsv    "-d"        /* Verbose voyuer mode */
  1776. +#define emflagmt    "-m"        /* metoo copy to sender */
  1777. +
  1778. +#define sendmail    "/usr/sbin/sendmail"
  1779. +#define smflags        "-oi -oem"    /* ignore dots and mail back errors */
  1780. +#define smflagsv    "-oi -oem -v"    /* Verbose voyuer mode */
  1781. +#define smflagmt    " -om"        /* metoo copy to sender */
  1782. +#define submitmail    ""
  1783. +#define submitflags    "-mlrnvxto,cc*"
  1784. +#define submitflags_s    "-mlrnv"
  1785. +#define mailer        "/usr/sbin/sendmail"
  1786. +
  1787. +#define mailx        "/bin/mailx"
  1788. +
  1789. +#define helphome    "/var/lib/elm"
  1790. +#define helpfile    "elm-help"
  1791. +
  1792. +#define ELMRC_INFO    "/var/lib/elm/elmrc-info"
  1793. +
  1794. +#define elmrcfile    ".elm/elmrc"
  1795. +#define old_elmrcfile    ".elm/elmrc.old"
  1796. +#define mailheaders    ".elm/elmheaders"
  1797. +#define dead_letter    "Canceled.mail"
  1798. +
  1799. +#define unedited_mail    "emergency.mbox"
  1800. +
  1801. +#define newalias    "newalias 1>&2 > /dev/null"
  1802. +#define readmsg        "readmsg"
  1803. +
  1804. +#define remove_cmd    "/bin/rm -f"    /* how to remove a file */
  1805. +#define cat        "/bin/cat"        /* how to display files */
  1806. +#define sed_cmd        "/usr/bin/sed"        /* how to access sed */
  1807. +#define move_cmd    "/bin/mv"        /* how to access sed */
  1808. +#define uuname        "uuname"    /* how to get a uuname  */
  1809. +
  1810. +#define MSG_SEPARATOR    "\001\001\001\001\n"    /* mmdf message seperator */
  1811. +
  1812. +#ifdef CRAY
  1813. +/* avoid conflict with typedef'd word */
  1814. +#define word wrd   
  1815. +#endif /* CRAY */
  1816. +
  1817. +#ifndef STRSTR
  1818. +char *strstr();
  1819. +#endif
  1820. +
  1821. diff -u --new-file --recursive elm2.4.orig/lib/Makefile elm2.4/lib/Makefile
  1822. --- elm2.4.orig/lib/Makefile    Wed Dec 31 19:00:00 1969
  1823. +++ elm2.4/lib/Makefile    Fri Jan 13 20:04:01 1995
  1824. @@ -0,0 +1,327 @@
  1825. +# : Makefile.SH,v 5.15 1993/08/03 19:28:39 syd Exp $
  1826. +#
  1827. +#  Makefile for the ELM mail program.
  1828. +#
  1829. +#    Copyright (c) 1986,1987 Dave Taylor
  1830. +#    Copyright (c) 1988-1992 USENET Community Trust
  1831. +#
  1832. +# Bug reports, patches, comments, suggestions should be sent to:
  1833. +#
  1834. +#    Syd Weinstein - elm@DSI.COM
  1835. +#            dsinc!elm
  1836. +#
  1837. +# $Log: Makefile.SH,v $
  1838. +# Revision 5.15  1993/08/03  19:28:39  syd
  1839. +# Elm tries to replace the system toupper() and tolower() on current
  1840. +# BSD systems, which is unnecessary.  Even worse, the replacements
  1841. +# collide during linking with routines in isctype.o.  This patch adds
  1842. +# a Configure test to determine whether replacements are really needed
  1843. +# (BROKE_CTYPE definition).  The <ctype.h> header file is now included
  1844. +# globally through hdrs/defs.h and the BROKE_CTYPE patchup is handled
  1845. +# there.  Inclusion of <ctype.h> was removed from *all* the individual
  1846. +# files, and the toupper() and tolower() routines in lib/opt_utils.c
  1847. +# were dropped.
  1848. +# From: chip@chinacat.unicom.com (Chip Rosenthal)
  1849. +#
  1850. +# Revision 5.14  1993/08/03  19:17:33  syd
  1851. +# Implement new timezone handling.  New file lib/get_tz.c with new timezone
  1852. +# routines.  Added new TZMINS_USE_xxxxxx and TZNAME_USE_xxxxxx configuration
  1853. +# definitions.  Obsoleted TZNAME, ALTCHECK, and TZ_MINUTESWEST configuration
  1854. +# definitions.  Updated Configure.  Modified lib/getarpdate.c and
  1855. +# lib/strftime.c to use new timezone routines.
  1856. +#
  1857. +# From: chip@chinacat.unicom.com (Chip Rosenthal)
  1858. +#
  1859. +# Revision 5.13  1993/08/02  18:14:35  syd
  1860. +# add missing references for mcprt.c/mcprtlib.c to defs.h
  1861. +# From: Syd
  1862. +#
  1863. +# Revision 5.12  1993/06/10  03:02:46  syd
  1864. +# break_down_tolist() tried to blindly split address lists at "," which
  1865. +# caused bogus results with addreses that had a comma inside a comment
  1866. +# or quoted text, such as "user@domain (Last, First)".  This patch steps
  1867. +# through the address in quanta of RFC-822 tokens when searching for a
  1868. +# delimiting comma.  It also adds "rfc822_toklen()" to the library to
  1869. +# get that length.
  1870. +# From: chip@chinacat.unicom.com (Chip Rosenthal)
  1871. +#
  1872. +# Revision 5.11  1993/04/12  01:51:42  syd
  1873. +# Added safe_malloc(), safe_realloc(), and safe_strdup().  They
  1874. +# will be used in the new elmalias utility.
  1875. +# From: chip@chinacat.unicom.com (Chip Rosenthal)
  1876. +#
  1877. +# Revision 5.10  1993/02/03  16:21:03  syd
  1878. +# add strtokq
  1879. +# From: Syd
  1880. +#
  1881. +# Revision 5.9  1993/01/27  18:52:03  syd
  1882. +# add strftime as optional component
  1883. +#
  1884. +# Revision 5.8  1993/01/19  05:07:05  syd
  1885. +# Trim erroreous extra log entry
  1886. +# From: Syd
  1887. +#
  1888. +# Revision 5.7  1993/01/19  04:47:12  syd
  1889. +# Significant changes to provide consistent Date and From_ header
  1890. +# cracking.  Overhauled date utilities and moved into library.  Moved
  1891. +# real_from() into library.  Modified frm, newmail, and readmsg utilities
  1892. +# to use library version of real_from().  Moved get_word() from Elm
  1893. +# source into library.  Added new library routines atonum() and strfcpy().
  1894. +# Fixed trailing backslash bug in len_next().
  1895. +# From: chip@chinacat.unicom.com (Chip Rosenthal)
  1896. +#
  1897. +# Revision 5.6  1992/12/24  19:33:59  syd
  1898. +# tune dependency list further
  1899. +# From: Syd
  1900. +#
  1901. +# Revision 5.5  1992/12/24  19:30:46  syd
  1902. +# Make all object depend on config.h, so a reconfig for a new
  1903. +# arch in shared sources (or copied sources) forces a recompile
  1904. +# of all modules.
  1905. +# From: Syd
  1906. +#
  1907. +# Revision 5.4  1992/12/20  05:15:58  syd
  1908. +# Add a c)hange alias, -u and -t options to listalias to list only user
  1909. +# and only system aliases respectively.
  1910. +# From: "Robert L. Howard" <robert.howard@matd.gatech.edu>
  1911. +#
  1912. +# Revision 5.3  1992/11/07  20:07:23  syd
  1913. +# Add header_cmp routine
  1914. +# From: Syd
  1915. +#
  1916. +# Revision 5.2  1992/10/27  01:43:40  syd
  1917. +# Move posix_signal to lib directory
  1918. +# From: tom@osf.org
  1919. +#
  1920. +# Revision 5.1  1992/10/03  22:41:36  syd
  1921. +# Initial checkin as of 2.4 Release at PL0
  1922. +#
  1923. +#
  1924. +#
  1925. +# Variables
  1926. +#    Variables established by Configure
  1927. +AR        =    ar
  1928. +CC        =    gcc
  1929. +CCFLAGS        =    -fpcc-struct-return -traditional 
  1930. +CHMOD        =    /bin/chmod
  1931. +LINT        =    lint
  1932. +OPTIMIZE    =    -O2
  1933. +RANLIB        =    :
  1934. +RM        =     /bin/rm -f
  1935. +TOUCH        =    /bin/touch
  1936. +TAGS        =    ctags
  1937. +
  1938. +MCSRC        =    mcprt.c mcprtlib.c msgcat.c
  1939. +MCOBJ        =    mcprt.o mcprtlib.o msgcat.o
  1940. +
  1941. +STRSRC        =    
  1942. +STROBJ        =    
  1943. +
  1944. +FTIMESRC    =    
  1945. +FTIMEOBJ    =    
  1946. +
  1947. +
  1948. +#    Variables you may want to manually edit
  1949. +#        If you want debug logging then you'll
  1950. +#        want to uncomment the following.
  1951. +#DEBUG        =    -DDEBUG
  1952. +
  1953. +#        If you're on an ACSnet system (Australia) then
  1954. +#        you'll want to uncomment the following.
  1955. +# DACSNET    =    -DACSNET
  1956. +
  1957. +#    Other general variables
  1958. +CFLAGS        =    $(CCFLAGS) $(OPTIMIZE) -I$(INCLDIR) $(DEBUG) $(DACSNET) 
  1959. +INCLDIR        =    ../hdrs
  1960. +LINTFLAGS    =    -I$(INCLDIR)
  1961. +SHELL        =    /bin/sh
  1962. +
  1963. +#     Lists
  1964. +LIB_SRC        =    add_site.c    \
  1965. +            addrmchusr.c    \
  1966. +            atonum.c    \
  1967. +            mk_aliases.c    \
  1968. +            aliasdb.c    \
  1969. +            mk_lockname.c    \
  1970. +            can_access.c    \
  1971. +            can_open.c    \
  1972. +            chloc.c        \
  1973. +            date_util.c    \
  1974. +            errno.c        \
  1975. +            expand.c    \
  1976. +            figadrssee.c    \
  1977. +            gcos_name.c    \
  1978. +            getaddrfrm.c    \
  1979. +            getarpdate.c    \
  1980. +            getfullnam.c    \
  1981. +            getword.c    \
  1982. +            get_tz.c    \
  1983. +            header_cmp.c    \
  1984. +            in_list.c    \
  1985. +            in_string.c    \
  1986. +            istrcmp.c    \
  1987. +            ldstate.c    \
  1988. +            len_next.c    \
  1989. +            mail_gets.c    \
  1990. +            $(MCSRC)    \
  1991. +            move_left.c    \
  1992. +            ndbz.c        \
  1993. +            okay_addr.c    \
  1994. +            opt_utils.c    \
  1995. +            parsarpdat.c    \
  1996. +            parsarpwho.c    \
  1997. +            posixsig.c    \
  1998. +            putenv.c    \
  1999. +            realfrom.c    \
  2000. +            qstrings.c    \
  2001. +            remfirstwd.c    \
  2002. +            reverse.c    \
  2003. +            rfc822tlen.c    \
  2004. +            safemalloc.c    \
  2005. +            shiftlower.c    \
  2006. +            strfcpy.c    \
  2007. +            strincmp.c    \
  2008. +            striparens.c    \
  2009. +            $(STRSRC)    \
  2010. +            $(FTIMESRC)    \
  2011. +            strtokq.c    \
  2012. +            tail_of.c    \
  2013. +            validname.c
  2014. +
  2015. +LIB_OBJ        =    add_site.o    \
  2016. +            addrmchusr.o    \
  2017. +            atonum.o    \
  2018. +            mk_aliases.o    \
  2019. +            aliasdb.o    \
  2020. +            mk_lockname.o    \
  2021. +            can_access.o    \
  2022. +            can_open.o    \
  2023. +            chloc.o        \
  2024. +            date_util.o    \
  2025. +            errno.o        \
  2026. +            expand.o    \
  2027. +            figadrssee.o    \
  2028. +            gcos_name.o    \
  2029. +            get_tz.o    \
  2030. +            getaddrfrm.o    \
  2031. +            getarpdate.o    \
  2032. +            getfullnam.o    \
  2033. +            getword.o    \
  2034. +            header_cmp.o    \
  2035. +            in_list.o    \
  2036. +            in_string.o    \
  2037. +            istrcmp.o    \
  2038. +            ldstate.o    \
  2039. +            len_next.o    \
  2040. +            mail_gets.o    \
  2041. +            $(MCOBJ)    \
  2042. +            move_left.o    \
  2043. +            ndbz.o        \
  2044. +            okay_addr.o    \
  2045. +            opt_utils.o    \
  2046. +            parsarpdat.o    \
  2047. +            parsarpwho.o    \
  2048. +            posixsig.o    \
  2049. +            putenv.o    \
  2050. +            qstrings.o    \
  2051. +            realfrom.o    \
  2052. +            remfirstwd.o    \
  2053. +            reverse.o    \
  2054. +            rfc822tlen.o    \
  2055. +            safemalloc.o    \
  2056. +            shiftlower.o    \
  2057. +            strfcpy.o    \
  2058. +            strincmp.o    \
  2059. +            striparens.o    \
  2060. +            $(STROBJ)    \
  2061. +            $(FTIMEOBJ)    \
  2062. +            strtokq.o    \
  2063. +            tail_of.o    \
  2064. +            validname.o
  2065. +
  2066. +all:            libutil.a
  2067. +
  2068. +install:        libutil.a
  2069. +
  2070. +uninstall:        libutil.a
  2071. +
  2072. +libutil.a:        $(LIB_OBJ)
  2073. +            $(AR) r $@ $?
  2074. +            $(RANLIB) $@
  2075. +
  2076. +lint:        
  2077. +        $(LINT) $(LINTFLAGS) $(LIB_SRC) > LINT.OUT
  2078. +
  2079. +tags:
  2080. +        $(TAGS) $(LIB_SRC)
  2081. +
  2082. +clean:        
  2083. +        $(RM) $(LIB_OBJ) libutil.a
  2084. +
  2085. +# Dependencies and rules
  2086. +#    Dependencies of header files upon other header files they include
  2087. +.PRECIOUS:        $(INCLDIR)/defs.h $(INCLDIR)/elm.h $(INCLDIR)/headers.h
  2088. +
  2089. +$(INCLDIR)/defs.h:    $(INCLDIR)/../config.h $(INCLDIR)/sysdefs.h
  2090. +            $(CHMOD) u+w $@
  2091. +            $(TOUCH) $@
  2092. +
  2093. +$(INCLDIR)/elm.h:    $(INCLDIR)/curses.h $(INCLDIR)/defs.h
  2094. +            $(CHMOD) u+w $@
  2095. +            $(TOUCH) $@
  2096. +
  2097. +$(INCLDIR)/headers.h:    $(INCLDIR)/curses.h $(INCLDIR)/defs.h
  2098. +            $(CHMOD) u+w $@
  2099. +            $(TOUCH) $@
  2100. +
  2101. +#    Dependencies of C object files
  2102. +add_site.o:    $(INCLDIR)/headers.h
  2103. +addrmchusr.o:    $(INCLDIR)/headers.h
  2104. +atonum.o:    $(INCLDIR)/defs.h
  2105. +mk_aliases.o:    $(INCLDIR)/headers.h $(INCLDIR)/ndbz.h $(INCLDIR)/s_newalias.h
  2106. +aliasdb.o:    $(INCLDIR)/headers.h $(INCLDIR)/ndbz.h
  2107. +mk_lockname.o:    $(INCLDIR)/headers.h
  2108. +can_access.o:    $(INCLDIR)/headers.h
  2109. +can_open.o:    $(INCLDIR)/headers.h
  2110. +chloc.o:    $(INCLDIR)/headers.h
  2111. +date_util.o:    $(INCLDIR)/headers.h
  2112. +errno.o:    $(INCLDIR)/headers.h
  2113. +expand.o:    $(INCLDIR)/defs.h $(INCLDIR)/s_elmrc.h
  2114. +figadrssee.o:    $(INCLDIR)/headers.h
  2115. +gcos_name.o:    $(INCLDIR)/headers.h
  2116. +get_tz.o:    $(INCLDIR)/defs.h
  2117. +getaddrfrm.o:    $(INCLDIR)/headers.h
  2118. +getarpdate.o:    $(INCLDIR)/headers.h
  2119. +getfullnam.o:    $(INCLDIR)/headers.h
  2120. +getword.o:    $(INCLDIR)/defs.h
  2121. +header_cmp.o:    $(INCLDIR)/headers.h
  2122. +in_list.o:    $(INCLDIR)/headers.h
  2123. +in_string.o:    $(INCLDIR)/headers.h
  2124. +istrcmp.o:    $(INCLDIR)/headers.h
  2125. +ldstate.o:    $(INCLDIR)/defs.h
  2126. +len_next.o:    ../config.h
  2127. +mail_gets.o:    ../config.h
  2128. +mcprt.o:    $(INCLDIR)/mcprt.h $(INCLDIR)/mcprtlib.h $(INCLDIR)/defs.h
  2129. +mcprtlib.o:    $(INCLDIR)/mcprtlib.h $(INCLDIR)/nl_types.h $(INCLDIR)/defs.h
  2130. +move_left.o:    $(INCLDIR)/headers.h
  2131. +msgcat.o:    $(INCLDIR)/msgcat.h $(INCLDIR)/nl_types.h
  2132. +ndbz.o:        $(INCLDIR)/headers.h $(INCLDIR)/ndbz.h
  2133. +okay_addr.o:    $(INCLDIR)/headers.h
  2134. +opt_utils.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_error.h
  2135. +parsarpdat.o:    $(INCLDIR)/headers.h
  2136. +parsarpwho.o:    $(INCLDIR)/headers.h
  2137. +posixsig.o:    $(INCLDIR)/headers.h
  2138. +putenv.o:    $(INCLDIR)/headers.h
  2139. +realfrom.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2140. +qstrings.o:    ../config.h
  2141. +remfirstwd.o:    $(INCLDIR)/headers.h
  2142. +reverse.o:    $(INCLDIR)/headers.h
  2143. +safemalloc.o:    $(INCLDIR)/defs.h
  2144. +shiftlower.o:    $(INCLDIR)/headers.h
  2145. +strincmp.o:    $(INCLDIR)/headers.h
  2146. +striparens.o:    $(INCLDIR)/headers.h
  2147. +strstr.o:    $(INCLDIR)/headers.h
  2148. +strtokq.o:    $(INCLDIR)/headers.h
  2149. +tail_of.o:    $(INCLDIR)/headers.h
  2150. +validname.o:    $(INCLDIR)/defs.h
  2151. +
  2152. diff -u --new-file --recursive elm2.4.orig/src/Makefile elm2.4/src/Makefile
  2153. --- elm2.4.orig/src/Makefile    Wed Dec 31 19:00:00 1969
  2154. +++ elm2.4/src/Makefile    Fri Jan 13 20:04:02 1995
  2155. @@ -0,0 +1,309 @@
  2156. +# : Makefile.SH,v 5.1 1992/10/03 22:58:40 syd Exp $
  2157. +#
  2158. +#  Makefile for the ELM mail program.
  2159. +#
  2160. +#    Copyright (c) 1988-1992 USENET Community Trust
  2161. +#    Copyright (c) 1986,1987 Dave Taylor
  2162. +#
  2163. +# Bug reports, patches, comments, suggestions should be sent to:
  2164. +#
  2165. +#    Syd Weinstein - elm@DSI.COM
  2166. +#            dsinc!elm
  2167. +#
  2168. +# $Log: Makefile.SH,v $
  2169. +# Revision 5.1  1992/10/03  22:58:40  syd
  2170. +# Initial checkin as of 2.4 Release at PL0
  2171. +#
  2172. +# Revision 5.1  1992/10/03  22:58:40  syd
  2173. +# Initial checkin as of 2.4 Release at PL0
  2174. +#
  2175. +# 
  2176. +#
  2177. +# Variables
  2178. +#    Variables established by Configure
  2179. +CC        =    gcc
  2180. +CCFLAGS        =    -fpcc-struct-return -traditional 
  2181. +CHGRP        =    /bin/chgrp
  2182. +CHMOD        =    /bin/chmod
  2183. +CP        =    /bin/cp
  2184. +DEST        =    /usr/bin
  2185. +ECHO        =    /bin/echo
  2186. +LFLAGS        =    -s 
  2187. +LIB        =    /var/lib/elm
  2188. +LIB2        =     
  2189. +LIBS        =     -ltermcap 
  2190. +LINT        =    lint
  2191. +MAILGRP        =    mail
  2192. +MAILERMODE    =    2755
  2193. +MV        =    /bin/mv
  2194. +OPTIMIZE    =    -O2
  2195. +RM        =     /bin/rm -f
  2196. +TOUCH        =    /bin/touch
  2197. +TAGS        =    ctags
  2198. +
  2199. +
  2200. +#    Variables you may want to manually edit
  2201. +#        If you want debug logging then you'll
  2202. +#        want to uncomment the following.
  2203. +#DEBUG        =    -DDEBUG
  2204. +
  2205. +#        If you're on an ACSnet system (Australia) then
  2206. +#        you'll want to uncomment the following.
  2207. +# DACSNET    =    -DACSNET
  2208. +
  2209. +#    Other general variables
  2210. +BIN        =    ../bin
  2211. +CFLAGS        =    $(CCFLAGS) $(OPTIMIZE) -I$(INCLDIR) $(DEBUG) $(DACSNET) 
  2212. +INCLDIR        =    ../hdrs
  2213. +LINTFLAGS    =    -I$(INCLDIR)
  2214. +SHELL        =    /bin/sh
  2215. +
  2216. +#     Lists
  2217. +ELM_SRC        =    addr_util.c    \
  2218. +            alias.c        \
  2219. +            aliaslib.c    \
  2220. +            args.c        \
  2221. +            a_edit.c    \
  2222. +            a_screen.c    \
  2223. +            a_sort.c    \
  2224. +            a_quit.c    \
  2225. +            bouncebk.c    \
  2226. +            builtin.c    \
  2227. +            calendar.c    \
  2228. +            curses.c    \
  2229. +            date.c        \
  2230. +            delete.c    \
  2231. +            edit.c        \
  2232. +            editmsg.c    \
  2233. +            elm.c        \
  2234. +            encode.c    \
  2235. +            exitprog.c    \
  2236. +            expires.c    \
  2237. +            file.c        \
  2238. +            file_util.c    \
  2239. +            fileio.c    \
  2240. +            find_alias.c    \
  2241. +            forms.c        \
  2242. +            hdrconfg.c    \
  2243. +            help.c        \
  2244. +            in_utils.c    \
  2245. +            init.c        \
  2246. +            leavembox.c    \
  2247. +            lock.c        \
  2248. +            limit.c        \
  2249. +            mailmsg1.c    \
  2250. +            mailmsg2.c    \
  2251. +            mime.c        \
  2252. +            mkhdrs.c    \
  2253. +            newmbox.c    \
  2254. +            options.c    \
  2255. +            out_utils.c    \
  2256. +            pattern.c    \
  2257. +            pmalloc.c    \
  2258. +            quit.c        \
  2259. +            read_rc.c    \
  2260. +            remail.c    \
  2261. +            reply.c        \
  2262. +            returnadd.c    \
  2263. +            save_opts.c    \
  2264. +            savecopy.c    \
  2265. +            screen.c    \
  2266. +            showmsg.c    \
  2267. +            showmsg_c.c    \
  2268. +            signals.c    \
  2269. +            softkeys.c    \
  2270. +            sort.c        \
  2271. +            string2.c    \
  2272. +            strings.c    \
  2273. +            syscall.c    \
  2274. +            utils.c        \
  2275. +            wildcards.c    \
  2276. +            wordwrap.c
  2277. +
  2278. +ELM_OBJ        =    addr_util.o    \
  2279. +            alias.o        \
  2280. +            aliaslib.o    \
  2281. +            args.o        \
  2282. +            a_edit.o    \
  2283. +            a_screen.o    \
  2284. +            a_sort.o    \
  2285. +            a_quit.o    \
  2286. +            bouncebk.o    \
  2287. +            builtin.o    \
  2288. +            calendar.o    \
  2289. +            curses.o    \
  2290. +            date.o        \
  2291. +            delete.o    \
  2292. +            edit.o        \
  2293. +            editmsg.o    \
  2294. +            elm.o        \
  2295. +            encode.o    \
  2296. +            exitprog.o    \
  2297. +            expires.o    \
  2298. +            file.o        \
  2299. +            file_util.o    \
  2300. +            fileio.o    \
  2301. +            find_alias.o    \
  2302. +            forms.o        \
  2303. +            hdrconfg.o    \
  2304. +            help.o        \
  2305. +            in_utils.o    \
  2306. +            init.o        \
  2307. +            leavembox.o    \
  2308. +            lock.o        \
  2309. +            limit.o        \
  2310. +            mailmsg1.o    \
  2311. +            mailmsg2.o    \
  2312. +            mime.o        \
  2313. +            mkhdrs.o    \
  2314. +            newmbox.o    \
  2315. +            options.o    \
  2316. +            out_utils.o    \
  2317. +            pattern.o    \
  2318. +            pmalloc.o    \
  2319. +            quit.o        \
  2320. +            read_rc.o    \
  2321. +            remail.o    \
  2322. +            reply.o        \
  2323. +            returnadd.o    \
  2324. +            save_opts.o    \
  2325. +            savecopy.o    \
  2326. +            screen.o    \
  2327. +            showmsg.o    \
  2328. +            showmsg_c.o    \
  2329. +            signals.o    \
  2330. +            softkeys.o    \
  2331. +            sort.o        \
  2332. +            string2.o    \
  2333. +            strings.o    \
  2334. +            syscall.o    \
  2335. +            utils.o        \
  2336. +            wildcards.o    \
  2337. +            wordwrap.o
  2338. +
  2339. +# Standard targets
  2340. +all:        $(BIN)/elm
  2341. +
  2342. +install:    $(DEST)/elm
  2343. +
  2344. +uninstall:    
  2345. +        $(RM) $(DEST)/elm
  2346. +
  2347. +#    This is the only target that gets installed even if not out-of-date
  2348. +#    with respect the files from which it is installed.
  2349. +rmt-install:    rmt-defined
  2350. +        -$(MV) $(DEST)/elm $(DEST)/elm.old
  2351. +        -$(RM) $(DEST)/elm.old
  2352. +        $(CP) $(REMOTE)$(DEST)/elm $(DEST)/elm
  2353. +        $(CHGRP) $(MAILGRP) $(DEST)/elm
  2354. +        $(CHMOD) $(MAILERMODE) $(DEST)/elm
  2355. +
  2356. +rmt-defined:
  2357. +    @(if [ "$(REMOTE)" = "" ];\
  2358. +      then\
  2359. +        $(ECHO) "You need to define 'REMOTE' as the remote file system";\
  2360. +        $(ECHO) "for this particular command. The easiest way to do this";\
  2361. +        $(ECHO) "to type:";\
  2362. +        $(ECHO) "        make REMOTE=<remote file system> rmt-install";\
  2363. +        exit 1;\
  2364. +    fi);
  2365. +
  2366. +lint:        
  2367. +        $(LINT) $(LINTFLAGS) $(ELM_SRC) > LINT.OUT
  2368. +
  2369. +tags:
  2370. +        $(TAGS) $(ELM_SRC)
  2371. +
  2372. +clean:        
  2373. +        $(RM) $(ELM_OBJ) $(BIN)/elm
  2374. +
  2375. +# Dependencies and rules
  2376. +#    Dependencies of header files upon other header files they include
  2377. +.PRECIOUS:        $(INCLDIR)/defs.h $(INCLDIR)/elm.h $(INCLDIR)/headers.h
  2378. +
  2379. +$(INCLDIR)/defs.h:    $(INCLDIR)/../config.h $(INCLDIR)/sysdefs.h
  2380. +            $(CHMOD) u+w $@
  2381. +            $(TOUCH) $@
  2382. +
  2383. +$(INCLDIR)/elm.h:    $(INCLDIR)/curses.h $(INCLDIR)/defs.h
  2384. +            $(CHMOD) u+w $@
  2385. +            $(TOUCH) $@
  2386. +
  2387. +$(INCLDIR)/headers.h:    $(INCLDIR)/curses.h $(INCLDIR)/defs.h
  2388. +            $(CHMOD) u+w $@
  2389. +            $(TOUCH) $@
  2390. +
  2391. +#    Dependencies of C object files
  2392. +addr_util.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2393. +alias.o:    $(INCLDIR)/headers.h $(INCLDIR)/ndbz.h $(INCLDIR)/s_aliases.h $(INCLDIR)/s_elm.h
  2394. +aliaslib.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2395. +args.o:        $(INCLDIR)/headers.h $(INCLDIR)/patchlevel.h $(INCLDIR)/s_elm.h
  2396. +a_edit.o:    $(INCLDIR)/headers.h
  2397. +a_screen.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_aliases.h
  2398. +a_sort.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_aliases.h
  2399. +a_quit.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_aliases.h
  2400. +bouncebk.o:    $(INCLDIR)/headers.h
  2401. +builtin.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2402. +calendar.o:    $(INCLDIR)/headers.h
  2403. +curses.o:    $(INCLDIR)/headers.h
  2404. +date.o:        $(INCLDIR)/headers.h
  2405. +delete.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2406. +edit.o:        $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2407. +editmsg.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2408. +elm.o:        $(INCLDIR)/elm.h $(INCLDIR)/s_elm.h
  2409. +encode.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2410. +exitprog.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2411. +expires.o:    $(INCLDIR)/headers.h
  2412. +file.o:        $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2413. +file_util.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2414. +fileio.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2415. +find_alias.o:    $(INCLDIR)/headers.h
  2416. +forms.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2417. +hdrconfg.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2418. +help.o:        $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2419. +in_utils.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2420. +init.o:        $(INCLDIR)/headers.h $(INCLDIR)/patchlevel.h $(INCLDIR)/s_elm.h
  2421. +leavembox.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2422. +lock.o:        $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2423. +limit.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h $(INCLDIR)/s_aliases.h
  2424. +mailmsg1.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2425. +mailmsg2.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2426. +mkhdrs.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2427. +mime.o:        $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2428. +newmbox.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2429. +options.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h $(INCLDIR)/save_opts.h
  2430. +out_utils.o:    $(INCLDIR)/headers.h
  2431. +pattern.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2432. +pmalloc.o:    $(INCLDIR)/defs.h $(INCLDIR)/s_elm.h
  2433. +quit.o:        $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2434. +read_rc.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h $(INCLDIR)/save_opts.h
  2435. +remail.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2436. +reply.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2437. +returnadd.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2438. +save_opts.o:    $(INCLDIR)/save_opts.h $(INCLDIR)/headers.h $(INCLDIR)/s_elmrc.h
  2439. +savecopy.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2440. +screen.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2441. +showmsg.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2442. +showmsg_c.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2443. +signals.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2444. +softkeys.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2445. +sort.o:        $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2446. +string2.o:    $(INCLDIR)/headers.h
  2447. +strings.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2448. +syscall.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2449. +utils.o:    $(INCLDIR)/headers.h $(INCLDIR)/s_elm.h
  2450. +wildcards.o:    $(INCLDIR)/defs.h
  2451. +wordwrap.o:    $(INCLDIR)/headers.h
  2452. +
  2453. +#    Dependencies and rules for compiling C programs
  2454. +$(BIN)/elm:    $& $(ELM_OBJ) ../lib/libutil.a
  2455. +        $(CC) $(LFLAGS) -o $@ $(ELM_OBJ) ../lib/libutil.a $(LIBS) $(LIB2)
  2456. +
  2457. +#    Dependencies and rules for installing C programs
  2458. +$(DEST)/elm:    $(BIN)/elm
  2459. +        -$(MV) $@ $@.old
  2460. +        -$(RM) $@.old
  2461. +        $(CP) $(BIN)/elm $@
  2462. +        $(CHGRP) $(MAILGRP) $@
  2463. +        $(CHMOD) $(MAILERMODE) $@
  2464. +
  2465. diff -u --new-file --recursive elm2.4.orig/utils/Makefile elm2.4/utils/Makefile
  2466. --- elm2.4.orig/utils/Makefile    Wed Dec 31 19:00:00 1969
  2467. +++ elm2.4/utils/Makefile    Fri Jan 13 20:04:02 1995
  2468. @@ -0,0 +1,403 @@
  2469. +
  2470. +# @(#): Makefile.SH,v 5.6 1994/03/10 17:20:23 syd Exp $
  2471. +#
  2472. +#  Makefile for the Elm system utilities
  2473. +#
  2474. +#         (C) Copyright 1986,1987, by Dave Taylor
  2475. +#         (C) Copyright 1988-1992, USENET Community Trust
  2476. +#
  2477. +# Bug reports, patches, comments, suggestions should be sent to:
  2478. +#
  2479. +#    Syd Weinstein - elm@DSI.COM
  2480. +#            dsinc!elm
  2481. +#
  2482. +# $Log: Makefile.SH,v $
  2483. +# Revision 5.6  1994/03/10  17:20:23  syd
  2484. +# Remove autoreply
  2485. +# From: Syd
  2486. +#
  2487. +# Revision 5.5  1993/05/31  19:17:28  syd
  2488. +# In the Makefile listalias was given only a+x permission
  2489. +# though it should have been a+rx.
  2490. +# From: Jukka Ukkonen <ukkonen@csc.fi>
  2491. +#
  2492. +# Revision 5.4  1993/04/16  05:07:10  syd
  2493. +# add elmalias
  2494. +#
  2495. +# Revision 5.3  1993/04/12  02:14:15  syd
  2496. +# Fix comments
  2497. +#
  2498. +# Revision 5.2  1993/04/12  02:11:05  syd
  2499. +# Added new utilities "elmalias" and "prlong".  Modified "checkalias"
  2500. +# and "listalias" to use them.
  2501. +# From: chip@chinacat.unicom.com (Chip Rosenthal)
  2502. +#
  2503. +# Revision 5.1  1992/10/04  00:46:45  syd
  2504. +# Initial checkin as of 2.4 Release at PL0
  2505. +#
  2506. +# 
  2507. +#
  2508. +# Variables
  2509. +#    Variables established by Configure
  2510. +CC        =    gcc
  2511. +CCFLAGS        =    -fpcc-struct-return -traditional 
  2512. +CHMOD        =    /bin/chmod
  2513. +CP        =    /bin/cp
  2514. +DEST        =    /usr/bin
  2515. +ECHO        =    /bin/echo
  2516. +LFLAGS        =    -s 
  2517. +LIB        =    /var/lib/elm
  2518. +LIB2        =     
  2519. +LIBS        =    -ltermcap 
  2520. +LINT        =    lint
  2521. +LN        =    /bin/ln
  2522. +MAKE        =    /usr/bin/pmake
  2523. +MV        =    /bin/mv
  2524. +OPTIMIZE    =    -O2
  2525. +RM        =     /bin/rm -f
  2526. +TOUCH        =    /bin/touch
  2527. +#    Variables you may want to manually edit
  2528. +#        If you want debug logging then you'll
  2529. +#        want to uncomment the following.
  2530. +#DEBUG        =    -DDEBUG
  2531. +
  2532. +#    Other general variables
  2533. +BIN        =    ../bin
  2534. +CFLAGS        =    $(CCFLAGS) $(OPTIMIZE) -I$(INCLDIR) $(DEBUG) $(DACSNET) 
  2535. +INCLDIR        =    ../hdrs
  2536. +LINTFLAGS    =    -I$(INCLDIR)
  2537. +SHELL        =    /bin/sh
  2538. +
  2539. +#    Lists
  2540. +#        List of installed programs - excludes wnewmail and nfrm,
  2541. +#        which are handled separately
  2542. +INSTALL_LIST    =    $(DEST)/answer        \
  2543. +            $(DEST)/checkalias    \
  2544. +            $(DEST)/elmalias    \
  2545. +            $(DEST)/fastmail    \
  2546. +            $(DEST)/frm        \
  2547. +            $(DEST)/listalias    \
  2548. +            $(DEST)/messages    \
  2549. +            $(DEST)/newalias    \
  2550. +            $(DEST)/newmail        \
  2551. +            $(DEST)/printmail    \
  2552. +            $(DEST)/readmsg        \
  2553. +            $(LIB)/prlong
  2554. +
  2555. +#        List of remotely install programs
  2556. +REMOTE_LIST    =    $(REMOTE)$(DEST)/answer        \
  2557. +            $(REMOTE)$(DEST)/checkalias    \
  2558. +            $(REMOTE)$(DEST)/elmalias    \
  2559. +            $(REMOTE)$(DEST)/fastmail    \
  2560. +            $(REMOTE)$(DEST)/frm        \
  2561. +            $(REMOTE)$(DEST)/listalias    \
  2562. +            $(REMOTE)$(DEST)/messages    \
  2563. +            $(REMOTE)$(DEST)/newalias    \
  2564. +            $(REMOTE)$(DEST)/newmail    \
  2565. +            $(REMOTE)$(DEST)/printmail    \
  2566. +            $(REMOTE)$(DEST)/readmsg
  2567. +
  2568. +#        List of programs in bin directory
  2569. +BINARY_LIST    =    $(BIN)/answer        \
  2570. +            $(BIN)/checkalias    \
  2571. +            $(BIN)/elmalias        \
  2572. +            $(BIN)/fastmail        \
  2573. +            $(BIN)/frm        \
  2574. +            $(BIN)/listalias    \
  2575. +            $(BIN)/messages        \
  2576. +            $(BIN)/newalias        \
  2577. +            $(BIN)/newmail        \
  2578. +            $(BIN)/printmail    \
  2579. +            $(BIN)/readmsg        \
  2580. +            $(BIN)/prlong
  2581. +
  2582. +#        List of programs to $(LINT) - only C programs
  2583. +LINT_LIST    =    answer_lint    \
  2584. +            elmalias_lint    \
  2585. +            fastmail_lint    \
  2586. +            frm_lint    \
  2587. +            newalias_lint    \
  2588. +            newmail_lint    \
  2589. +            readmsg_lint    \
  2590. +            prlong_lint
  2591. +
  2592. +#    List of all object files in all util programs (used in parallel makes)
  2593. +UTIL_OBJ    =    answer.o        \
  2594. +            elmalias.o        \
  2595. +            fastmail.o        \
  2596. +            from.o            \
  2597. +            newalias.o        \
  2598. +            newmail.o        \
  2599. +            readmsg.o        \
  2600. +            prlong.o
  2601. +
  2602. +#    Lists of source and object files for each C program
  2603. +ANSWER_SRC    =    answer.c
  2604. +ANSWER_OBJ    =    answer.o
  2605. +ELMALIAS_SRC    =    elmalias.c
  2606. +ELMALIAS_OBJ    =    elmalias.o
  2607. +FASTMAIL_SRC    =    fastmail.c
  2608. +FASTMAIL_OBJ    =    fastmail.o
  2609. +FRM_SRC        =    from.c
  2610. +FRM_OBJ        =    from.o
  2611. +NEWALIAS_SRC    =    newalias.c
  2612. +NEWALIAS_OBJ    =    newalias.o
  2613. +NEWMAIL_SRC    =    newmail.c
  2614. +NEWMAIL_OBJ    =    newmail.o
  2615. +PRLONG_SRC    =    prlong.c
  2616. +PRLONG_OBJ    =    prlong.o
  2617. +READMSG_SRC    =    readmsg.c
  2618. +READMSG_OBJ    =    readmsg.o
  2619. +
  2620. +# Standard targets
  2621. +all:            objects $(BINARY_LIST)
  2622. +
  2623. +#    This unusual target enables highly efficial compilation of object files
  2624. +#    on systems that have the parallel make feature.
  2625. +objects:        $& $(UTIL_OBJ)
  2626. +
  2627. +install:        $(INSTALL_LIST) $(DEST)/wnewmail $(DEST)/nfrm
  2628. +
  2629. +uninstall:        
  2630. +            $(RM) $(INSTALL_LIST) $(DEST)/wnewmail $(DEST)/nfrm
  2631. +
  2632. +#    This is the only target that gets installed even if not out-of-date
  2633. +#    with respect the files from which it is installed.
  2634. +rmt-install:        rmt-defined
  2635. +            -$(MV) $(DEST)/answer $(DEST)/answer.old
  2636. +            -$(MV) $(DEST)/checkalias $(DEST)/checkalias.old
  2637. +            -$(MV) $(DEST)/elmalias $(DEST)/elmalias.old
  2638. +            -$(MV) $(DEST)/fastmail $(DEST)/fastmail.old
  2639. +            -$(MV) $(DEST)/frm $(DEST)/frm.old
  2640. +            -$(MV) $(DEST)/nfrm $(DEST)/nfrm.old
  2641. +            -$(MV) $(DEST)/listalias $(DEST)/listalias.old
  2642. +            -$(MV) $(DEST)/messages $(DEST)/messages.old
  2643. +            -$(MV) $(DEST)/newalias $(DEST)/newalias.old
  2644. +            -$(MV) $(DEST)/newmail $(DEST)/newmail.old
  2645. +            -$(MV) $(DEST)/printmail $(DEST)/printmail.old
  2646. +            -$(MV) $(DEST)/readmsg $(DEST)/readmsg.old
  2647. +            -$(MV) $(DEST)/wnewmail $(DEST)/wnewmail.old
  2648. +            -$(RM) $(DEST)/answer.old
  2649. +            -$(RM) $(DEST)/checkalias.old
  2650. +            -$(RM) $(DEST)/elmalias.old
  2651. +            -$(RM) $(DEST)/fastmail.old
  2652. +            -$(RM) $(DEST)/frm.old
  2653. +            -$(RM) $(DEST)/nfrm.old
  2654. +            -$(RM) $(DEST)/listalias.old
  2655. +            -$(RM) $(DEST)/messages.old
  2656. +            -$(RM) $(DEST)/newalias.old
  2657. +            -$(RM) $(DEST)/newmail.old
  2658. +            -$(RM) $(DEST)/printmail.old
  2659. +            -$(RM) $(DEST)/readmsg.old
  2660. +            -$(RM) $(DEST)/wnewmail.old
  2661. +            $(CP) $(REMOTE_LIST) $(DEST)
  2662. +            $(LN) $(DEST)/frm $(DEST)/nfrm
  2663. +            $(LN) $(DEST)/newmail $(DEST)/wnewmail
  2664. +            -$(MV) $(LIB)/prlong $(DEST)/prlong.old
  2665. +            -$(RM) $(LIB)/prlong.old
  2666. +            $(CP) prlong $(LIB)
  2667. +            $(CHMOD) a+rx $(INSTALL_LIST)
  2668. +
  2669. +rmt-defined:
  2670. +    @(if [ "$(REMOTE)" = "" ];\
  2671. +      then\
  2672. +        $(ECHO) "You need to define 'REMOTE' as the remote file system";\
  2673. +        $(ECHO) "for this particular command. The easiest way to do this";\
  2674. +        $(ECHO) "to type:";\
  2675. +        $(ECHO) "        make REMOTE=<remote file system> rmt-install";\
  2676. +        exit 1;\
  2677. +      fi);
  2678. +
  2679. +#    This rule allows us to put lint output for each program on the
  2680. +#    same file, but make sure we start off fresh each time.
  2681. +lint:            
  2682. +            $(RM) LINT.OUT; $(MAKE) -$(MAKEFLAGS) $(LINT_LIST)
  2683. +
  2684. +clean:            
  2685. +            $(RM) $(UTIL_OBJ) $(BINARY_LIST)
  2686. +
  2687. +# Dependencies and rules
  2688. +#    Dependencies and rules for compiling and linting C programs
  2689. +.PRECIOUS:        $(INCLDIR)/defs.h $(INCLDIR)/elm.h \
  2690. +            $(INCLDIR)/headers.h ../lib/libutil.a
  2691. +
  2692. +checkalias:        checkalias.SH    ; sh $?
  2693. +listalias:        listalias.SH    ; sh $?
  2694. +messages:        messages.SH    ; sh $?
  2695. +printmail:        printmail.SH    ; sh $?
  2696. +
  2697. +$(BIN)/answer:        $(ANSWER_OBJ) ../lib/libutil.a
  2698. +            $(CC) $(LFLAGS) -o $@ $(ANSWER_OBJ) ../lib/libutil.a $(LIB2)
  2699. +
  2700. +answer_lint:        $(ANSWER_SRC)
  2701. +            $(LINT) $(LINTFLAGS) $(ANSWER_SRC) >> LINT.OUT
  2702. +
  2703. +$(BIN)/elmalias:    $(ELMALIAS_OBJ) ../lib/libutil.a
  2704. +            $(CC) $(LFLAGS) -o $@ $(ELMALIAS_OBJ) ../lib/libutil.a $(LIB2)
  2705. +
  2706. +elmalias_lint:        $(ELMALIAS_SRC)
  2707. +            $(LINT) $(LINTFLAGS) $(ELMALIAS_SRC) >> LINT.OUT
  2708. +
  2709. +$(BIN)/fastmail:    $(FASTMAIL_OBJ) ../lib/libutil.a
  2710. +            $(CC) $(LFLAGS) -o $@ $(FASTMAIL_OBJ) ../lib/libutil.a $(LIB2)
  2711. +
  2712. +fastmail_lint:        $(FASTMAIL_SRC)
  2713. +            $(LINT) $(LINTFLAGS) $(FASTMAIL_SRC) >> LINT.OUT
  2714. +
  2715. +$(BIN)/frm:        $(FRM_OBJ) ../lib/libutil.a
  2716. +            $(CC) $(LFLAGS) -o $@ $(FRM_OBJ) ../lib/libutil.a $(LIB2)
  2717. +
  2718. +frm_lint:        $(FRM_SRC)
  2719. +            $(LINT) $(LINTFLAGS) $(FRM_SRC) >> LINT.OUT
  2720. +
  2721. +$(BIN)/newalias:    $(NEWALIAS_OBJ) ../lib/libutil.a
  2722. +            $(CC) $(LFLAGS) -o $@ $(NEWALIAS_OBJ) ../lib/libutil.a $(LIB2)
  2723. +
  2724. +newalias_lint:        $(NEWALIAS_SRC)
  2725. +            $(LINT) $(LINTFLAGS) $(NEWALIAS_SRC) >> LINT.OUT
  2726. +
  2727. +$(BIN)/newmail:        $(NEWMAIL_OBJ) ../lib/libutil.a
  2728. +            $(CC) $(LFLAGS) -o $@ $(NEWMAIL_OBJ) ../lib/libutil.a $(LIB2)
  2729. +
  2730. +newmail_lint:        $(NEWMAIL_SRC)
  2731. +            $(LINT) $(LINTFLAGS) $(NEWMAIL_SRC) >> LINT.OUT
  2732. +
  2733. +$(BIN)/readmsg:        $(READMSG_OBJ) ../lib/libutil.a
  2734. +            $(CC) $(LFLAGS) -o $@ $(READMSG_OBJ) ../lib/libutil.a $(LIB2)
  2735. +
  2736. +readmsg_lint:        $(READMSG_SRC)
  2737. +            $(LINT) $(LINTFLAGS) $(READMSG_SRC) >> LINT.OUT
  2738. +
  2739. +$(BIN)/prlong:        $(PRLONG_OBJ) ../lib/libutil.a
  2740. +            $(CC) $(LFLAGS) -o $@ $(PRLONG_OBJ) ../lib/libutil.a $(LIB2)
  2741. +
  2742. +prlong_lint:        $(PRLONG_SRC)
  2743. +            $(LINT) $(LINTFLAGS) $(PRLONG_SRC) >> LINT.OUT
  2744. +
  2745. +
  2746. +#    Rules to make shell scripts in bin directory
  2747. +$(BIN)/checkalias:    checkalias
  2748. +            $(CP) $? $@
  2749. +            $(CHMOD) u+w,a+rx $@
  2750. +
  2751. +$(BIN)/listalias:    listalias
  2752. +            $(CP) $? $@
  2753. +            $(CHMOD) u+w,a+rx $@
  2754. +
  2755. +$(BIN)/messages:    messages
  2756. +            $(CP) $? $@
  2757. +            $(CHMOD) u+w,a+rx $@
  2758. +
  2759. +$(BIN)/printmail:    printmail
  2760. +            $(CP) $? $@
  2761. +            $(CHMOD) u+w,a+rx $@
  2762. +
  2763. +#    Dependencies of header files upon other header files they include
  2764. +$(INCLDIR)/defs.h:    $(INCLDIR)/../config.h $(INCLDIR)/sysdefs.h
  2765. +            $(CHMOD) u+w $@
  2766. +            $(TOUCH) $@
  2767. +
  2768. +$(INCLDIR)/elmutil.h:    $(INCLDIR)/curses.h $(INCLDIR)/defs.h
  2769. +            $(CHMOD) u+w $@
  2770. +            $(TOUCH) $@
  2771. +
  2772. +$(INCLDIR)/headers.h:    $(INCLDIR)/curses.h $(INCLDIR)/defs.h
  2773. +            $(CHMOD) u+w $@
  2774. +            $(TOUCH) $@
  2775. +
  2776. +#    Dependencies of C object files
  2777. +answer.o:    $(INCLDIR)/ndbz.h $(INCLDIR)/elmutil.h $(INCLDIR)/s_answer.h
  2778. +elmalias.o:    $(INCLDIR)/elmutil.h $(INCLDIR)/s_elmalias.h
  2779. +fastmail.o:    $(INCLDIR)/patchlevel.h $(INCLDIR)/elmutil.h $(INCLDIR)/s_fastmail.h
  2780. +from.o:        $(INCLDIR)/elmutil.h $(INCLDIR)/s_from.h
  2781. +newalias.o:    $(INCLDIR)/elmutil.h $(INCLDIR)/sysdefs.h $(INCLDIR)/s_newalias.h
  2782. +newmail.o:    $(INCLDIR)/elmutil.h $(INCLDIR)/s_newmail.h
  2783. +readmsg.o:    $(INCLDIR)/elmutil.h $(INCLDIR)/s_readmsg.h
  2784. +prlong.o:    $(INCLDIR)/defs.h
  2785. +
  2786. +#    Dependencies and rules for installing programs from bin directory
  2787. +$(DEST)/answer:        $(BIN)/answer
  2788. +            -$(MV) $@ $@.old
  2789. +            -$(RM) $@.old
  2790. +            $(CP) $? $@
  2791. +            $(CHMOD) a+x $@
  2792. +
  2793. +$(DEST)/checkalias:    $(BIN)/checkalias
  2794. +            -$(MV) $@ $@.old
  2795. +            -$(RM) $@.old
  2796. +            $(CP) $? $@
  2797. +            $(CHMOD) a+rx $@
  2798. +
  2799. +$(DEST)/elmalias:    $(BIN)/elmalias
  2800. +            -$(MV) $@ $@.old
  2801. +            -$(RM) $@.old
  2802. +            $(CP) $? $@
  2803. +            $(CHMOD) a+x $@
  2804. +
  2805. +$(DEST)/fastmail:    $(BIN)/fastmail
  2806. +            -$(MV) $@ $@.old
  2807. +            -$(RM) $@.old
  2808. +            $(CP) $? $@
  2809. +            $(CHMOD) a+x $@
  2810. +
  2811. +$(DEST)/frm:        $(BIN)/frm
  2812. +            -$(MV) $@ $@.old
  2813. +            -$(RM) $@.old
  2814. +            $(CP) $? $@
  2815. +            $(CHMOD) a+x $@
  2816. +
  2817. +$(DEST)/nfrm:        $(DEST)/frm
  2818. +            -$(MV) $@ $@.old
  2819. +            -$(RM) $@.old
  2820. +            $(RM) $@
  2821. +            $(LN) $? $@
  2822. +
  2823. +$(DEST)/listalias:    $(BIN)/listalias
  2824. +            -$(MV) $@ $@.old
  2825. +            -$(RM) $@.old
  2826. +            $(CP) $? $@
  2827. +            $(CHMOD) a+rx $@
  2828. +
  2829. +$(DEST)/messages:    $(BIN)/messages
  2830. +            -$(MV) $@ $@.old
  2831. +            -$(RM) $@.old
  2832. +            $(CP) $? $@
  2833. +            $(CHMOD) a+rx $@
  2834. +
  2835. +$(DEST)/newalias:    $(BIN)/newalias
  2836. +            -$(MV) $@ $@.old
  2837. +            -$(RM) $@.old
  2838. +            $(CP) $? $@
  2839. +            $(CHMOD) a+x $@
  2840. +
  2841. +$(DEST)/newmail:    $(BIN)/newmail
  2842. +            -$(MV) $@ $@.old
  2843. +            -$(RM) $@.old
  2844. +            $(RM) $@
  2845. +            $(CP) $? $@
  2846. +            $(CHMOD) a+x $@
  2847. +
  2848. +$(DEST)/printmail:    $(BIN)/printmail
  2849. +            -$(MV) $@ $@.old
  2850. +            -$(RM) $@.old
  2851. +            $(CP) $? $@
  2852. +            $(CHMOD) a+rx $@
  2853. +
  2854. +$(DEST)/readmsg:    $(BIN)/readmsg
  2855. +            -$(MV) $@ $@.old
  2856. +            -$(RM) $@.old
  2857. +            $(CP) $? $@
  2858. +            $(CHMOD) a+x $@
  2859. +
  2860. +$(DEST)/wnewmail:    $(DEST)/newmail
  2861. +            -$(MV) $@ $@.old
  2862. +            -$(RM) $@.old
  2863. +            $(RM) $@
  2864. +            $(LN) $? $@
  2865. +
  2866. +$(LIB)/prlong:        $(BIN)/prlong
  2867. +            -$(MV) $@ $@.old
  2868. +            -$(RM) $@.old
  2869. +            $(CP) $? $@
  2870. +            $(CHMOD) a+x $@
  2871. +
  2872. diff -u --new-file --recursive elm2.4.orig/utils/checkalias elm2.4/utils/checkalias
  2873. --- elm2.4.orig/utils/checkalias    Wed Dec 31 19:00:00 1969
  2874. +++ elm2.4/utils/checkalias    Fri Jan 13 20:04:02 1995
  2875. @@ -0,0 +1,16 @@
  2876. +#!/bin/sh
  2877. +# checkalias: part of the Elm mail system
  2878. +# @(#): checkalias.SH,v 5.2 1993/04/12 02:11:05 syd Exp $
  2879. +#        Copyright (c) 1988-1992 USENET Community Trust
  2880. +#         Copyright (c) 1986,1987 Dave Taylor
  2881. +
  2882. +if [ $# -eq 0 ] ; then
  2883. +    echo "usage: $0 alias ..." 1>&2
  2884. +    exit 1
  2885. +fi
  2886. +
  2887. +elmalias -en $@ | \
  2888. +    /var/lib/elm/prlong -w 78 -1 "Expands to: " -l "    " -f ", "
  2889. +exit $?
  2890. +
  2891. diff -u --new-file --recursive elm2.4.orig/utils/listalias elm2.4/utils/listalias
  2892. --- elm2.4.orig/utils/listalias    Wed Dec 31 19:00:00 1969
  2893. +++ elm2.4/utils/listalias    Fri Jan 13 20:04:03 1995
  2894. @@ -0,0 +1,46 @@
  2895. +#!/bin/sh
  2896. +# listalias: part of the Elm mail system
  2897. +# @(#)$Id: listalias.SH,v 5.1 1993/04/12 02:10:26 syd Exp $
  2898. +#        Copyright (c) 1988-1992 USENET Community Trust
  2899. +#         Copyright (c) 1986,1987 Dave Taylor
  2900. +
  2901. +USAGE="usage: $0 [-u | -s] [optional-regular-expression]"
  2902. +
  2903. +opts=
  2904. +
  2905. +while : ; do
  2906. +    case "$1" in
  2907. +    -u|-s)    opts="$opts $1" ; shift ;;
  2908. +    --)    shift ; break ;;
  2909. +    -*)    echo "$USAGE" 1>&2 ; exit 1 ;;
  2910. +    *)    break ;;
  2911. +    esac
  2912. +done
  2913. +
  2914. +listit="elmalias -v $opts"
  2915. +grepit=
  2916. +sortit="| sort"
  2917. +
  2918. +case "$#" in
  2919. +
  2920. +0)    ;;
  2921. +
  2922. +1)    # BSD uses "-y" for case insensitive, SysV uses "-i".
  2923. +    grepit="| grep \"$1\""
  2924. +    for flag in -i -y ; do
  2925. +        x=`echo HELLO | grep $flag hello 2>/dev/null`
  2926. +        if test $? -eq 0 -a "X$x" = "XHELLO" ; then
  2927. +            grepit="| grep $flag \"$1\""
  2928. +            break
  2929. +        fi
  2930. +    done
  2931. +    ;;
  2932. +
  2933. +*)    echo "$USAGE" 1>&2
  2934. +    exit 1
  2935. +    ;;
  2936. +
  2937. +esac
  2938. +
  2939. +eval "$listit $grepit $sortit"
  2940. +exit $?
  2941. diff -u --new-file --recursive elm2.4.orig/utils/messages elm2.4/utils/messages
  2942. --- elm2.4.orig/utils/messages    Wed Dec 31 19:00:00 1969
  2943. +++ elm2.4/utils/messages    Fri Jan 13 20:04:03 1995
  2944. @@ -0,0 +1,41 @@
  2945. +#!/bin/sh
  2946. +# messages: part of the Elm mail system
  2947. +# @(#)$Id: messages.SH,v 5.2 1992/10/17 22:38:58 syd Exp $
  2948. +#        Copyright (c) 1988-1992 USENET Community Trust
  2949. +#         Copyright (c) 1986,1987 Dave Taylor
  2950. +if [ "$2" != "" ]; then
  2951. +  echo Usage: messages \{folder-name\} 1>&2
  2952. +  exit 1
  2953. +fi
  2954. +if [ "$1" = "" ]; then
  2955. +  fname=${MAIL-/var/spool/mail/$LOGNAME}
  2956. +  optional="in your incoming mailbox"
  2957. +else
  2958. +  optional="in folder $1"
  2959. +  first=`expr "$1" : "\(.\).*"`
  2960. +  if [ "$first" = "=" ]; then
  2961. +    last=`expr "$1" : ".\(.*\)"`
  2962. +    fname="`grep maildir $HOME/.elm/elmrc | awk -F= '{print $2}'| tr -d ' '`/$last"
  2963. +  else
  2964. +    fname=$1
  2965. +  fi
  2966. +fi
  2967. +
  2968. +if [ -f "$fname" ]; then
  2969. +  mcount=`egrep -c "^From " $fname`
  2970. +else
  2971. +  echo "Folder $1 does not exist."
  2972. +  exit 0
  2973. +fi
  2974. +if [ "$mcount" -eq 1 ]; then
  2975. +  echo There is 1 message $optional.
  2976. +elif [ "$mcount" -eq 0 ]; then
  2977. +  echo There are no messages $optional.
  2978. +else
  2979. +  echo There are $mcount messages $optional.
  2980. +fi
  2981. +exit $mcount
  2982. diff -u --new-file --recursive elm2.4.orig/utils/printmail elm2.4/utils/printmail
  2983. --- elm2.4.orig/utils/printmail    Wed Dec 31 19:00:00 1969
  2984. +++ elm2.4/utils/printmail    Fri Jan 13 20:04:03 1995
  2985. @@ -0,0 +1,21 @@
  2986. +#!/bin/sh
  2987. +# printmail: part of the Elm mail system
  2988. +# @(#)$Id: printmail.SH,v 5.1 1992/10/04 00:46:45 syd Exp $
  2989. +#        Copyright (c) 1988-1992 USENET Community Trust
  2990. +#         Copyright (c) 1986,1987 Dave Taylor
  2991. +if [ "$1" = "-p" ]; then
  2992. +  flags="-p";shift
  2993. +fi
  2994. +if [ "$1" != "" ]; then
  2995. +  if [ ! -r $1 ]; then
  2996. +    echo printmail: cannot open folder $1 1>&2
  2997. +    exit 1
  2998. +  else
  2999. +    flags="$flags -f $1"
  3000. +  fi
  3001. +fi
  3002. +# and now invoke readmsg
  3003. +exec readmsg $flags \*
  3004.