]> diplodocus.org Git - nmh/blobdiff - uip/mhshowsbr.c
Add a note about devel/autotools as a pre-req for building on FreeBSD.
[nmh] / uip / mhshowsbr.c
index 68a07f7bdd5e6e86862df3cd016c839e29e880b6..7454d1827fba74750aed6114aa3b4785cac6ac81 100644 (file)
@@ -300,7 +300,7 @@ show_content (CT ct, int alternate, int textonly, int inlineonly,
      * the content-type.
      */
 
-    if (textonly || (inlineonly && is_inline(ct))) {
+    if (textonly || (inlineonly && !is_inline(ct))) {
        output_marker(ct, fmt);
        return OK;
     }
@@ -358,12 +358,12 @@ show_content_aux (CT ct, int alternate, char *cp, char *cracked)
            some code rearrangement.  And to make this really ugly,
            only do it in mhshow, not mhfixmsg, mhn, or mhstore. */
         if (convert_content_charset (ct, &file) == OK) {
-            close_encoding (ct);
+            (*ct->c_ceclosefnx) (ct);
             if ((fd = (*ct->c_ceopenfnx) (ct, &file)) == NOTOK)
                 return NOTOK;
         } else {
-            admonish (NULL, "unable to convert character set%s to %s",
-                      ct->c_partno  ?  "of part "  :  "",
+            admonish (NULL, "unable to convert character set%s%s to %s",
+                      ct->c_partno  ?  " of part "  :  "",
                       ct->c_partno  ?  ct->c_partno  :  "",
                       content_charset (ct));
         }