mmh
12 years agoScanning an empty mbox file is no error.
markus schnalke [Tue, 10 Apr 2012 22:05:26 +0000 (00:05 +0200)]
Scanning an empty mbox file is no error.
Of course there won't be a delimiter, but mail drop files are frequently
empty, though existing.
This solution is more of a hack, but it works. Improvements welcome!

12 years agoDefault scan format: Added leading zeros, which I've forgotten.
markus schnalke [Tue, 10 Apr 2012 22:04:35 +0000 (00:04 +0200)]
Default scan format: Added leading zeros, which I've forgotten.

12 years agoAdded my own scan format: scan.meillo
markus schnalke [Tue, 10 Apr 2012 21:45:02 +0000 (23:45 +0200)]
Added my own scan format: scan.meillo

12 years agoAdded HH:MM to the default scan format.
markus schnalke [Tue, 10 Apr 2012 21:44:14 +0000 (23:44 +0200)]
Added HH:MM to the default scan format.

12 years agoMinor layout fix in man page mhparam(1).
markus schnalke [Tue, 10 Apr 2012 21:30:23 +0000 (23:30 +0200)]
Minor layout fix in man page mhparam(1).

12 years agoRemoved -(no)push and -(no)forward flags from send, spost and whatnow.
markus schnalke [Tue, 10 Apr 2012 21:24:07 +0000 (23:24 +0200)]
Removed -(no)push and -(no)forward flags from send, spost and whatnow.
We don't send directly (with SMTP) anymore. We only execute sendmail,
which, on modern systems, takes few time. Thus we do it directly
instead of having more complexity for the rare wish to run sendmail in
the background and also be unable to deal with possible errors directly.

12 years agoPut structure into anno(1) and its man page.
markus schnalke [Fri, 30 Mar 2012 16:07:52 +0000 (18:07 +0200)]
Put structure into anno(1) and its man page.
The ``newly'' added features (-list, -delete, ...) were simply added
on top, but without rethinking and adjusting anno(1)'s structure. (I
agree, however, that it was the right decision to add these features
to anno(1) instead of writing another tool.) I've reworked anno now to
give it a clear structure. And I've reworked its man page to propagate
this structure.

12 years agoUpdated man page mh-mail(5).
markus schnalke [Thu, 29 Mar 2012 21:17:59 +0000 (23:17 +0200)]
Updated man page mh-mail(5).

12 years agoAdded missing NULL sentinels in switches array.
markus schnalke [Thu, 29 Mar 2012 21:00:30 +0000 (23:00 +0200)]
Added missing NULL sentinels in switches array.

12 years agommh.sh: Minimal change.
markus schnalke [Thu, 29 Mar 2012 20:53:19 +0000 (22:53 +0200)]
mmh.sh: Minimal change.

12 years agoAdded wrapper mmhwrap for parallel installations with nmh or a small $PATH.
markus schnalke [Thu, 29 Mar 2012 20:51:59 +0000 (22:51 +0200)]
Added wrapper mmhwrap for parallel installations with nmh or a small $PATH.
It might be helpful.

12 years agoFolded fileproc to constant `refile'.
markus schnalke [Thu, 29 Mar 2012 16:18:21 +0000 (18:18 +0200)]
Folded fileproc to constant `refile'.
Also moved sbr/refile.c into uip/whatnow.c

12 years agoMigrated man page post(8) to spost(8).
markus schnalke [Thu, 29 Mar 2012 15:12:37 +0000 (17:12 +0200)]
Migrated man page post(8) to spost(8).
It would be nice to have it improved a bit more.
Spost is located in section 8 (maintenance commands) of the manual,
but it is located in the bindir, rather than the sbindir. This is
on purpose. The sections of the manual are mostly informational (today),
whereas directories are either in $PATH or not, and thus cause a
functional difference. Hence, I don't blindly link sbindir to section 8.

12 years agomhl: removed -folder switch and folder output for messagename pseudo component.
markus schnalke [Thu, 29 Mar 2012 14:13:21 +0000 (16:13 +0200)]
mhl: removed -folder switch and folder output for messagename pseudo component.

12 years agoRemoved dead code within never set define WHATNOW.
markus schnalke [Thu, 29 Mar 2012 13:17:06 +0000 (15:17 +0200)]
Removed dead code within never set define WHATNOW.

