Removed conflict(8), because checking passwd, /var/mail, etc. is not our job. Conflict did check for: - duplicate users - duplicate groups - existence of group members - valid group ids - orphaned maildrops ... and by the way for valid format of alias files. The latter task can be covered by ali(1) without address arguments. All the other tasks have nothing to do with the MUA. Actually, most of them can be covered with shell one-liners.
Hardcoded mhmail instead of mailproc.
Merged h/mts.h into h/prototypes.h. Note: spost.c is not up to date.
Removed mts.conf; the maildelivery option went into slocal directly. The MTS is a non-MUA part of MH, which is/gets removed in MMH. Now, you cannot change the global maildelivery file without changing the code. You stil can specify -maildelivery to slocal. I've also remove support for the env vars MHMTSCONF and MHMTSUSERCONF, which were added by Earl Hood in 2010. We might want to add support for them again. I need to think about the future of slocal anyway.
Rest of the MMDF-style mail drop support removal. Only Unix-style (mbox) mail drops are supported now. Their location is in `mailspool', which is reported in the configure summary now. If users like to have different locations, they can use the environment variable MAILDROP or the profile entry MailDrop to overrule the default. From mts.conf, mmdfldir and mmdflfil were removed. msgchk(1) received several cleanups. I touched sbr/m_getfld.c ... Wooohh ...
Removed UCI-specific group leader code from conflict(8).
Explicit checks for return values of strcmp(). The return value of strcmp() is unintuitive for string equality tests. I prefer explicit comparisions against 0. I changed this everywhere.
Relayouted all switch statements: case aligns with switch. Desired style is: switch (n) { case foo: ... }
Removed the global alias file Either use personal alias files or the MTA alias file.
Renamed r1bindex() to mhbasename(), to make its function becomes clear. All calls to r1bindex() had '/' as second argument. For everything else one can use strrchr(3) instead of r1bindex().
Removed the space between function names and the opening parenthesis.
Reformated comments and long lines
Rearranged whitespace (and comments) in all the code! The primary goal was to only indent with tabs and not mix them with spaces. Also, no more tabs should appear past the first printable char on each line. Now editing the sources will be much easier, no matter which editor one uses, and rearranging won't break aligned code. (Beware, the changeset is huge, but the `diff -w' changes are moderate.)
Remove RCS keywords, since they no longer work after git migration.
Return type of (*done)() changed to void. default_done() replaced by exit(). All dead code "return 1" lines removed from *_done()s and replaced by explicit "return 1" following done() calls in main()s (they should never be reached). This should make cleaning up program termination structures easier.
* patch #3967: Create a mh_xrealloc function to prevent mistakes when calling realloc.
* patch #3966: Create a mh_xmalloc function to prevent mistakes when calling malloc.
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