]> diplodocus.org Git - nmh/log
nmh
12 years agoMove uip/attach.c to sbr/mime_type.c; it was used by enough programs
Ken Hornstein [Fri, 24 Jan 2014 18:17:56 +0000 (13:17 -0500)]
Move uip/attach.c to sbr/mime_type.c; it was used by enough programs
that it deserved to be in libmh.

12 years agoIn my over-eager trimming I didn't realize the fallback code that
Ken Hornstein [Fri, 24 Jan 2014 17:38:03 +0000 (12:38 -0500)]
In my over-eager trimming I didn't realize the fallback code that
used the mhshow-suffix configuration information to determine the
MIME type was removed; put that back into mime_type().

12 years agoSwitch from volatile char * to the more correct char *volatile.
Ken Hornstein [Fri, 24 Jan 2014 02:48:24 +0000 (21:48 -0500)]
Switch from volatile char * to the more correct char *volatile.

12 years agoSeparate export from assignment in test-dist and test-attach.
David Levine [Fri, 24 Jan 2014 01:58:41 +0000 (19:58 -0600)]
Separate export from assignment in test-dist and test-attach.

12 years agoWhoops, forgot to initialize the linked list next pointer to NULL.
Ken Hornstein [Thu, 23 Jan 2014 19:55:21 +0000 (14:55 -0500)]
Whoops, forgot to initialize the linked list next pointer to NULL.

12 years agoMake sure we include tiny.jpg we need for the test suite.
Ken Hornstein [Thu, 23 Jan 2014 19:55:06 +0000 (14:55 -0500)]
Make sure we include tiny.jpg we need for the test suite.

12 years agoTry to suppress warnings from changes (but why is this thing complaining
Ken Hornstein [Thu, 23 Jan 2014 19:40:44 +0000 (14:40 -0500)]
Try to suppress warnings from changes (but why is this thing complaining
about drft being clobbered now??)

12 years agoHm, maybe I can't put environment variable assignments in front of
Ken Hornstein [Thu, 23 Jan 2014 19:24:35 +0000 (14:24 -0500)]
Hm, maybe I can't put environment variable assignments in front of
functions?

12 years agoWhoops, forgot a newline.
Ken Hornstein [Thu, 23 Jan 2014 19:01:53 +0000 (14:01 -0500)]
Whoops, forgot a newline.

12 years agoMerge branch 'mhbuild-always'
Ken Hornstein [Thu, 23 Jan 2014 18:35:31 +0000 (13:35 -0500)]
Merge branch 'mhbuild-always'

12 years agoDocument changes to mhbuild and send.
Ken Hornstein [Thu, 23 Jan 2014 18:35:03 +0000 (13:35 -0500)]
Document changes to mhbuild and send.

12 years agoGarbage collect unused code.
Ken Hornstein [Thu, 23 Jan 2014 05:34:18 +0000 (00:34 -0500)]
Garbage collect unused code.

12 years agoRemove automimeproc functionality; it's redundant now.
Ken Hornstein [Thu, 23 Jan 2014 05:32:18 +0000 (00:32 -0500)]
Remove automimeproc functionality; it's redundant now.

12 years agoUpdate the pending-release-notes for changes.
Ken Hornstein [Thu, 23 Jan 2014 05:31:55 +0000 (00:31 -0500)]
Update the pending-release-notes for changes.

12 years agoFlesh out test-attach, and set it to run as part of the test suite.
Ken Hornstein [Thu, 23 Jan 2014 05:07:54 +0000 (00:07 -0500)]
Flesh out test-attach, and set it to run as part of the test suite.

12 years agoFix mhmail so it works with the new world order.
Ken Hornstein [Wed, 22 Jan 2014 23:59:07 +0000 (18:59 -0500)]
Fix mhmail so it works with the new world order.

12 years agoConvert whatnow over to using the new Attach header.
Ken Hornstein [Wed, 22 Jan 2014 20:22:07 +0000 (15:22 -0500)]
Convert whatnow over to using the new Attach header.
Mark the old -attach switches as deprecated (and make them not show
up in help).  Still more documentation cleanup to do.

12 years agoFixed this to use Attach instead of Nmh-Attachment.
Ken Hornstein [Wed, 22 Jan 2014 17:06:49 +0000 (12:06 -0500)]
Fixed this to use Attach instead of Nmh-Attachment.

12 years agoMake viamail read the user's profile; this is required because sendsbr()
Ken Hornstein [Wed, 22 Jan 2014 03:35:35 +0000 (22:35 -0500)]
Make viamail read the user's profile; this is required because sendsbr()
wants to call mhbuild, which can be overridden via the user's profile
(which is required for the test suite to work).

12 years agoEnable asserts when debug is enabled, in build_nmh.
David Levine [Wed, 22 Jan 2014 02:50:11 +0000 (20:50 -0600)]
Enable asserts when debug is enabled, in build_nmh.

12 years agoFix a bunch of tests for the mhbuild changes; still more to do.
Ken Hornstein [Wed, 22 Jan 2014 01:12:29 +0000 (20:12 -0500)]
Fix a bunch of tests for the mhbuild changes; still more to do.

12 years agoExpanded mhpath(1) man page discussion of its handling of out-of-range
David Levine [Tue, 21 Jan 2014 02:53:10 +0000 (20:53 -0600)]
Expanded mhpath(1) man page discussion of its handling of out-of-range
message numbers, and fixed a couple of formatting glitches.

12 years agoUse LC_ALL instead of LC_CTYPE in test-pick because LC_ALL has
David Levine [Mon, 20 Jan 2014 16:52:07 +0000 (10:52 -0600)]
Use LC_ALL instead of LC_CTYPE in test-pick because LC_ALL has
precendence.

12 years agoFixed three LC_ALL settings:
David Levine [Mon, 20 Jan 2014 16:31:16 +0000 (10:31 -0600)]
Fixed three LC_ALL settings:
1) Replaced en_US.ISO8859-1 with C because that's sufficient to show
   decoding with an invalid multibyte sequence.