12 years agoTrash folder replaces rmmproc. Rework of rmm(1) and refile(1).
markus schnalke [Thu, 29 Mar 2012 13:08:49 +0000 (15:08 +0200)]
Trash folder replaces rmmproc. Rework of rmm(1) and refile(1).
Removed several switches from refile and changed its behavior.
(Although, rmm does not use backup prefixes anymore, other tools
still do.)

12 years agoFixed programming mistakes, detected by cppcheck.
markus schnalke [Wed, 28 Mar 2012 19:16:08 +0000 (21:16 +0200)]
Fixed programming mistakes, detected by cppcheck.
Two memory leaks and a possibly not terminated string.
(There also is a false positive in sbr/path.c.)
(sbr/dtimep.c has warnings, but I believe lex is correct. ;-) )

12 years agoRemoved -realsize from man page because mhshow doesn't support it.
markus schnalke [Tue, 27 Mar 2012 16:22:13 +0000 (18:22 +0200)]
Removed -realsize from man page because mhshow doesn't support it.

Pulled in from nmh. Thanks to David Levine.

12 years agoEnhance fix of 0b81a300d9e7cf78b6bc11d8c870f57fa81fcdc4.
markus schnalke [Tue, 27 Mar 2012 16:11:49 +0000 (18:11 +0200)]
Enhance fix of 0b81a300d9e7cf78b6bc11d8c870f57fa81fcdc4.
Ken Hornstein did the same fix for nmh. He showed me that I had missed
the second, similar, case. Thanks.

12 years agoAutomated generation of mh-chart.man7.
markus schnalke [Tue, 27 Mar 2012 15:39:32 +0000 (17:39 +0200)]
Automated generation of mh-chart.man7.
Moved mh-chart from section 1 to section 7, in the same go.

Based upon a pull-in from nmh. Thanks a lot to David Levine.
Autogenerating is the only sensible approach to mh-chart.

12 years agoTrivial change.
markus schnalke [Tue, 27 Mar 2012 13:40:17 +0000 (15:40 +0200)]
Trivial change.

12 years agoAdd some more default MIME content suffixes.
markus schnalke [Tue, 27 Mar 2012 13:31:14 +0000 (15:31 +0200)]
Add some more default MIME content suffixes.
Some of them originated from:
    cat /etc/mime.types |
    perl -ane 'if ($F[1] ne "") {print "mhshow-suffix-$F[0]:.$F[1]\n"}'

Pulled in from nmh. Thanks to Ken Hornstein, David Levine and Steve Rader.

12 years agoClean up prototypes.
markus schnalke [Tue, 27 Mar 2012 13:22:43 +0000 (15:22 +0200)]
Clean up prototypes.

Pulled in from nmh. Thanks to Ken Hornstein.

12 years agoMake sure we don't send Envelope-From if we're using spost.
markus schnalke [Tue, 27 Mar 2012 13:18:49 +0000 (15:18 +0200)]
Make sure we don't send Envelope-From if we're using spost.

Pulled in from nmh. Thanks to Ken Hornstein.

12 years agoCreate proper prototypes for formataddr().
markus schnalke [Tue, 27 Mar 2012 13:14:46 +0000 (15:14 +0200)]
Create proper prototypes for formataddr().

Pulled in from nmh. Thanks to Ken Hornstein.

12 years agoFixed mhstore to honor nmh-storage profile entry even with -auto [Bug #35303].
markus schnalke [Tue, 27 Mar 2012 13:11:24 +0000 (15:11 +0200)]
Fixed mhstore to honor nmh-storage profile entry even with -auto [Bug #35303].

Pulled in from nmh. Thanks to David Levine.

12 years agoFixed two fd leaks in mhparse.c.
markus schnalke [Tue, 27 Mar 2012 13:07:59 +0000 (15:07 +0200)]
Fixed two fd leaks in mhparse.c.
1) In openQuoted(), the decoded contents file was opened twice in
   succession. The second open was added by a patch in March 2000.
2) openBase64(), openQuoted(), and open7Bit() could open the contents
   file, but it never would be closed. Added code to each to close the
   file if the function opened it.
