]>
diplodocus.org Git - nmh/log
Ken Hornstein [Wed, 5 Mar 2014 19:36:43 +0000 (14:36 -0500)]
Move language tag parser into the block so it only gets
invoked on index 0.
Ken Hornstein [Wed, 5 Mar 2014 19:04:47 +0000 (14:04 -0500)]
Change disposition output slightly.
Ken Hornstein [Wed, 5 Mar 2014 18:48:45 +0000 (13:48 -0500)]
Update information to mention RFC 2231.
Ken Hornstein [Wed, 5 Mar 2014 18:40:13 +0000 (13:40 -0500)]
Add message/external-body test.
Ken Hornstein [Wed, 5 Mar 2014 18:03:30 +0000 (13:03 -0500)]
Update mhlist and other relevant utilities to output disposition information
with a new -disposition switch.
Ken Hornstein [Wed, 5 Mar 2014 04:44:09 +0000 (23:44 -0500)]
Some tests for RFC 2231 decoding; seems like it works, but need to stress
it some more.
Ken Hornstein [Wed, 5 Mar 2014 04:43:26 +0000 (23:43 -0500)]
Fix up some error reporting, and reassemble partial parameters correctly.
Ken Hornstein [Wed, 5 Mar 2014 03:49:13 +0000 (22:49 -0500)]
Fix up a few pointer mishaps; this should now get everything right!
Ken Hornstein [Wed, 5 Mar 2014 03:37:10 +0000 (22:37 -0500)]
Whoops, forgot to set the name element of the partial parameter structure.
Ken Hornstein [Wed, 5 Mar 2014 00:53:23 +0000 (19:53 -0500)]
A few minor fixups; the parser now passes the test suite!
Ken Hornstein [Tue, 4 Mar 2014 18:45:19 +0000 (13:45 -0500)]
Fixes for the MIME parser; kinda works for regular parameters, but
still needs some fixes.
Ken Hornstein [Tue, 4 Mar 2014 02:52:35 +0000 (21:52 -0500)]
More work on extended parameter parser. Does not compile yet.
David Levine [Mon, 3 Mar 2014 15:14:09 +0000 (07:14 -0800)]
In test/common.sh.in trap, cd to $MH_TEST_DIR before trying
to remove its Mail subdirectory. rm on Solaris won't remove
it if it's in the path of the current working directory.
Ken Hornstein [Mon, 3 Mar 2014 05:43:46 +0000 (00:43 -0500)]
Make parse_header_attrs() a private function (there are no longer any
public consumers of it).
Ken Hornstein [Mon, 3 Mar 2014 05:42:56 +0000 (00:42 -0500)]
Convert unqp() to decode_qp(), and make it a public function. Also,
handle the case where decode_qp() is passed a character outside of
the normal ASCII range.
David Levine [Mon, 3 Mar 2014 04:38:57 +0000 (22:38 -0600)]
Added mkstemp(1), wrapper around mkstemp(3)/mkstemps(3), to
auxexec, for use by mhmail.
David Levine [Mon, 3 Mar 2014 02:29:20 +0000 (20:29 -0600)]
Added convenience function die() to mhmail.
Ken Hornstein [Mon, 3 Mar 2014 02:04:55 +0000 (21:04 -0500)]
Switch over get_ctinfo() to determine the filename based on the filename if
one was not provided. Remove some unneeded functions as part of this work.
David Levine [Sun, 2 Mar 2014 18:00:13 +0000 (12:00 -0600)]
Added recommendation to use nmh-storage profile setting or
non-default -clobber with mhstore -always.
David Levine [Sun, 2 Mar 2014 16:09:18 +0000 (10:09 -0600)]
Added check of -noverbose to test-mhstore.
David Levine [Sun, 2 Mar 2014 15:30:01 +0000 (09:30 -0600)]
Added commented explaining use of ci_attrs[0] in
build_multipart_alt() of mhfixmsg.
Ken Hornstein [Sun, 2 Mar 2014 05:07:10 +0000 (00:07 -0500)]
Whoops, forgot to TEST THIS OUT first.
Ken Hornstein [Sun, 2 Mar 2014 05:06:13 +0000 (00:06 -0500)]
For some reason viamail listed mhoutsbr as a dependency. It turned out it
wasn't required, so we removed it so we don't have to pull in a complete MIME
parser into viamail.
Ken Hornstein [Sun, 2 Mar 2014 04:51:19 +0000 (23:51 -0500)]
More cleaned and conversion to the new parameter API.
Ken Hornstein [Sun, 2 Mar 2014 04:24:47 +0000 (23:24 -0500)]
Add a new get_param_value(); redo iconv() parameter conversion code.
Start having code use get_param() and get_param_value() rather than
walking the whole parameter linked list.
David Levine [Sat, 1 Mar 2014 19:55:24 +0000 (13:55 -0600)]
Removed recommendation from mhstore man page that users not put
-auto in their profile. Added recommendation that users not use
the %a escape string.
David Levine [Sat, 1 Mar 2014 19:30:50 +0000 (13:30 -0600)]
Added description of switches.
David Levine [Sat, 1 Mar 2014 18:00:18 +0000 (12:00 -0600)]
mhstore(1) now obeys its -noverbose switch.
David Levine [Sat, 1 Mar 2014 14:32:20 +0000 (08:32 -0600)]
Fix to commit
a2806483a53fcdb62ca8e2bec4f4e023355f4470
to properly handle quoting when text follows quoted
text in a mhshow display string.
David Levine [Sat, 1 Mar 2014 14:30:27 +0000 (08:30 -0600)]
Moved discussion when no messages are matched from BUGS section
to new subsection under DESCRIPTION, per Ralph's suggestion.
David Levine [Sat, 1 Mar 2014 04:59:09 +0000 (22:59 -0600)]
Removed a couple of unnecessary vector typedefs from h/mh.h.
David Levine [Sat, 1 Mar 2014 04:05:37 +0000 (22:05 -0600)]
Updated MACHINES and SPECS/nmh.spec to reflect packages
available for CentOS Linux.
Ken Hornstein [Fri, 28 Feb 2014 02:43:18 +0000 (21:43 -0500)]
Fix iconv return value test warning.
Ken Hornstein [Fri, 28 Feb 2014 02:38:09 +0000 (21:38 -0500)]
Support complete encoding for encoding Content-Type parameters. Start
work on retrieving parameters and converting them to the correct charset.
Ken Hornstein [Thu, 27 Feb 2014 16:50:33 +0000 (11:50 -0500)]
Use RFC 2047 encoding for Content-Description, and make sure to encode
MIME parameters correctly when building the Content-Disposition header.
Ken Hornstein [Thu, 27 Feb 2014 03:58:26 +0000 (22:58 -0500)]
Re-do length calculation for parameter output, and adapt test for new code.
David Levine [Thu, 27 Feb 2014 03:48:29 +0000 (21:48 -0600)]
Fixed quoting of filename, expanded C-T parameter values, etc.,
in mhshow. Removed the workarounds that had built up when it
was broken.
Ken Hornstein [Thu, 27 Feb 2014 02:13:30 +0000 (21:13 -0500)]
Closer, but not quite right yet.
David Levine [Thu, 27 Feb 2014 01:58:43 +0000 (19:58 -0600)]
Updated mhparam, man pages, and test-mhparam to reflect split
of locking methods into datalocking and spoollocking.
Ken Hornstein [Wed, 26 Feb 2014 02:31:18 +0000 (21:31 -0500)]
Add test for long + encoded line; does not pass right now.
Ken Hornstein [Wed, 26 Feb 2014 02:30:52 +0000 (21:30 -0500)]
Make sure we include space in the list of characters we need to encode in
a parameter line.
Ken Hornstein [Wed, 26 Feb 2014 02:28:45 +0000 (21:28 -0500)]
Remove unused variable, and make sure we free c_dispo_type.
Ken Hornstein [Wed, 26 Feb 2014 02:15:51 +0000 (21:15 -0500)]
A new test for longer lines.
Ken Hornstein [Wed, 26 Feb 2014 02:14:51 +0000 (21:14 -0500)]
Calculate "characters to use in for current line" based on starting a new
line, rather than the number of characters in the previous line.
Ken Hornstein [Tue, 25 Feb 2014 20:23:56 +0000 (15:23 -0500)]
First basic test of extended parameter output: working!
Ken Hornstein [Tue, 25 Feb 2014 02:34:12 +0000 (21:34 -0500)]
Beginnings of test suite for RFC 2231 support; does not work yet.
David Levine [Tue, 25 Feb 2014 02:18:17 +0000 (20:18 -0600)]
Fixed m_getfld() to not return EOF indicator, so that files need
not end with a newline.
Ken Hornstein [Mon, 24 Feb 2014 18:39:19 +0000 (13:39 -0500)]
Make sure we don't modify the original text when processing the disposition
header.
David Levine [Mon, 24 Feb 2014 00:52:52 +0000 (18:52 -0600)]
Added mh-folders to nmh(7) man page. Split out Formats section of
nmh man page.
Ken Hornstein [Mon, 24 Feb 2014 02:29:52 +0000 (21:29 -0500)]
Fix up error reporting for the hook code.
Ken Hornstein [Sat, 22 Feb 2014 05:07:55 +0000 (00:07 -0500)]
It compiles now! And actually sort of works, but still a LOT more
that needs to be done before it is complete.
Ken Hornstein [Fri, 21 Feb 2014 19:49:07 +0000 (14:49 -0500)]
Getting closer to getting something working.
Ken Hornstein [Thu, 20 Feb 2014 19:55:01 +0000 (14:55 -0500)]
More work on handling encoded params; still does not compile.
David Levine [Thu, 20 Feb 2014 04:01:45 +0000 (22:01 -0600)]
Cast argument to isspace() to unsigned char instead of int.
David Levine [Thu, 20 Feb 2014 03:55:19 +0000 (21:55 -0600)]
Fix to commit
ed3214f1518b36c8b96a1a17be4af0a708ea25e3
to not try to quote filenames in multipart parts.
David Levine [Thu, 20 Feb 2014 03:36:16 +0000 (21:36 -0600)]
Generalized %{charset} display string escape to any Content-Type
parameter. Also, always quote the expanded value, whether or not
the escape was quoted in the profile.
David Levine [Thu, 20 Feb 2014 02:09:28 +0000 (20:09 -0600)]
Added reason to mhfixmsg's printout when it fails to decode binary
content.
David Levine [Thu, 20 Feb 2014 00:57:29 +0000 (18:57 -0600)]
Refined commit
ed3214f1518b36c8b96a1a17be4af0a708ea25e3 to only
accept single quotes wrapping %f and %F display escapes.
David Levine [Wed, 19 Feb 2014 03:26:52 +0000 (21:26 -0600)]
Migrated show_content_aux2() to argsplit().
David Levine [Wed, 19 Feb 2014 03:16:06 +0000 (21:16 -0600)]
Removed redundant quoting of %f and %F in display strings. Now,
the code checks to see if those escapes are quoted before quoting
them. Removed quoting of them in mhn.defaults.sh because it isn't
(and wasn't) necessary.
David Levine [Wed, 19 Feb 2014 01:16:39 +0000 (19:16 -0600)]
Removed leading "exec " inserted in show_content_aux2(), which
allows use of shell expansion on Content-Type parameters in
mhshow display straings.
Ken Hornstein [Tue, 18 Feb 2014 17:38:06 +0000 (12:38 -0500)]
Fix for bug #41618: Supply charset to w3m when converting text/html parts.
David Levine [Tue, 18 Feb 2014 13:54:37 +0000 (07:54 -0600)]
Silenced warnings when built without iconv.
David Levine [Sun, 16 Feb 2014 21:25:34 +0000 (15:25 -0600)]
Added MH libdir to PATH in test-textcharset because it uses ap.
David Levine [Sun, 16 Feb 2014 20:12:15 +0000 (14:12 -0600)]
Removed remaining TMP relics missed with commit
d046c8f0992fddcd69f2172a6607a14dec3b1251 . Also, have mhmail clean
up a .orig tmp file, now that it always uses mhbuild.
David Levine [Sun, 16 Feb 2014 19:12:39 +0000 (13:12 -0600)]
Added support for %{charset} display string escape to mhshow(1).
David Levine [Sun, 16 Feb 2014 17:30:41 +0000 (11:30 -0600)]
Factored out duplicate code into parse_display_string() function.
David Levine [Sun, 16 Feb 2014 16:26:34 +0000 (10:26 -0600)]
Instead of printing PostScript attachments, by default, from mhshow,
try to find a suitable viewer.
David Levine [Sun, 16 Feb 2014 16:06:47 +0000 (10:06 -0600)]
Added associations to mhn.defaults.sh from
http://technet.microsoft.com/en-us/library/
cc179224 .aspx.
Ken Hornstein [Wed, 12 Feb 2014 20:41:39 +0000 (15:41 -0500)]
More extended parameter work. Still non-functional.
Ken Hornstein [Wed, 12 Feb 2014 20:41:04 +0000 (15:41 -0500)]
Move contains8bit() to a common file, and make it a bit more general.
Ken Hornstein [Wed, 12 Feb 2014 04:17:00 +0000 (23:17 -0500)]
Beginnings of RFC 2231 support. Does not compile (yet).
David Levine [Tue, 11 Feb 2014 05:17:28 +0000 (23:17 -0600)]
Removed the -[no]textcharset switches that were added to mhshow(1)
in commit
721b0395fb2fceac4e66fed1009ed2f17fd5351f . They weren't
needed. So the net effect is that, if built with iconv, mhshow
will attempt to convert text/plain content to match the user's locale.
David Levine [Sun, 9 Feb 2014 18:52:28 +0000 (12:52 -0600)]
Use test_skip in test-textcharset if not built with iconv.
David Levine [Sun, 9 Feb 2014 16:32:46 +0000 (10:32 -0600)]
Need to set locale to something other than UTF-8 on Cygwin for
the first couple of checks in test-textcharset.
David Levine [Sun, 9 Feb 2014 15:59:23 +0000 (09:59 -0600)]
Removed potential buffer overflow from ruserpass(). It had been
there a long time. Also, move the tokval buffer from global data
to the stack.
David Levine [Sun, 9 Feb 2014 15:58:00 +0000 (09:58 -0600)]
Added -[no]textcharset switches to mhshow(1). These only apply if
nmh was configured with iconv(3) support. If -textcharset is not
used, mhshow will convert, if necessary, the charset of text/plain
content to match the user's locale setting.
David Levine [Sun, 9 Feb 2014 15:05:14 +0000 (09:05 -0600)]
Use $MH shortcut for the profile in a few of the tests.
David Levine [Sun, 9 Feb 2014 14:56:42 +0000 (08:56 -0600)]
In test-mhfixmsg, look at configuration to see if iconv is enabled
rather than detecting it from test output.
David Levine [Sun, 9 Feb 2014 04:23:17 +0000 (22:23 -0600)]
Remove mhbuild backup files at end of a couple of tests, if successful.
David Levine [Sun, 9 Feb 2014 03:38:18 +0000 (21:38 -0600)]
Changed "codeset" to "charset" for (and in) mhfixmsg. Also
cleaned up some comments in mhshowsbr.c.
David Levine [Sat, 8 Feb 2014 17:11:25 +0000 (11:11 -0600)]
Moved upcase(), update_attr(), content_charset(), and
convert_charset() out of mhfixmsg.c so that other programs can
use them.
Ken Hornstein [Fri, 7 Feb 2014 20:53:35 +0000 (15:53 -0500)]
Start of changes to support extended parameter parsing and decoding.
Ken Hornstein [Wed, 5 Feb 2014 18:05:21 +0000 (13:05 -0500)]
Fix uninitialized variable warning
Ken Hornstein [Wed, 5 Feb 2014 16:02:01 +0000 (11:02 -0500)]
Adjust the quoted-printable output routine to continue when the end of
the buffer is reached, rather than adding a soft line break.
Ken Hornstein [Tue, 4 Feb 2014 20:09:12 +0000 (15:09 -0500)]
Add test for -maxunencoded.
Ken Hornstein [Tue, 4 Feb 2014 19:54:16 +0000 (14:54 -0500)]
A few more C-T-E tests.
Ken Hornstein [Tue, 4 Feb 2014 18:36:29 +0000 (13:36 -0500)]
Still more CTE tests to cover (hopefully) all of tbe base64 cases.
Ken Hornstein [Tue, 4 Feb 2014 18:34:22 +0000 (13:34 -0500)]
More CTE tests.
Ken Hornstein [Tue, 4 Feb 2014 17:38:34 +0000 (12:38 -0500)]
More fixes (and tests) for the base64 encoder.
Ken Hornstein [Tue, 4 Feb 2014 16:49:49 +0000 (11:49 -0500)]
Add a new base64 CTE test.
Ken Hornstein [Tue, 4 Feb 2014 16:19:24 +0000 (11:19 -0500)]
Fix encoder so at least one case of LF -> CR LF conversion happens correctly.
David Levine [Tue, 4 Feb 2014 04:48:38 +0000 (22:48 -0600)]
Reordered a bit of code in signal handler. Noted in comment that
NetBSD doesn't have mkstemps(3).
David Levine [Tue, 4 Feb 2014 03:42:44 +0000 (21:42 -0600)]
Use rename(2), not link(2), in m_mktemps() if mkstemps() is not
available.
Ken Hornstein [Tue, 4 Feb 2014 02:46:33 +0000 (21:46 -0500)]
Add a new (but incomplete) test for mhbuild's new functionality.
Ken Hornstein [Tue, 4 Feb 2014 02:46:08 +0000 (21:46 -0500)]
Fix up mhbuild so the character set is always output when needed, even
when the CTE is specified.
Ken Hornstein [Tue, 4 Feb 2014 02:45:41 +0000 (21:45 -0500)]
Document changes to mhbuild.
Ken Hornstein [Tue, 4 Feb 2014 01:14:55 +0000 (20:14 -0500)]
Support for selectable Content-Transfer-Encoding.
Now default to 8bit for CTE for text types.
David Levine [Mon, 3 Feb 2014 04:34:14 +0000 (22:34 -0600)]
netbsd uses flock by default for mail spool locking, as reported
by Robert Elz. Use *netbsd* to also include knetbsd, though I
don't know for sure that it uses flock.
David Levine [Mon, 3 Feb 2014 04:16:25 +0000 (22:16 -0600)]
Restored setuid/setgid to slocal: it needs them when run as root,
as a mail delivery agent.