2) Removed redundant LC_ALL=en_US.UTF-8; that is set for the entire test.
3) Removed the last en_US.ISO8859-1 because it hid what the test was
   trying to show.

12 years agoRemove autoconf checks for nl_langinfo() and langinfo.h
Ken Hornstein [Mon, 20 Jan 2014 06:27:15 +0000 (01:27 -0500)]
Remove autoconf checks for nl_langinfo() and langinfo.h

12 years agoCompletely deprecate support for MM_CHARSET.
Ken Hornstein [Mon, 20 Jan 2014 06:15:55 +0000 (01:15 -0500)]
Completely deprecate support for MM_CHARSET.

12 years agoRemove the --disable-locale configure option and make locale support
Ken Hornstein [Mon, 20 Jan 2014 04:21:32 +0000 (23:21 -0500)]
Remove the --disable-locale configure option and make locale support
unconditional.

12 years agoDocument the -dist flag.
Ken Hornstein [Sun, 19 Jan 2014 18:47:07 +0000 (13:47 -0500)]
Document the -dist flag.

12 years agoChange error message so "Unknown error 0" doesn't get printed if there
Ken Hornstein [Sun, 19 Jan 2014 16:59:25 +0000 (11:59 -0500)]
Change error message so "Unknown error 0" doesn't get printed if there
is an error parsing an address.

12 years agoAdd a test for dist to make sure it works with headers that need RFC-2047
Ken Hornstein [Sun, 19 Jan 2014 16:52:47 +0000 (11:52 -0500)]
Add a test for dist to make sure it works with headers that need RFC-2047
encoding.

12 years agoUpdated MACHINES to show package requirements on Linux and Cygwin.
David Levine [Sun, 19 Jan 2014 16:48:14 +0000 (10:48 -0600)]
Updated MACHINES to show package requirements on Linux and Cygwin.

12 years agoAdd support for not outputting any MIME headers when using dist.
Ken Hornstein [Sun, 19 Jan 2014 06:11:59 +0000 (01:11 -0500)]
Add support for not outputting any MIME headers when using dist.

12 years agoAllow mhbuild to work when the message body is empty. You know, that
Ken Hornstein [Sun, 19 Jan 2014 05:50:49 +0000 (00:50 -0500)]
Allow mhbuild to work when the message body is empty.  You know, that
was actually a giant pain!

12 years agoRemoved unused argument "file" to user_content().
Ken Hornstein [Sun, 19 Jan 2014 04:34:41 +0000 (23:34 -0500)]
Removed unused argument "file" to user_content().

