]> diplodocus.org Git - nmh/commit
Cleanup MIME header handling in mhbuild
authorKen Hornstein <kenh@pobox.com>
Mon, 13 May 2019 00:07:56 +0000 (20:07 -0400)
committerKen Hornstein <kenh@pobox.com>
Mon, 13 May 2019 00:08:27 +0000 (20:08 -0400)
commitc4bc9ed8bee57f8fd58ad10fb5d8941e090993db
tree0062faac8fe3ea5ad2fe779d6fec10e108a2dddd
parent0bc71c284a5004fb30f200b5069b9e8e1f14e497
Cleanup MIME header handling in mhbuild

Per discussion on nmh-workers, cleanup the handling of MIME headers
in mhbuild.  The following logic should now apply.

If mhbuild is run with -auto AND a MIME-Version header is detected, then
exit silently with no error (and leave the draft untouched).  Otherwise,
if a MIME-Version header or ANY Content-* header is found, exit with an
error.  Note that this means if mhbuild is run with -auto then an error
will be returned if any Content-* headers are seen.

Previously, mhbuild would silently eat any Content-Type headers seen
in an existing draft; this behavior was brought forward from MH 6 and
no one could explain the reason for this behavior.  This behavior has
been removed.
man/mhbuild.man
test/mhbuild/test-mhbuild
uip/mhbuildsbr.c