Removed msh, vmh and wmh. The latter ones were long time obsolete; now they went away. Msh has hardly to do with everyday mmh usage, and we don't support bboards anymore. This one changeset saves us about 7,000 lines of code. *yay*
Massive garbage collection. Remove functionality for APOP, RPOP, all NNTP support (including bboards) and MPOP.
Remove RCS keywords, since they no longer work after git migration.
* Bug #15213, #18635: The use of the insecure m_scratch() and m_tmpfil() functions have been replaced by m_mktemp() or m_mktemp2() functions (defined in sbr/m_mktemp.c). The new functions use mkstemp() to securely create temporary files to avoid the numerous race conditions that exist with the old functions. This does assume that mkstemp() is available. Unsure if we need to create an alternative implementation if mkstemp() is not available. More information about new temp file functions in m_mktemp.c, including the support for MHTMPDIR, TMPDIR, and TMP envvars. NOTE: The files sbr/m_scratch.c and sbr/m_tmpfil.c should be removed. Until more testing verifies changes to support new functions have not broken functionality, the files are be left in the tree, but comments have been added stating the functions in them should not be called.
Change all chars being passed to the ctype macros (isalph(), etc.) to be unsigned chars, following through to change any other types as necessary (e.g. comparison between two pointers). Not all chars have been changed to unsigned chars; just those that were in danger of being sign extended when passed to the int-taking ctype macros.
Created pluspath function to check for '+' prefix and change flag for path() appropriately. This eliminates some duplicate prefix processing, but not all. The path functions need to be restructed; this is the first step.
* (mh_strcasecmp): Rename the private strcasecmp function to mh_strcasecmp.
* patch #3966: Create a mh_xmalloc function to prevent mistakes when calling malloc.
[bug #4302] errno is not always an extern int The errno declaration is best left to errno.h; several systems use #define errno (*(___errno())) or similar
Add/update copyright notice in all source code files.
Resolve the circular dependency of libmh on libmts on libmh. The files mts/generic/client.c and mts.c are moved to sbr/, and mts/generic/mts.h is moved to h/mts.h. Thus, libmh is self-contained. All header includes have been appropriately updated, and the Makefiles and configure script no longer build mts/generic.
Updated #include's to point to new location of mts.h on mts/generic
Updating user programs to use <h/tws> instead of <zotnet/tws/tws.h>
msh has been unable to show MIME messages ever since 1.0. Alec Wolman <wolman@cs.washington.edu> tracked down the problem to the -show flag being passed to mhshow. mhshow is equivalent to the old mhn -show, so we don't need the -show anymore. Removed it.
Whoever originally added the -help switch to all the commands got too cute and had the option itself print out as "-(help)" in the -help output. I guess the idea was to make reference to the fact that clearly you know about the -help option since you're currently looking at its output. I think it's a bad idea to overload the meaning of the parentheses, however -- they're supposed to indicate what abbreviated prefix of the switch you're allowed to specify. It doesn't make sense to show that you're allowed to "abbreviate" the switch to its entire length.
Lots of little code cleanups to prevent warnings - mostly making sure some function prototypes are available at compile time. Also fixed Makefile.in so that make nmhdist will work -- it just blew up after COMPLETION-TCSH was added and ZSH-COMPLETION was changed to COMPLETION-ZSH.
configure, configure.in stamp-h.in, and uip/Makefile.in modified to fix MAILGROUP test. m_getfld.c - added the patch submitted by Richard Cohen to fix crashing when mh_profile has no trailing newline. smtp.c, lock_file.c, m_scratch.c, m_tmpfil.c, mhscmds.c, rcvtty.c, and spost.c modified to fix mkstemp bugs. Some I've simply commented out because the repair requries either creating another new tempfile function (there are 3 already) or cleaning up the existing tmpfile functions and all the calls to them. I'm opting for the latter but it will take a while.
Eliminated compilation warnings.
use mkstemp on systems that have it
Initial revision