12 years agoBeginning of work to run mhbuild always. A bit more complicated than I
Ken Hornstein [Sat, 18 Jan 2014 06:17:12 +0000 (01:17 -0500)]
Beginning of work to run mhbuild always.  A bit more complicated than I
originally expected.

12 years agoExplictly return the exit code, so we can portably guarantee that
Ken Hornstein [Sat, 18 Jan 2014 05:38:39 +0000 (00:38 -0500)]
Explictly return the exit code, so we can portably guarantee that
pidstatus() will return 0 on a successful command execution.

12 years agoRemoved -a option from whatnow attach, in anticipation of
David Levine [Sat, 18 Jan 2014 00:42:52 +0000 (18:42 -0600)]
Removed -a option from whatnow attach, in anticipation of
removal of send -attachformat.

12 years agoAdd support for -auto flag to mhbuild.
Ken Hornstein [Fri, 17 Jan 2014 20:45:31 +0000 (15:45 -0500)]
Add support for -auto flag to mhbuild.

12 years agoRemove WHATNOW #ifdefs; that code was obsolete a long time ago.
Ken Hornstein [Fri, 17 Jan 2014 19:20:12 +0000 (14:20 -0500)]
Remove WHATNOW #ifdefs; that code was obsolete a long time ago.

12 years agoMoved readline check to after termcap/curses check in configure.ac.
David Levine [Fri, 17 Jan 2014 03:48:01 +0000 (21:48 -0600)]
Moved readline check to after termcap/curses check in configure.ac.
This way, $TERMLIB can be included in the readline check.  That's
neeed on CentOS 5.9.

12 years agoMoved readconfig() of mhn.defaults into construct_build_directive().
David Levine [Fri, 17 Jan 2014 01:55:58 +0000 (19:55 -0600)]
Moved readconfig() of mhn.defaults into construct_build_directive().
This way, platforms that don't define MIMETYPEPROC will display
the proper directive with attach -v.

12 years agoAdded check to get_file_info() in attach.c for failed fgets() call.
David Levine [Wed, 15 Jan 2014 02:09:40 +0000 (20:09 -0600)]
Added check to get_file_info() in attach.c for failed fgets() call.
It can happen on Cygwin for mysterious reasons,
http://cygwin.com/faq/faq.html#faq.using.bloda.

12 years agoRemoved the tests of attach -v -a from test-attach-detach, and
David Levine [Wed, 15 Jan 2014 01:39:42 +0000 (19:39 -0600)]
Removed the tests of attach -v -a from test-attach-detach, and
added -prompt '' to try to get the test to pass on Mac OS X.

12 years agoModified last check added to test-scan-multibyte so that it
David Levine [Tue, 14 Jan 2014 13:41:28 +0000 (07:41 -0600)]
Modified last check added to test-scan-multibyte so that it
also works without iconv support.

12 years agoSkip the last check that I added to test-scan-multibyte if we don't
David Levine [Tue, 14 Jan 2014 02:29:19 +0000 (20:29 -0600)]
Skip the last check that I added to test-scan-multibyte if we don't
have iconv support because it requires converting from ISO-8859-1 to
UTF-8.

12 years agoIn cpstripped(), check for negative return value from wcwidth().
David Levine [Tue, 14 Jan 2014 02:08:55 +0000 (20:08 -0600)]
In cpstripped(), check for negative return value from wcwidth().

12 years agoBetter fix for test-attach-detach on platforms without readline.
David Levine [Mon, 13 Jan 2014 22:33:44 +0000 (14:33 -0800)]
Better fix for test-attach-detach on platforms without readline.

12 years agoFixed build on Solaris by only checking for -Wno-unused-result with gcc.
David Levine [Mon, 13 Jan 2014 21:35:41 +0000 (13:35 -0800)]
Fixed build on Solaris by only checking for -Wno-unused-result with gcc.

12 years agoHacked test-attach-detach to pass on Solaris.
David Levine [Sun, 12 Jan 2014 18:18:47 +0000 (12:18 -0600)]
Hacked test-attach-detach to pass on Solaris.

12 years agoFinal fix to test-attach-detach: on some platforms, there's no
David Levine [Sun, 12 Jan 2014 17:45:16 +0000 (11:45 -0600)]
Final fix to test-attach-detach:  on some platforms, there's no
charset for a text/plain file.