[Bug #24004: (debbug 344182)]

Pulled in from nmh. Thanks to David Levine.

12 years agoReplaced UTC-8 with UTF-8.
markus schnalke [Tue, 27 Mar 2012 12:57:18 +0000 (14:57 +0200)]
Replaced UTC-8 with UTF-8.

Pulled in from nmh. Thanks to David Levine.

12 years agoFixed a bunch of minor man page formating problems.
markus schnalke [Tue, 27 Mar 2012 12:55:17 +0000 (14:55 +0200)]
Fixed a bunch of minor man page formating problems.
(Revealed by `groff -ww'.)

Pulled in from nmh. Thanks to David Levine.

12 years agoFixed mhlist -verbose to work with all content types [Bug #35219].
markus schnalke [Tue, 27 Mar 2012 12:48:42 +0000 (14:48 +0200)]
Fixed mhlist -verbose to work with all content types [Bug #35219].

Pulled in from nmh. Thanks to David Levine.

12 years agoAdded -verbose/-noverbose to mhlist synopsis
markus schnalke [Tue, 27 Mar 2012 12:40:38 +0000 (14:40 +0200)]
Added -verbose/-noverbose to mhlist synopsis

Pulled in from nmh. Thanks to David Levine.

12 years agoEscape spaces in DEFAULTS sections of man pages so they no longer are lost.
markus schnalke [Tue, 27 Mar 2012 12:37:36 +0000 (14:37 +0200)]
Escape spaces in DEFAULTS sections of man pages so they no longer are lost.

Pulled in from nmh. Thanks to David Levine.

12 years agoRemoved ignored -verbose (and -noverbose) options to mhstore.
markus schnalke [Tue, 27 Mar 2012 12:32:20 +0000 (14:32 +0200)]
Removed ignored -verbose (and -noverbose) options to mhstore.
(In contrast to nmh, we also change the code.)

Pulled in from nmh. Thanks to David Levine.

12 years agoFixed example to show that mhparam preserves case of component name.
markus schnalke [Tue, 27 Mar 2012 12:25:10 +0000 (14:25 +0200)]
Fixed example to show that mhparam preserves case of component name.

Pulled in from nmh. Thanks to David Levine.

12 years agoFixed `mhbuild -check': use the correct file.
markus schnalke [Tue, 27 Mar 2012 12:20:24 +0000 (14:20 +0200)]
Fixed `mhbuild -check': use the correct file.
mhbuild -check would always fail because it tried to build the digest
for the decoded contents file (cefile), which can be null. If it is, use
the contents file itself.

Pulled in from nmh. Thanks to David Levine.

12 years agoMake -volume switch actually work (it always got overridden).
markus schnalke [Tue, 27 Mar 2012 11:58:45 +0000 (13:58 +0200)]
Make -volume switch actually work (it always got overridden).
As far as I can tell, this never worked. Found by the nmh test suite!

Pulled in from nmh. Thanks to Ken Hornstein.

12 years agoSuppress echoing of man page build lines.
markus schnalke [Tue, 27 Mar 2012 11:55:34 +0000 (13:55 +0200)]
Suppress echoing of man page build lines.
One of them says "warning", and it's handy to check that build output
doesn't say that.

Pulled in from nmh. Thanks to David Levine.

12 years agoUpdated docs to reflect that all of the lists are on nongnu.org.
markus schnalke [Tue, 27 Mar 2012 11:49:16 +0000 (13:49 +0200)]
Updated docs to reflect that all of the lists are on nongnu.org.

Pulled in from nmh. Thanks to David Levine.

12 years agoReport an error when the width used by putaddr is less than the label width.
markus schnalke [Tue, 27 Mar 2012 10:41:58 +0000 (12:41 +0200)]
Report an error when the width used by putaddr is less than the label width.

Pulled in from nmh. Thanks to Ken Hornstein.

12 years agonew: Improve the fix with the NULL-sentinel.
markus schnalke [Tue, 27 Mar 2012 10:33:35 +0000 (12:33 +0200)]
new: Improve the fix with the NULL-sentinel.
With multiple sequence arguments on the command line you might end up
with garbage in the sequence[] array (it needs the last argument to be
a NULL. So do two things: make the first two arguments NULL, and as we
add arguments to sequence[] make sure the list has a NULL on the end.
This is another problem discovered by the nmh test suite.

Pulled in from nmh. Thanks to Ken Hornstein.

12 years agoCorrect the maximum number of sequences in the mark(1) man page.
markus schnalke [Tue, 27 Mar 2012 10:30:34 +0000 (12:30 +0200)]
Correct the maximum number of sequences in the mark(1) man page.
Also add a note explaining the somewhat low limit.

(Note: mmh's value is different to nmh's.)

Pulled in from nmh. Thanks to Ken Hornstein.

12 years agoShow assignment of configure variables using VAR=VALUE instead of in the env.
markus schnalke [Tue, 27 Mar 2012 10:21:43 +0000 (12:21 +0200)]
Show assignment of configure variables using VAR=VALUE instead of in the env.

Pulled in from nmh. Thanks to David Levine.

12 years agoWe have only numeric timezone support (e.g. +0200) from now on.
markus schnalke [Tue, 27 Mar 2012 10:12:06 +0000 (12:12 +0200)]
We have only numeric timezone support (e.g. +0200) from now on.

That's an mmh decision. Pulled in from nmh is the following part:

Removed use of tzset()/tzname in dtimezone(). They caused the returned
timezone string to be for the user's current timezone, but the function
is supposed to return the string representation of the timezone of its
argument.

Thanks to David Levine.

12 years agonew: sequences[0] needs to be initialized to NULL.
markus schnalke [Tue, 27 Mar 2012 09:42:39 +0000 (11:42 +0200)]
new: sequences[0] needs to be initialized to NULL.
This was caught by the nmh test suite.

Pulled in from nmh. Thanks to David Levine.

12 years agoAdded error message if COMPLETION-BASH is source directly.
markus schnalke [Tue, 27 Mar 2012 09:35:56 +0000 (11:35 +0200)]
Added error message if COMPLETION-BASH is source directly.

Pulled in from nmh. Thanks to David Levine.

12 years agoExit with error message if no library could be found with tgetent().
markus schnalke [Tue, 27 Mar 2012 09:34:53 +0000 (11:34 +0200)]
Exit with error message if no library could be found with tgetent().

Pulled in from nmh. Thanks to David Levine.

12 years agoReplace www.ics.uci.edu/~mh/ links with corresponding rand-mh.sf.net links.
markus schnalke [Tue, 27 Mar 2012 09:20:22 +0000 (11:20 +0200)]
Replace ics.uci.edu/~mh/ links with corresponding rand-mh.sf.net links.
The former ones are dead.

Pulled in from nmh. Thanks to David Levine.

12 years agoabs() is part of C89.
markus schnalke [Tue, 27 Mar 2012 09:06:46 +0000 (11:06 +0200)]
abs() is part of C89.

12 years agoFreeBSD needs the HAVE_STRUCT_TM_TM_GMTOFF test.
markus schnalke [Tue, 27 Mar 2012 09:03:04 +0000 (11:03 +0200)]
FreeBSD needs the HAVE_STRUCT_TM_TM_GMTOFF test.
FreeBSD has a timezone() function, not a timezone global variable
(that's visible with our default configuration).
Undid most of 0e4bc6fa7fa8ad74a1c3e855411bdc0e63bc6a2e.

Pulled in from nmh. Thanks to David Levine.

12 years agouip/termsbr.c: remove references to PC.
markus schnalke [Tue, 27 Mar 2012 08:58:05 +0000 (10:58 +0200)]
uip/termsbr.c: remove references to PC.

Pulled in from nmh. Thanks to Lyndon Nerenberg.

12 years agos/AC_CHECK_NETLIBS/NMH_CHECK_NETLIBS/, since it's not part of autoconf.
markus schnalke [Tue, 27 Mar 2012 08:46:38 +0000 (10:46 +0200)]
s/AC_CHECK_NETLIBS/NMH_CHECK_NETLIBS/, since it's not part of autoconf.

Pulled in from nmh. Thanks to Ken Hornstein.

12 years agoRemoved the undocumented `select' option of slocal(1) and thus removed utmp.
markus schnalke [Tue, 27 Mar 2012 08:44:30 +0000 (10:44 +0200)]
Removed the undocumented `select' option of slocal(1) and thus removed utmp.

12 years agoRemoved HAVE_STRUCT_TM_TM_GMTOFF support.
markus schnalke [Tue, 27 Mar 2012 08:20:25 +0000 (10:20 +0200)]
Removed HAVE_STRUCT_TM_TM_GMTOFF support.
timezone, tzname, and tzset() are all POSIX.

Pulled in from nmh. Thanks to David Levine.

12 years agoRemoved unused parameter of replout().
markus schnalke [Tue, 27 Mar 2012 08:13:26 +0000 (10:13 +0200)]
Removed unused parameter of replout().

12 years agoChanged types and added casts so that build is clean with gcc -Wsign-compare.
markus schnalke [Tue, 27 Mar 2012 08:09:19 +0000 (10:09 +0200)]
Changed types and added casts so that build is clean with gcc -Wsign-compare.

Pulled in from nmh. Thanks to David Levine.

12 years agoProper field initialization.
markus schnalke [Tue, 27 Mar 2012 07:46:59 +0000 (09:46 +0200)]
Proper field initialization.
gcc -Wmissing-field-initializers noticed several struct initializations
that didn't explicitly list all fields. They were of no consequence because
they were for static data, so they were initialized properly.
Also, changed the initialization of global.c_ovtxt from "" to NULL because
free_queue () freed it if non-NULL, though I think the "" was always
overwritten.

Pulled in from nmh. Thanks to David Levine.

12 years agoDocumented support of OURDEFS to pass compile flags to configure.
markus schnalke [Tue, 27 Mar 2012 07:36:56 +0000 (09:36 +0200)]
Documented support of OURDEFS to pass compile flags to configure.

Pulled in from nmh. Thanks to David Levine.

12 years agoAdd some comments to the format compiler and engine.
markus schnalke [Tue, 27 Mar 2012 07:31:47 +0000 (09:31 +0200)]
Add some comments to the format compiler and engine.

Pulled in from nmh. Thanks to Ken Hornstein.

12 years agoUpdate README.developers with the correct version of autoconf we need.
markus schnalke [Tue, 27 Mar 2012 07:22:52 +0000 (09:22 +0200)]
Update README.developers with the correct version of autoconf we need.

Pulled in from nmh. Thanks to Ken Hornstein.

12 years agoRemove some unused macros.
markus schnalke [Tue, 27 Mar 2012 07:19:56 +0000 (09:19 +0200)]
Remove some unused macros.

Pulled in from nmh. Thanks to David Levine.

12 years agoCompletely remove the use of TIME_WITH_SYS_TIME.
markus schnalke [Tue, 27 Mar 2012 07:10:44 +0000 (09:10 +0200)]
Completely remove the use of TIME_WITH_SYS_TIME.
Removed the autoconf test but never removed the code, and this caused
some problems on systems that needed some prototypes in <time.h>.

Pulled in from nmh. Thanks to Ken Hornstein.

12 years agoRemove OS-specific defines. Remove GECOS ampersand-magic, along with it.
markus schnalke [Tue, 27 Mar 2012 06:58:17 +0000 (08:58 +0200)]
Remove OS-specific defines. Remove GECOS ampersand-magic, along with it.

Pulled in from nmh. Thanks to Ken Hornstein.

12 years agoClean up time handling; always assume we have tzset().
markus schnalke [Tue, 27 Mar 2012 06:48:32 +0000 (08:48 +0200)]
Clean up time handling; always assume we have tzset().
Also assume that the right prototype is in time.h (both are valid in POSIX).

Pulled in from nmh. Thanks to Ken Hornstein.

12 years agoWe are making POSIX signal support a requirement.
markus schnalke [Tue, 27 Mar 2012 06:23:52 +0000 (08:23 +0200)]
We are making POSIX signal support a requirement.
Remove all support for other signal interfaces.

Pulled in from nmh. Thanks to Ken Hornstein.

12 years agoSwitch from using RETSIGTYPE via autoconf to void.
markus schnalke [Tue, 27 Mar 2012 05:44:43 +0000 (07:44 +0200)]
Switch from using RETSIGTYPE via autoconf to void.
POSIX says that's the type to use for a signal handler.

Pulled in from nmh. Thanks to Ken Hornstein.
(btw: `to pull in' describes my action better than `to merge'.)

12 years agoThe result from the call to parse_mime() was ignored.
markus schnalke [Mon, 26 Mar 2012 22:22:33 +0000 (00:22 +0200)]
The result from the call to parse_mime() was ignored.
Detected by `gcc -Wempty-body'. It has been that way since the beginning
of history and was probably of no consequence, but fixed anyway.

Merged from nmh. Thanks to David Levine.

12 years agoRemoved hard-coded -I.. and -I../.. from INCLUDES.
markus schnalke [Mon, 26 Mar 2012 22:18:24 +0000 (00:18 +0200)]
Removed hard-coded -I.. and -I../.. from INCLUDES.
It was redundant given -I$(top_srcdir).

Merged from nmh. Thanks to David Levine.

12 years agoAdded Content-Description header with the filename of the attachment.
markus schnalke [Mon, 26 Mar 2012 22:13:25 +0000 (00:13 +0200)]
Added Content-Description header with the filename of the attachment.
This seems to be common practice now and gives mhlist something useful
to display.

Merged from nmh. Thanks to David Levine.

12 years agoAdded removal of autom4te.cache directory to mostlyclean-local.
markus schnalke [Mon, 26 Mar 2012 22:03:50 +0000 (00:03 +0200)]
Added removal of autom4te.cache directory to mostlyclean-local.

Merged from nmh. Thanks to David Levine.

12 years agoRemove RPATH code though. Discussions on nmh-workers have convinced me.
markus schnalke [Mon, 26 Mar 2012 21:53:15 +0000 (23:53 +0200)]
Remove RPATH code though. Discussions on nmh-workers have convinced me.

[2012-01-05] Lyndon Nerenberg:
> [2012-01-05] Ken Hornstein:
>> RPATHS    - Construct Return-Path headers from "From " lines.
>>             I say keep it, since it's been around forever (a fair
>>             amount of code, actually).
> I'm going to argue for the removal of this code, as well. The
> Return-Path header should be inserted by the delivering MTA, and I
> can't think of any modern MTA that doesn't.

12 years agoAdded datarootdir definitions to silence warnings from configure.
markus schnalke [Mon, 26 Mar 2012 21:29:53 +0000 (23:29 +0200)]
Added datarootdir definitions to silence warnings from configure.

Merged from nmh. Thanks to David Levine.

12 years agoRemoved check for st_blksize; it's required by POSIX.
markus schnalke [Mon, 26 Mar 2012 21:25:16 +0000 (23:25 +0200)]
Removed check for st_blksize; it's required by POSIX.
It's unclear why the it was there at all as the define wasn't even used!

Merged from nmh. Thanks to Ken Hornstein.

12 years agoSwitch to standard autoconf macro for checking d_type field in struct dirent.
markus schnalke [Mon, 26 Mar 2012 21:17:13 +0000 (23:17 +0200)]
Switch to standard autoconf macro for checking d_type field in struct dirent.

Merged from nmh. Thanks to Ken Hornstein.

12 years agoRemove #ifdef around use of sigsetjmp().
markus schnalke [Mon, 26 Mar 2012 21:07:24 +0000 (23:07 +0200)]
Remove #ifdef around use of sigsetjmp().

Merged from nmh. Thanks to Lyndon Nerenberg.

12 years agoRemove overrides for 'broken' stat macros. Remove redundant SEEK_* macro defs.
markus schnalke [Mon, 26 Mar 2012 21:03:39 +0000 (23:03 +0200)]
Remove overrides for 'broken' stat macros. Remove redundant SEEK_* macro defs.

Merged from nmh. Thanks to Lyndon Nerenberg.

12 years agoNuke directory processing conditionals; use dirent.h.
markus schnalke [Mon, 26 Mar 2012 20:59:03 +0000 (22:59 +0200)]
Nuke directory processing conditionals; use dirent.h.

Merged from nmh. Thanks to Lyndon Nerenberg.

12 years agoClean up process wait to use POSIX waitpid() interface.
markus schnalke [Mon, 26 Mar 2012 20:57:27 +0000 (22:57 +0200)]
Clean up process wait to use POSIX waitpid() interface.

Merged from nmh. Thanks to Lyndon Nerenberg.

12 years agoMake use of mkstemp() unconditional (vs. mktemp()).
markus schnalke [Mon, 26 Mar 2012 20:44:13 +0000 (22:44 +0200)]
Make use of mkstemp() unconditional (vs. mktemp()).

Merged from nmh. Thanks to Lyndon Nerenberg.

12 years agoNo longer check for the mkstemp() function in the mkstemp library.
markus schnalke [Mon, 26 Mar 2012 20:38:30 +0000 (22:38 +0200)]
No longer check for the mkstemp() function in the mkstemp library.

Merged from nmh. Thanks to Ken Hornstein.

12 years agoRemove compatibility functions that are always provided by the POSIX host env.
markus schnalke [Mon, 26 Mar 2012 20:34:56 +0000 (22:34 +0200)]
Remove compatibility functions that are always provided by the POSIX host env.

Merged from nmh. Thanks to Lyndon Nerenberg.

Well, if the nmh folks now believe that snprintf() can be expected to be
available on recent hosts, we remove it again. ;-)

12 years agoIgnore OSPEED/ospeed in termcap. Nothing current should need this.
markus schnalke [Mon, 26 Mar 2012 20:28:34 +0000 (22:28 +0200)]
Ignore OSPEED/ospeed in termcap. Nothing current should need this.
Remove autoconf ospeed checks.

Merged from nmh. Thanks to Lyndon Nerenberg and Ken Hornstein.

12 years agoCollapse termio/termios/sgtty terminal interface down to Posix termios.
markus schnalke [Mon, 26 Mar 2012 20:23:33 +0000 (22:23 +0200)]
Collapse termio/termios/sgtty terminal interface down to Posix termios.
No longer check for termio.h or termios.h

Merge from nmh. Thanks to Lyndon Nerenberg and Ken Hornstein.

12 years agoEliminate '#ifdef HAVE_FOO' for Posix-mandated FOOs.
markus schnalke [Mon, 26 Mar 2012 20:12:41 +0000 (22:12 +0200)]
Eliminate '#ifdef HAVE_FOO' for Posix-mandated FOOs.
Update configure file for removal of POSIX-mandated header files.

Merged from nmh. Thanks to Lyndon Nerenberg and Ken Hornstein.

12 years agoDeprecate uname() in favour of (Posix) gethostname().
markus schnalke [Mon, 26 Mar 2012 19:37:26 +0000 (21:37 +0200)]
Deprecate uname() in favour of (Posix) gethostname().
Merged from nmh. Thanks to Lyndon Nerenberg and Ken Hornstein.

12 years agoMoved #endif so that lockit () is only declared with DOT_LOCKING,
markus schnalke [Mon, 26 Mar 2012 19:32:32 +0000 (21:32 +0200)]
Moved #endif so that lockit () is only declared with DOT_LOCKING,
to avoid compile warning without it.

Merged from nmh. Thanks to David Levine.

12 years agoChanged second argument of calls to part_ok() and type_ok() from 0 to 1,
markus schnalke [Mon, 26 Mar 2012 19:29:45 +0000 (21:29 +0200)]
Changed second argument of calls to part_ok() and type_ok() from 0 to 1,
to match what store_multi() in mhstoresbr.c does.

A test case is below.  Without this fix, the following command:

  mhshow -part 1.1 -form mhl.null

produced no output.  mhlist showed a part 1.1:

 msg part  type/subtype              size description
1231       multipart/mixed            276
     1     multipart/related          107
     1.1   text/plain                  29

and "mhstore -part 1.1" properly stored it.  With this
fix, mhshow behaves properly and shows the part.

Analogous behavior happened with -type text/plain.

test case:

MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="NextPart_001"
Content-class: urn:content-classes:message
Date: Thu, 19 May 2011 00:00:00 -0000
From: sender@example.com
To: recipient@example.com

This is a multi-part message in MIME format.

--NextPart_001
Content-Type: multipart/related;
type="multipart/alternative";
boundary="NextPart_002"

--NextPart_002
Content-Type: text/plain;
charset="utf-8"

This is the text/plain part.

--NextPart_002--

--NextPart_001--

Merged from nmh. Thanks to David Levine.

12 years agoReplaced cvs with git references.
markus schnalke [Mon, 26 Mar 2012 19:27:37 +0000 (21:27 +0200)]
Replaced cvs with git references.
Merged from nmh. Thanks to David Levine.

12 years agoRemoved unused local variables to eliminate warnings from gcc 4.6.2.
markus schnalke [Mon, 26 Mar 2012 19:12:29 +0000 (21:12 +0200)]
Removed unused local variables to eliminate warnings from gcc 4.6.2.
Merged from nmh. Thanks to David Levine.

12 years agoThere's no need for killpg(). We can use kill() instead.
markus schnalke [Mon, 26 Mar 2012 12:17:06 +0000 (14:17 +0200)]
There's no need for killpg(). We can use kill() instead.
(Also removed a now unused define.)

12 years agoRemoved conflict(8), because checking passwd, /var/mail, etc. is not our job.
markus schnalke [Mon, 26 Mar 2012 12:00:09 +0000 (14:00 +0200)]
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.

12 years agoRemoved the now irrelevant parts of the ``history section'' in m_getfld.c.
markus schnalke [Sat, 24 Mar 2012 17:59:41 +0000 (18:59 +0100)]
Removed the now irrelevant parts of the ``history section'' in m_getfld.c.

12 years agoCHANGE OF THE DECADE: I finally gave m_unknown() a name: thisisanmbox().
markus schnalke [Sat, 24 Mar 2012 17:30:19 +0000 (18:30 +0100)]
CHANGE OF THE DECADE: I finally gave m_unknown() a name: thisisanmbox().
The ``magic invocation'' of this function informs m_getfld() that it is
reading a packed mbox file and not an MH-style (one-file-per-message) file.
m_getfld() needs to care for message delimiters then. The ``magic'' of
m_unknown() had vanished some time ago, already. Back then, it needed to
guess which kind of mailbox format the file is. With dropping the support
for MMDF (^A^A^A^A) maildrops, we converted m_unknown() into a plain dump
function ... and now, it also got a boring name. Well ...

12 years agos/unixbuf/fromline/ and minor refactoring.
markus schnalke [Sat, 24 Mar 2012 17:13:34 +0000 (18:13 +0100)]
s/unixbuf/fromline/ and minor refactoring.

12 years agoReplaced msg_style with the boolean ismbox.
markus schnalke [Sat, 24 Mar 2012 16:06:15 +0000 (17:06 +0100)]
Replaced msg_style with the boolean ismbox.
We only need to differ between mbox and MH-default (one msg per file).

12 years agoWe don't need m_msgdef.c separately and some minor rework in m_getfld.c.
markus schnalke [Sat, 24 Mar 2012 16:01:37 +0000 (17:01 +0100)]
We don't need m_msgdef.c separately and some minor rework in m_getfld.c.

12 years agoRemoved support to handle ARPAnet (RFC733) addresses containing ` at '.
markus schnalke [Sat, 24 Mar 2012 15:40:16 +0000 (16:40 +0100)]
Removed support to handle ARPAnet (RFC733) addresses containing ` at '.

12 years agoRemoved personal flavor for ISI.
markus schnalke [Sat, 24 Mar 2012 15:17:30 +0000 (16:17 +0100)]
Removed personal flavor for ISI.
Logically: Don't add myself more than once with `repl -cc me' and the like.

12 years agoMerged folder_pack.c into folder.c.
markus schnalke [Sat, 24 Mar 2012 14:58:50 +0000 (15:58 +0100)]
Merged folder_pack.c into folder.c.

12 years agoReplaced folder_exists() by a call to create_folder().
markus schnalke [Sat, 24 Mar 2012 14:47:11 +0000 (15:47 +0100)]
Replaced folder_exists() by a call to create_folder().
Changed inc(1) to create non-existing folders with -silent, instead of
silently failing in this case. I consider the new behavior to follow the POLS.

12 years agoFixed `inc -silent' by not building a scan line if we don't want to print it.
markus schnalke [Sat, 24 Mar 2012 14:41:46 +0000 (15:41 +0100)]
Fixed `inc -silent' by not building a scan line if we don't want to print it.
scan() is still ugly and I'm still not pleased with the scan/inc merge,
but I don't see a better solution yet.