]> diplodocus.org Git - nmh/blobdiff - uip/mhfixmsg.c
A better fix than e87f37c27828723317a71291e31b34f39ec09098, because
[nmh] / uip / mhfixmsg.c
index b7025514d595a2b1e261beaed6f692278b924d78..6195b316501327999bc74f083ab6c82aeb22d76c 100644 (file)
@@ -152,7 +152,7 @@ main (int argc, char **argv) {
     fx.lf_line_endings = 0;
     fx.textcharset = NULL;
 
     fx.lf_line_endings = 0;
     fx.textcharset = NULL;
 
-    if (nmh_init(argv[0], 1)) { return 1; }
+    if (nmh_init(argv[0], 2)) { return 1; }
 
     done = freects_done;
 
 
     done = freects_done;
 
@@ -1160,6 +1160,10 @@ set_ce (CT ct, int encoding) {
            ct->c_cefile.ce_file to the name of the file containing
            the contents. */
 
            ct->c_cefile.ce_file to the name of the file containing
            the contents. */
 
+        if (ct->c_ceclosefnx) {
+            (*ct->c_ceclosefnx) (ct);
+        }
+
         /* Restore the cefile. */
         ct->c_cefile = decoded_content_info;
 
         /* Restore the cefile. */
         ct->c_cefile = decoded_content_info;