12 years agoReally fix mode of file that's used in test-attach-detach.
David Levine [Sun, 12 Jan 2014 17:32:11 +0000 (11:32 -0600)]
Really fix mode of file that's used in test-attach-detach.

12 years agoOne final fix to test-attach-detach.
David Levine [Sun, 12 Jan 2014 17:26:07 +0000 (11:26 -0600)]
One final fix to test-attach-detach.

12 years agoFixed test-attach-detach to work with any umask, and without readline.
David Levine [Sun, 12 Jan 2014 17:22:57 +0000 (11:22 -0600)]
Fixed test-attach-detach to work with any umask, and without readline.

12 years agoAdded -v and -a switches to whatnow attach so the user can see
David Levine [Sun, 12 Jan 2014 16:18:20 +0000 (10:18 -0600)]
Added -v and -a switches to whatnow attach so the user can see
the mhbuild directive that send(1) will use.

12 years agoRefined the POSTLINK used on OpenBSD so that it leaves the warnings,
David Levine [Sat, 11 Jan 2014 22:30:42 +0000 (16:30 -0600)]
Refined the POSTLINK used on OpenBSD so that it leaves the warnings,
but capitalizes the "w" so that they don't color the buildbot waterfall.

12 years agoRefined the autoconf test for -Wno-unused-result so that
David Levine [Sat, 11 Jan 2014 22:00:14 +0000 (16:00 -0600)]
Refined the autoconf test for -Wno-unused-result so that
it's only used where we need it (currently Ubuntu gcc 4.8.1
with -O2).

12 years agoCalculate port numbers in test suite based on uid so that different
David Levine [Sat, 11 Jan 2014 17:22:50 +0000 (11:22 -0600)]
Calculate port numbers in test suite based on uid so that different
users can run the test suite on a host simultaneously.

12 years agoUpdated Cygwin and Linux build notes.
David Levine [Sat, 11 Jan 2014 17:02:19 +0000 (11:02 -0600)]
Updated Cygwin and Linux build notes.

12 years agoAdded more .exe files to .gitignore.
David Levine [Sat, 11 Jan 2014 17:01:21 +0000 (11:01 -0600)]
Added more .exe files to .gitignore.

12 years agoWork around OpenBSD 5.4 file(1), which reports the --mime-encoding
David Levine [Sat, 11 Jan 2014 16:15:27 +0000 (10:15 -0600)]
Work around OpenBSD 5.4 file(1), which reports the --mime-encoding
of text files as "binary".

12 years agoReworked attach to add charset to Content-Type string for
David Levine [Sat, 11 Jan 2014 15:22:36 +0000 (09:22 -0600)]
Reworked attach to add charset to Content-Type string for
text content.

12 years agoChanged how build_nmh deals with older mhparam that doesn't
David Levine [Sat, 11 Jan 2014 14:09:20 +0000 (08:09 -0600)]
Changed how build_nmh deals with older mhparam that doesn't
report SASL/TLS.

12 years agoReorganized autoconf test for -Qunused-warnings so that it
David Levine [Sat, 11 Jan 2014 14:00:55 +0000 (08:00 -0600)]
Reorganized autoconf test for -Qunused-warnings so that it
outputs something when configuring on any platform.

12 years agoChange test-mhmail so it can handle a MIMETYPEPROC that doesn't output
Ken Hornstein [Sat, 11 Jan 2014 06:41:44 +0000 (01:41 -0500)]
Change test-mhmail so it can handle a MIMETYPEPROC that doesn't output
the character set.

12 years agoSwitch over to using --mime-type, since --mime seems to include a
Ken Hornstein [Sat, 11 Jan 2014 06:11:45 +0000 (01:11 -0500)]
Switch over to using --mime-type, since --mime seems to include a
charset for non-text MIME types.

12 years agoFixed POSTLINK (on OpenBSD) now that it doesn't use -Qunused-arguments.
David Levine [Sat, 11 Jan 2014 05:41:04 +0000 (23:41 -0600)]
Fixed POSTLINK (on OpenBSD) now that it doesn't use -Qunused-arguments.

