7 This file is intended to provide a few tips for anyone doing development on nmh.
8 Developers who learn things "the hard way" about the nmh codebase (as opposed to
9 local info best encoded in a comment) are encouraged to share their wisdom here.
11 The topics are organized alphabetically.
18 If you wish to change the `configure' script or its related files, you'll need
19 to first install GNU m4, available from <ftp://ftp.gnu.org/pub/gnu/m4/> and then
20 GNU autoconf (<ftp://ftp.gnu.org/pub/gnu/autoconf/>).
22 Most of the configure-related files are automatically generated. The only files
23 you should need to manually edit are acconfig.h and configure.in. Don't, for
24 instance, edit config.h.in. Though it is an input file from the point of view
25 of the users (and the configure script) it is an output file from the point of
26 view of the developers (and the autoconf script).
28 If you do change acconfig.h or configure.in and want to `cvs commit' them, be
29 sure to regenerate the output files and commit them as well. The easiest way to
30 regenerate the files is to simply run `make' -- it'll do the necessary calls of
31 autoconf and autoheader and will do a `./config.status --recheck', which will
32 exercise your new configure script.
34 When you commit the configure-related files, it's very important to commit them
35 in the right order. The timestamps on the files in the CVS archive are based on
36 the current time at the moment they were committed -- the timestamps from the
37 local files you commit are not copied over. If you commit the files in the
38 wrong order, you'll cause unnecessary calls of `autoconf' to occur when people
39 try to `make' their copies of the latest CVS source. These people may be
40 end-users who don't have any interest in changing the configure-related files
41 and don't have autoconf installed. They'll be unable to make without playing
44 The correct order to commit the configure-related files is:
46 % cvs commit acconfig.h config.h.in configure.in configure stamp-h.in
48 If you haven't changed all of those files, just commit the rest in the stated
49 order (e.g. cvs commit acconfig.h config.h.in stamp-h.in).
56 Following is a list of nmh's directories along with a brief description of the
57 purpose of each one. Meanings are given for the abbreviations, but note that
58 these meanings are just informed guesses as to what the MH developers were
62 The top-level directory. Contains files like README and INSTALL.
65 Contains utility files for the `configure' process. Ordinarily nothing in
66 here needs to be messed with.
69 Contains files, file templates, and scripts to generate files that will be
70 installed in the ${prefix}/etc directory. Stuff like replcomps.
73 Most of nmh's header (.h) files are kept not in the individual source
74 directories, but in this central location.
77 Contains all the input files that are processed to generate nmh's manual
81 "mts" stands for "Message Transfer Service". Source files specific to the
82 different MTSs go in the subdirectories.
85 "mmdf" stands for "Multichannel Memorandum Distribution Facility". It is an
86 alternative to sendmail used primarily on SCO UNIX.
89 When nmh is configured --with-mts=sendmail, the files in this directory are
93 When nmh is configured to just talk to an SMTP server over TCP/IP, the
94 source in this directory is compiled.
97 "sbr" stands for "subroutine(s)". For the most part, each source file in
98 this directory contains a single function with the same name as the source
99 file. These functions are of general use and are called from throughout
103 "uip" stands for "User Interface Programs". Most nmh commands have a file
104 in this directory named <command>.c containing the code for that command
105 (e.g. repl.c). In some cases there is also an auxiliary file called
106 <command>sbr.c which contains additional subroutines called from <command>.c
107 (which would contain not much else besides main()).
110 Files in this hierarchy were either written by or moved here by UCI
111 (University of California, Irvine) after they took over MH from the Rand
112 Corporation. "Zot!" is the sound effect made by the anteater in the "B.C."
113 comic strip when its tongue lashes out at ants. The anteater is UCI's
114 official mascot. Not sure whether UCInet was once called ZotNet...
117 UCI added Bulletin Board functionality to MH with the `bbc' command. This
118 functionality has been removed from nmh but apparently files in this
119 directory are still needed for other purposes.
122 "mf" stands for "Mail Filter". The filtering in this case apparently refers
123 to translation between different address and mailbox formats.
126 MTS code not specific to any single MTS apparently goes here.
129 No idea what "tws" stands for, other than 't' almost certainly standing for
130 "time". Date and time manipulation routines go here.