]> diplodocus.org Git - nmh/commitdiff
Don't parse parse # lines with mhbuild -nodirectives.
authorDavid Levine <levinedl@acm.org>
Mon, 7 Nov 2016 21:28:14 +0000 (16:28 -0500)
committerDavid Levine <levinedl@acm.org>
Mon, 7 Nov 2016 21:28:14 +0000 (16:28 -0500)
Makefile.am
docs/pending-release-notes
uip/mhbuildsbr.c

index f1868ec..3f00dc1 100644 (file)
@@ -73,7 +73,7 @@ TESTS = test/ali/test-ali test/anno/test-anno \
        test/install-mh/test-install-mh test/install-mh/test-version-check \
        test/locking/test-datalocking test/locking/test-spoollocking \
        test/manpages/test-manpages \
-       test/mhbuild/test-attach \
+       test/mhbuild/test-attach test/mhbuild/test-mhbuild \
        test/mhbuild/test-cte \
        test/mhbuild/test-ext-params \
        test/mhbuild/test-forw test/mhbuild/test-header-encode \
index 90b903a..838ae10 100644 (file)
@@ -104,3 +104,5 @@ BUG FIXES
   if needed after decoding text parts.
 - mhbuild now checks whether all text parts need a Content-Transfer-Encoding
   header, not just those with a character set not specified.
+- mhbuild no longer parses lines that start with # as directives with
+  -nodirectives.
index df346fe..cf41bfb 100644 (file)
@@ -621,7 +621,7 @@ fgetstr (char *s, int n, FILE *stream)
            if (!fgets (cp, n, stream))
                 return cp == s ? NULL : s; /* "\\\nEOF" ignored. */
 
-           if (cp == s && *cp != '#')
+           if (! do_direct()  ||  (cp == s && *cp != '#'))
                return s; /* Plaintext line. */
 
            len = strlen(cp);