12 years agoMore tests, but not quite there yet.
Ken Hornstein [Sat, 11 Jan 2014 05:32:54 +0000 (00:32 -0500)]
More tests, but not quite there yet.

12 years agoDon't error out if the message body is empty.
Ken Hornstein [Fri, 10 Jan 2014 18:31:05 +0000 (13:31 -0500)]
Don't error out if the message body is empty.

12 years agoOnly add -Qunused-arguments to LDFLAGS if compiler is clang.
David Levine [Sat, 11 Jan 2014 05:25:19 +0000 (23:25 -0600)]
Only add -Qunused-arguments to LDFLAGS if compiler is clang.

12 years agoReworked LFLAGS hack for flex 2.5.35 and 2.5.36 to work on
David Levine [Sat, 11 Jan 2014 04:49:24 +0000 (20:49 -0800)]
Reworked LFLAGS hack for flex 2.5.35 and 2.5.36 to work on
Ubuntu.  And use sed instead of ed.

12 years agoNo longer add -g or -s to LDFLAGS. autoconf handles -g. And "make
David Levine [Sat, 11 Jan 2014 01:36:34 +0000 (19:36 -0600)]
No longer add -g or -s to LDFLAGS.  autoconf handles -g.  And "make
install-strip" is the approved way to install stripped executables.

12 years agoAdded -Wno-unused-result to silence warnings on Ubuntu.
David Levine [Sat, 11 Jan 2014 01:03:56 +0000 (19:03 -0600)]
Added -Wno-unused-result to silence warnings on Ubuntu.

12 years agoMake sure we use the 'short' filename and add newlines where appropriate.
Ken Hornstein [Fri, 10 Jan 2014 05:45:38 +0000 (00:45 -0500)]
Make sure we use the 'short' filename and add newlines where appropriate.

12 years agoA bit closer, but don't run the test just yet.
Ken Hornstein [Fri, 10 Jan 2014 04:17:25 +0000 (23:17 -0500)]
A bit closer, but don't run the test just yet.

12 years agoPreliminary Attach: header support. Untested just yet.
Ken Hornstein [Thu, 9 Jan 2014 21:03:21 +0000 (16:03 -0500)]
Preliminary Attach: header support.  Untested just yet.

12 years agoOpenBSD 5 needs an other-libraries (fourth argument) to the
David Levine [Thu, 9 Jan 2014 02:54:50 +0000 (20:54 -0600)]
OpenBSD 5 needs an other-libraries (fourth argument) to the
AC_CHECK_LIB for SSL_library_init, because it doesn't automatically
append -lcrypto when linking with -lssl.

12 years agoHard-code the config/version.c target, instead of using $@, so its
David Levine [Thu, 9 Jan 2014 02:14:57 +0000 (20:14 -0600)]
Hard-code the config/version.c target, instead of using $@, so its
rule works for the distcheck target with Solaris (System V) make.
distcheck uses VPATH, causes that make to prepend the VPATH to $@.

12 years agoReplace use of awk with sed in test-anno because it failed
David Levine [Thu, 9 Jan 2014 01:02:58 +0000 (19:02 -0600)]
Replace use of awk with sed in test-anno because it failed
on Solaris (gawk).

12 years agoDetect whether or not to use -n with tail in build_nmh.
David Levine [Thu, 9 Jan 2014 00:23:10 +0000 (18:23 -0600)]
Detect whether or not to use -n with tail in build_nmh.
Synched that to uip/mhmail.

12 years agoFixed typo in last commit of test-curses.
David Levine [Wed, 8 Jan 2014 04:51:41 +0000 (22:51 -0600)]
Fixed typo in last commit of test-curses.

12 years agoAdded -Txterm-color to tput invocations that didn't have it.
David Levine [Wed, 8 Jan 2014 04:49:51 +0000 (22:49 -0600)]
Added -Txterm-color to tput invocations that didn't have it.

12 years agoIn test-curses, use termcap codes if terminfo capabilities
David Levine [Wed, 8 Jan 2014 04:27:55 +0000 (22:27 -0600)]
In test-curses, use termcap codes if terminfo capabilities
are not supported, such as on FreeBSD 9.

12 years agoAdded sbr/dtimep.c to CLEANFILES so that make distcheck passes on
David Levine [Wed, 8 Jan 2014 02:18:52 +0000 (20:18 -0600)]
Added sbr/dtimep.c to CLEANFILES so that make distcheck passes on
FreeBSD 9.

