Ken Hornstein [Mon, 9 Jan 2012 19:07:37 +0000 (14:07 -0500)]
Garbage collect autoconf support for checking for the header file for initgroups
and snprintf() prototypes.
Ken Hornstein [Mon, 9 Jan 2012 18:56:30 +0000 (13:56 -0500)]
We are making POSIX signal support a requirement; remove all support for
other signal interfaces.
Ken Hornstein [Mon, 9 Jan 2012 18:38:02 +0000 (13:38 -0500)]
Finally able to get rid of acconfig.h! Since we're doing slightly better
in the autoconf universe, rename configure.in to configure.ac, the "more
correct" name for the configure script template.
Ken Hornstein [Mon, 9 Jan 2012 18:26:59 +0000 (13:26 -0500)]
Switch from using RETSIGTYPE via autoconf to void, since POSIX says that's
type to use for a signal handler.
David Levine [Sun, 8 Jan 2012 23:58:11 +0000 (17:58 -0600)]
Removed unused bcmp, bcopy, bcpy, and bzero #defines.
David Levine [Sun, 8 Jan 2012 19:46:47 +0000 (13:46 -0600)]
gcc -Wempty-body warned that the check of the result from the call to parse_mime() was ignored. It has been that way since the beginning of history and was probably of no consequence, but fixed anyway.
David Levine [Sun, 8 Jan 2012 16:51:05 +0000 (10:51 -0600)]
Removed traces of bboards and bbc from mh-profile and msh man pages. Added see also of msh to packf man page.
David Levine [Sun, 8 Jan 2012 16:34:31 +0000 (10:34 -0600)]
Wrapped #include of config.h with #ifdef HAVE_CONFIG_H, just in case someone ever wants to build without using configure.
David Levine [Sun, 8 Jan 2012 16:27:15 +0000 (10:27 -0600)]
Removed hard-coded -I.. and -I../.. from INCLUDES, it was redundant given -I$(top_srcdir).
David Levine [Sat, 7 Jan 2012 16:03:35 +0000 (10:03 -0600)]
Added Content-Description header with the filename of the attachment, with attachformats 1 and 2. This seems to be common practice now and gives mhlist something useful to display.
David Levine [Sat, 7 Jan 2012 15:53:36 +0000 (09:53 -0600)]
Added note about fileproc and mhlproc mh-profile entries.
David Levine [Sat, 7 Jan 2012 15:19:59 +0000 (09:19 -0600)]
Added removal of autom4te.cache directory to mostlyclean-local.
David Levine [Sat, 7 Jan 2012 15:17:34 +0000 (09:17 -0600)]
Quoted argument to AC_LINK_IFELSE to silence authoheader warnings.
David Levine [Sat, 7 Jan 2012 14:22:24 +0000 (08:22 -0600)]
Merge branch 'fileproc_mhlproc_to_post'
Ken Hornstein [Fri, 6 Jan 2012 19:40:31 +0000 (14:40 -0500)]
Move definition of LINK to mh header file, and garbage collect ATTVIBUG code.
Ken Hornstein [Fri, 6 Jan 2012 19:18:46 +0000 (14:18 -0500)]
Hardcode the defaults for Msg-Protect and Folder-Protect. Also fix the
documentation (had the wrong value for the default for Msg-Protect).
Ken Hornstein [Fri, 6 Jan 2012 19:12:13 +0000 (14:12 -0500)]
Huh, apparantly I got rid of any support for POPSERVICE over a year
ago! Good riddance, I say.
Ken Hornstein [Fri, 6 Jan 2012 15:48:03 +0000 (10:48 -0500)]
Garbage collect all of the builtin ftp client support.
Ken Hornstein [Fri, 6 Jan 2012 15:37:38 +0000 (10:37 -0500)]
Garbage-collect MHRC (and make it the default).
Ken Hornstein [Fri, 6 Jan 2012 15:36:21 +0000 (10:36 -0500)]
Garbage-collect SLOCAL_MBOX (and make it the default).
Ken Hornstein [Fri, 6 Jan 2012 15:35:16 +0000 (10:35 -0500)]
Garbage-collect RPATHS support.
Ken Hornstein [Fri, 6 Jan 2012 15:29:35 +0000 (10:29 -0500)]
Huh, turns out this define hasn't worked in forever ... the original
changes were made to the lexer output, and silently vanished a decade
ago when code was reorganized from zotnet to sbr!
Ken Hornstein [Fri, 6 Jan 2012 15:22:44 +0000 (10:22 -0500)]
Remove last vestiges of #ifdef BANG
Ken Hornstein [Fri, 6 Jan 2012 15:21:17 +0000 (10:21 -0500)]
Remove DBMPWD, make it the default.
David Levine [Fri, 6 Jan 2012 14:55:39 +0000 (08:55 -0600)]
Added datarootdir definitions to silence warnings from configure.
David Levine [Fri, 6 Jan 2012 03:36:51 +0000 (21:36 -0600)]
Fixed trivial compile warnings.
Ken Hornstein [Fri, 6 Jan 2012 03:13:08 +0000 (22:13 -0500)]
Not sure why we're checking for st_blksize; it's required by POSIX and
we're not even using the define!
Ken Hornstein [Fri, 6 Jan 2012 03:08:23 +0000 (22:08 -0500)]
Switch the use of LOCKDIR in acconfig.h to --enable-lockdir.
David Levine [Fri, 6 Jan 2012 03:00:58 +0000 (21:00 -0600)]
Merge branch 'master', remote-tracking branch 'origin'
Ken Hornstein [Thu, 5 Jan 2012 18:39:47 +0000 (13:39 -0500)]
Garbage collect all of the old UCI #ifdef'd code.
Ken Hornstein [Thu, 5 Jan 2012 17:26:48 +0000 (12:26 -0500)]
Update this with mh-e changes.
David Levine [Thu, 5 Jan 2012 17:14:56 +0000 (11:14 -0600)]
Feed fileproc and mhlproc from rcvdist, send, and whatnow to post.
David Levine [Thu, 5 Jan 2012 03:05:45 +0000 (21:05 -0600)]
Feed fileproc and mhlproc from rcvdist, send, and whatnow to post.
Ken Hornstein [Thu, 5 Jan 2012 17:05:43 +0000 (12:05 -0500)]
Bring in all of the mh-e support that is actually used to be compiled by
default, and garbage collect the stuff that is not used.
David Levine [Thu, 5 Jan 2012 03:05:45 +0000 (21:05 -0600)]
Feed fileproc and mhlproc from rcvdist, send, whatnow, and whom to post.
Ken Hornstein [Wed, 4 Jan 2012 03:28:44 +0000 (22:28 -0500)]
Whoops, for right now we do need those signal function checks.
Ken Hornstein [Wed, 4 Jan 2012 03:21:07 +0000 (22:21 -0500)]
Switch to standard autoconf macro for checking d_type field in struct dirent.
Lyndon Nerenberg [Mon, 26 Dec 2011 17:19:35 +0000 (09:19 -0800)]
Remove #ifdef around use of sigsetjmp().
Lyndon Nerenberg [Mon, 26 Dec 2011 03:17:58 +0000 (19:17 -0800)]
Remove overrides for 'broken' stat macros.
Remove redundant SEEK_* macro definitions.
Lyndon Nerenberg [Mon, 26 Dec 2011 01:20:26 +0000 (17:20 -0800)]
Include <stdio.h> for snprintf() prototype.
Lyndon Nerenberg [Sun, 25 Dec 2011 20:23:41 +0000 (12:23 -0800)]
Nuke directory processing conditionals; use dirent.h.
Lyndon Nerenberg [Sun, 25 Dec 2011 20:16:08 +0000 (12:16 -0800)]
Add back missing include of <sys/wait.h>
Lyndon Nerenberg [Sun, 25 Dec 2011 20:09:21 +0000 (12:09 -0800)]
Clean up process wait to use POSIX waitpid() interface.
Ken Hornstein [Wed, 4 Jan 2012 03:01:07 +0000 (22:01 -0500)]
No longer check for the mkstemp() function in the mkstemp library.
Lyndon Nerenberg [Sun, 25 Dec 2011 19:58:38 +0000 (11:58 -0800)]
Make use of mkstemp() unconditional (vs. mktemp().
This patch also removes the m_scratch() and m_tmpfil() functions.
They have been deprecated for a while, and are no longer used in any of
the code base.
Lyndon Nerenberg [Sun, 25 Dec 2011 19:28:07 +0000 (11:28 -0800)]
Remove compatibility functions that are always provided by the
POSIX host environment.
Ken Hornstein [Wed, 4 Jan 2012 02:54:07 +0000 (21:54 -0500)]
Get rid of checking for vfork(), since we no longer use.
Lyndon Nerenberg [Sun, 25 Dec 2011 02:18:22 +0000 (18:18 -0800)]
Replace <arpa/ftp.h> with "h/arpa_ftp.h".
Lyndon Nerenberg [Sun, 25 Dec 2011 02:17:10 +0000 (18:17 -0800)]
Import non-Posix <arpa/ftp.h> for uip/ftpsbr.c.
Lyndon Nerenberg [Sun, 25 Dec 2011 02:15:06 +0000 (18:15 -0800)]
Remove HAVE_ARPA_FTP_H and arpa/ftp.h references.
Ken Hornstein [Wed, 4 Jan 2012 02:38:07 +0000 (21:38 -0500)]
Remove autoconf ospeed checks
Lyndon Nerenberg [Sun, 25 Dec 2011 00:38:47 +0000 (16:38 -0800)]
Ignore OSPEED/ospeed in termcap. Nothing current should need this.
Ken Hornstein [Wed, 4 Jan 2012 02:12:11 +0000 (21:12 -0500)]
No longer check for termio.h or termios.h
Lyndon Nerenberg [Sun, 25 Dec 2011 00:15:22 +0000 (16:15 -0800)]
Collapse termio/termios/sgtty terminal interface code down to
the Posix termios interface.
Ken Hornstein [Wed, 4 Jan 2012 02:06:45 +0000 (21:06 -0500)]
Update configure file for removal of POSIX-mandated header files.
Lyndon Nerenberg [Sat, 24 Dec 2011 23:40:48 +0000 (15:40 -0800)]
Eliminate '#ifdef HAVE_FOO' for Posix-mandated FOOs.
Ken Hornstein [Wed, 4 Jan 2012 01:27:45 +0000 (20:27 -0500)]
No longer need to check for the existance of sys/utsname.h
Lyndon Nerenberg [Sat, 24 Dec 2011 23:30:53 +0000 (15:30 -0800)]
Deprecate uname() in favour of (Posix) gethostname().
Ken Hornstein [Wed, 4 Jan 2012 01:20:26 +0000 (20:20 -0500)]
Sigh. I put the documentation about the -tls switch in the long description,
but not in the command summary.
Ken Hornstein [Tue, 3 Jan 2012 21:30:50 +0000 (16:30 -0500)]
Updated pending-release-notes
David Levine [Tue, 3 Jan 2012 21:16:29 +0000 (15:16 -0600)]
Added note about cpio failing to unpack an nmh tarball.
Ken Hornstein [Tue, 3 Jan 2012 20:17:54 +0000 (15:17 -0500)]
Switch to using buffered I/O when doing TLS (but only for output).
Ken Hornstein [Tue, 3 Jan 2012 15:36:14 +0000 (10:36 -0500)]
Updated these files since we've finally got 1.4 out the door.
David Levine [Wed, 28 Dec 2011 04:41:24 +0000 (22:41 -0600)]
Moved #endif so that lockit () is only declared with DOT_LOCKING, to avoid compile warning without it.
David Levine [Wed, 28 Dec 2011 04:38:52 +0000 (22:38 -0600)]
Reworked nmh.spec to support rpmbuild from source RPM.
David Levine [Sun, 25 Dec 2011 21:00:49 +0000 (15:00 -0600)]
Removed unused vmh.c and wmh.c.
David Levine [Sun, 25 Dec 2011 02:28:50 +0000 (20:28 -0600)]
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--
David Levine [Sun, 25 Dec 2011 01:36:32 +0000 (19:36 -0600)]
Replaced cvs with git references. I'm not sure about the cgit
URL at the very end. Also removed mention of source directories
that were deprecated and removed long ago.
David Levine [Sat, 24 Dec 2011 15:59:45 +0000 (09:59 -0600)]
Added --with-rpmdir configure option so that user can set location of RPM build root.
David Levine [Wed, 14 Dec 2011 00:33:07 +0000 (18:33 -0600)]
Added comments about source of description, etc.
David Levine [Tue, 13 Dec 2011 04:50:06 +0000 (22:50 -0600)]
Replaced use of GNU make shell function with backticks. These were
for the rpm target, which would most likely only be build on Linux.
So they probably would have been OK, but just in case.
David Levine [Tue, 13 Dec 2011 04:25:52 +0000 (22:25 -0600)]
The docs/Makefile install target didn't do anything before. Added
the files that go into doc to it, and removed them from nmh.spec.
nmh.spec should now require zero maintenance.
David Levine [Tue, 13 Dec 2011 03:45:17 +0000 (21:45 -0600)]
Added RPM/ so that git status doesn't mention that it's an untracked file.
David Levine [Tue, 13 Dec 2011 03:37:47 +0000 (21:37 -0600)]
Merge branch 'master' of git.sv.nongnu.org:/srv/git/nmh
David Levine [Tue, 13 Dec 2011 03:35:52 +0000 (21:35 -0600)]
Moved version number from nmh.spec to Makefile.in, to minimize
maintenance for nmh.spec.
Ken Hornstein [Mon, 12 Dec 2011 17:59:42 +0000 (12:59 -0500)]
Make sure to not reset hghnum (in the Maildir code) if we are incorporating
mail from a POP mailbox.
David Levine [Sun, 11 Dec 2011 23:03:56 +0000 (17:03 -0600)]
Added first cut at nmh.spec, along with rpm: target in Makefile.in.
David Levine [Sun, 11 Dec 2011 19:44:50 +0000 (13:44 -0600)]
Removed netdb.h because we no longer distribute it.
David Levine [Sun, 11 Dec 2011 16:24:20 +0000 (10:24 -0600)]
Removed unused local variables to eliminate warnings from gcc 4.6.2.
Ken Hornstein [Wed, 7 Dec 2011 17:00:26 +0000 (12:00 -0500)]
Make sure to ignore the nmh dist file.
Ken Hornstein [Wed, 7 Dec 2011 16:36:53 +0000 (11:36 -0500)]
Since we're now moving past 1.4, bump this.
David Malone [Wed, 7 Dec 2011 15:19:40 +0000 (10:19 -0500)]
Add support to inc for incorporting email from Maildir dropboxes.
Add missing #include for <sys/socket.h> to bring in definitions of PF_UNSPEC.
Signed-off-by: Ken Hornstein <kenh@pobox.com>
Ken Hornstein [Wed, 13 Apr 2011 14:50:49 +0000 (10:50 -0400)]
Whoops, user & port were in the wrong order so msgchk didn't work for POP
connections.
Ken Hornstein [Tue, 22 Feb 2011 01:44:30 +0000 (20:44 -0500)]
Updated the developer README with a few notes about the git conversion.
Signed-off-by: Ken Hornstein <kenh@pobox.com>
Paul Vixie [Mon, 7 Feb 2011 19:13:54 +0000 (14:13 -0500)]
Signed-off-by: Ken Hornstein <kenh@pobox.com>
More documentation about the hooks support.
Peter Maydell [Tue, 21 Dec 2010 16:50:24 +0000 (16:50 +0000)]
Clean up code in inc.c
Clean up the confusing use of a variable 'i' in inc.c.
The case where it was being used as 'an error occurred
which means we should not truncate the mailspool' is now
called 'incerr' and merged with the equivalent 'p' variable
used in the POP-specific code. Cases where it was being
used as a random temporary are still called 'i' but now
declared with a much more restricted scope.
This fixes a compilation warning for some compilers.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Peter Maydell [Mon, 20 Dec 2010 21:13:32 +0000 (21:13 +0000)]
Suppress tsort diagnostic waffle
tsort produces waffle to standard error if it detects loops in its input.
For our purposes in ordering object files this is harmless, so just send
it all to /dev/null.
Signed-off-by: Peter Maydell <pmaydell@chiark.greenend.org.uk>
Peter Maydell [Mon, 20 Dec 2010 21:13:32 +0000 (21:13 +0000)]
Fix unused-function warnings in lex output
Fix the unused-function warnings in the output of lex. In particular, we
silence a warning about yyunput being static but unused by exposing it as
a global function. This costs us a few hundred bytes in the binary but
the other available solutions are flex-specific or more complicated.
YY_NO_UNPUT used to silence this but no longer works in recent flex.
On the other hand YY_NO_INPUT does work to silence warnings about input().
Signed-off-by: Peter Maydell <pmaydell@chiark.greenend.org.uk>
Peter Maydell [Mon, 20 Dec 2010 21:13:32 +0000 (21:13 +0000)]
Fix used-uninitialised warning in fmt_rfc2047.c
Fix a used-uninitialised warning in fmt_rfc2047.c.
I don't think it can actually be used uninitialised, but the
code is too complicated for the compiler to realise this.
Signed-off-by: Peter Maydell <pmaydell@chiark.greenend.org.uk>
Peter Maydell [Mon, 20 Dec 2010 21:13:32 +0000 (21:13 +0000)]
Fix used-uninitialised warning in new.c
Fix a used-uninitialised warning in new.c by having the check_folders()
routine return first=last=NULL for empty folder lists. This is a more
sensible API anyway. (It would not actually have been possible for
the code to try to use last while it was uninitialised, as it happens.)
Signed-off-by: Peter Maydell <pmaydell@chiark.greenend.org.uk>
Peter Maydell [Mon, 20 Dec 2010 21:13:32 +0000 (21:13 +0000)]
Fix crash if fnext/fprev are given an empty folder list
Add a check for a NULL pointer, which stops fnext/fprev
from segfaulting if given an empty folder list (for example
via 'fnext -folders emptyfile').
Signed-off-by: Peter Maydell <pmaydell@chiark.greenend.org.uk>
Peter Maydell [Mon, 20 Dec 2010 19:54:43 +0000 (19:54 +0000)]
Fix warning in sbr/folder_addmsg.c by code cleanup
Clean up some rather oddly written code in folder_addmsg()
so it is easier to understand for both humans and for the
compiler (and the compiler thus stops complaining about an
uninitialised variable).
Signed-off-by: Peter Maydell <pmaydell@chiark.greenend.org.uk>
Ken Hornstein [Thu, 16 Dec 2010 18:20:31 +0000 (13:20 -0500)]
Fix so this compiles without SASL support.
Damn you, Oliver Kiddle, for finding all of the bugs I add to nmh!
Ken Hornstein [Thu, 16 Dec 2010 18:11:17 +0000 (13:11 -0500)]
All of the arguments to AC_ARG_ENABLE need to be quoted, otherwise the
last action doesn't make it into the configure script.
Ken Hornstein [Thu, 16 Dec 2010 18:02:32 +0000 (13:02 -0500)]
Make sure we ignore config.h.in~
Markus Schnalke [Thu, 16 Dec 2010 00:36:43 +0000 (01:36 +0100)]
fix typo and clarify two sentences in mhpath man page
Markus Schnalke [Thu, 16 Dec 2010 00:25:11 +0000 (01:25 +0100)]
improve mhparam man page
Oliver Kiddle [Thu, 16 Dec 2010 00:23:16 +0000 (01:23 +0100)]
fix badly formatted code found by Markus Schnalke
Scott Snyder [Wed, 15 Dec 2010 21:17:52 +0000 (22:17 +0100)]
propagate and check return status of close() in slocal
Markus Schnalke [Wed, 15 Dec 2010 21:02:30 +0000 (22:02 +0100)]
document msg parameter to folder