redesign version string Now we have two version nummbers one for the tool and one for the lib. Also the version number is changed everytime the object is rebuild.
Merge branch 'm_getfld2-meillo' into master
Replace getcpy() and strdup() with mh_xstrdup() this harmonise the code. Also fix some bugs, if return value of strdup is not checked.
simple mbox support for rcvstore Some MTA(opensmtpd) add a ``From '' line ad the head of mails befor handling the mail to a .forwoad MDA. m_getfld2 don't support such mails, so rcvstore should handle this mbox-like mails.
Use sysexits.h for better exit-codes The sysexits header describe some standard exit-codes, which should be used. adios has now a status argument so sysexits.h can be used.
Move #include from h/mh.h to source files Included files should not include further files. Now, only the necessary files are included and not all of them in every file. A large bunch of this work is done, but there are some more nested include files.
nonstatic function for atexit, check if atexit fails atexit needs nonstatic functions to work correct. The error check is importent, because atexit can fail for some reasons and the cleanup woulden't work.
Replace done with exit at uip Replace done with exit in most sourcefiles of uip. This makes the code better to read. If the done was overwritten by an externel function atexit() is used instand. send.c and mhl.c are excluded, because need a bit rewrite first.
Removed configure flag --disable-locale and have it always enabled. Todays system are assumed to have locale support.
Require at least 2 chars for `no' variants of switches. This results in: ali -n --> -normalize ali -no --> ambiguous folder -n --> unknown (don't know if this case is good) folder -no --> ambiguous
Renamed -version switch to -Version to remove the conflict with -verbose. Now, `mhlist -V' prints the version and `mhlist -v' lists verbosely. There are only a few switches left that conflict on the first character, apart from the inverted (no*) variants.
Changed types and added casts so that build is clean with gcc -Wsign-compare. Pulled in from nmh. Thanks to David Levine.
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.
Inverted the second arg of seq_setunseen(), to be more natural.
We have `NULL' in order to not need to write `(char *)0' anymore.
Completely reworked the path convertion functions Moved everything (from sbr/getfolder.c and sbr/m_maildir.c) into sbr/path.c, but actually replaced the code almost completely. See h/prototypes.h for the function changes. sbr/path.c provides explaining comments on the functions. None of them allocates memory automatically. Additionally: - Like for other ``files'', `inc -audit file' places file relative to the cwd, not relative to the mh-dir. This is for consistency. - Replaced add(foo, NULL) with getcpy(foo), which ist clearer.
The existence of the profile entry Path is already enforced by context_read(). Hence, removed the obscure ``free(path("./", TFOLDER));'' calls. Still I don't see the sense in these lines, but they won't get executed, as the condition is checked before (and the program aborts then). Probably that's obsolete stuff that remained through several reworks.
Introduced FDEF and FCUR for speaking arguments to getfolder(). Maybe it would be better to two separate functions, but I cannot imagine good names for them ... :-(
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().