12 years agoClarified advisory message it test-mhfixmsg if a text browser
David Levine [Wed, 8 Jan 2014 01:51:58 +0000 (19:51 -0600)]
Clarified advisory message it test-mhfixmsg if a text browser
isn't available.

12 years agoUpdate this for From, Resent-From, and Envelope-From. Also document
Ken Hornstein [Wed, 8 Jan 2014 04:15:39 +0000 (23:15 -0500)]
Update this for From, Resent-From, and Envelope-From.  Also document
Attach even though the code hasn't been written yet.

12 years agoPrevent message status allocation code from overflowing if we get a
Ken Hornstein [Tue, 7 Jan 2014 16:45:24 +0000 (11:45 -0500)]
Prevent message status allocation code from overflowing if we get a
message number that is too high; simply abort instead.

12 years agoReplaced hidden make_mime_composition_file_entry() used by attach()
David Levine [Tue, 7 Jan 2014 02:49:18 +0000 (20:49 -0600)]
Replaced hidden make_mime_composition_file_entry() used by attach()
with public construct_build_directive().

12 years agoHere's a better fix for the whatnow tests: set and export
David Levine [Tue, 7 Jan 2014 01:14:20 +0000 (19:14 -0600)]
Here's a better fix for the whatnow tests:  set and export
TERM at the beginning of each test so that valgrind can be
supported.

12 years agoRemoved remaining run_prog's from tests that set an
David Levine [Mon, 6 Jan 2014 17:30:42 +0000 (11:30 -0600)]
Removed remaining run_prog's from tests that set an
environment variable.

12 years agoAdd a test for the new curses-based format escapes.
Ken Hornstein [Mon, 6 Jan 2014 16:20:47 +0000 (11:20 -0500)]
Add a test for the new curses-based format escapes.

12 years agoFixed description of send -attach switch in whatnow: its argument
David Levine [Sun, 5 Jan 2014 20:48:18 +0000 (14:48 -0600)]
Fixed description of send -attach switch in whatnow:  its argument
is the header file name, not a filename.

12 years agoRemoved remaining globals in uip/attach.c.
David Levine [Sun, 5 Jan 2014 16:01:48 +0000 (10:01 -0600)]
Removed remaining globals in uip/attach.c.

12 years agoGot rid of a couple of globals used by attach get_line().
David Levine [Sun, 5 Jan 2014 15:51:53 +0000 (09:51 -0600)]
Got rid of a couple of globals used by attach get_line().

12 years agoMoved the functions that implement whatnow attach from
David Levine [Sun, 5 Jan 2014 15:39:11 +0000 (09:39 -0600)]
Moved the functions that implement whatnow attach from
uip/sendsbr.c to new uip/attach.c.

12 years agoIn whatnow help, don't show that detached can be abbreviated
David Levine [Sun, 5 Jan 2014 14:28:58 +0000 (08:28 -0600)]
In whatnow help, don't show that detached can be abbreviated
with "de", because that conflicts with "delete".

12 years agoWhoops, I'm supposed to NUL-terminate the string, not set the actual pointer
Ken Hornstein [Sun, 5 Jan 2014 01:44:21 +0000 (20:44 -0500)]
Whoops, I'm supposed to NUL-terminate the string, not set the actual pointer
itself!

12 years agoMake sure scan.curses is installed & distributed.
Ken Hornstein [Sat, 4 Jan 2014 19:01:58 +0000 (14:01 -0500)]
Make sure scan.curses is installed & distributed.

12 years agoSupport for sending color escape sequences retrieved from terminfo(5).
Ken Hornstein [Sat, 4 Jan 2014 05:59:38 +0000 (00:59 -0500)]
Support for sending color escape sequences retrieved from terminfo(5).

12 years agoAdd support for %(hascolor), and a new function for parameterized
Ken Hornstein [Fri, 3 Jan 2014 20:55:10 +0000 (15:55 -0500)]
Add support for %(hascolor), and a new function for parameterized
terminfo capabilities.

12 years agoDocument %(nodate), and update things a bit.
Ken Hornstein [Fri, 3 Jan 2014 19:40:35 +0000 (14:40 -0500)]
Document %(nodate), and update things a bit.