Removed viamail. It is pretty much outdated. We can send files as MIME messages better with the new attachment system.
Activated Jon's attachment system by default and steamlined it. I had done similar work already some time ago. See: http://www.mail-archive.com/nmh-workers@nongnu.org/msg02112.html This time it's the second go. I changed Jon's attachment system to have a default attachment header field name, or get it from the profile. I removed the command line options. The new profile name is: `Attachment-Header'. Stored in attach_fmt. I removed the the choice between several attachment formats. A message gets mimeified if it has attachment headers or (and this is new) contains any non-ASCII character. The body won't be scanned for lines matching /^#/. The MIME structure is created automatically. The content-typing of unknown attachments is still poor and needs to be improved. You shouldn't use the `mime' command at the whatnow prompt anymore.
Relayouted all switch statements: case aligns with switch. Desired style is: switch (n) { case foo: ... }
We have `NULL' in order to not need to write `(char *)0' anymore.
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
Fixed broken swit numbering (there are more files to fix)
Removed the split feature of send. It would split large messages into several partial ones, using MIME. But if a message contains one large file attached, it won't solve the problem. We better go without this feature and leave it to the user.
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.
* 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.
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.
* h/mh.h, h/prototypes.h, uip/mhbuildsbr.c, uip/send.c, uip/sendsbr.c, uip/viamail.c, uip/whatnowsbr.c, man/send.man: added -attachformat switch to send, to support alternate MIME header contents when using -attach. See send man page for description.
[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
Added an improved user interface for sending messages with attachments.
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>