Hi!

Modern mailers send their error reports with encoding `8bit' when
the included message has 8-bit characters in it.  MH and nmh have
so far refused to display these messages.  I think there should
be no problems with allowing `8bit' encoding, since it requires
no additional decoding (just like `7bit').

The attached patches should address this problem.

Cheers,
+ Kim
$NetBSD: patch-cg,v 1.1 1999/03/08 20:48:28 kim Exp $

--- uip/mhparse.c.orig  Thu Oct 15 00:04:57 1998
+++ uip/mhparse.c       Mon Mar  8 15:29:57 1999
@@ -1194,9 +1194,9 @@
     struct k2v *kv;
     CI ci = &ct->c_ctinfo;
 
-    if (ct->c_encoding != CE_7BIT) {
+    if ((ct->c_encoding != CE_7BIT) && (ct->c_encoding != CE_8BIT)) {
        admonish (NULL,
-                 "\"%s/%s\" type in message %s should be encoded in 7bit",
+                 "\"%s/%s\" type in message %s should be encoded in 7bit or 8bit",
                  ci->ci_type, ci->ci_subtype, ct->c_file);
        return NOTOK;
     }
$NetBSD: patch-ch,v 1.1 1999/03/08 20:48:29 kim Exp $

--- uip/mhbuildsbr.c.orig       Thu Oct 15 00:05:02 1998
+++ uip/mhbuildsbr.c    Mon Mar  8 15:32:11 1999
@@ -1433,9 +1433,9 @@
     struct k2v *kv;
     CI ci = &ct->c_ctinfo;
 
-    if (ct->c_encoding != CE_7BIT) {
+    if ((ct->c_encoding != CE_7BIT) && (ct->c_encoding != CE_8BIT)) {
        admonish (NULL,
-                 "\"%s/%s\" type in message %s should be encoded in 7bit",
+                 "\"%s/%s\" type in message %s should be encoded in 7bit or 8bit",
                  ci->ci_type, ci->ci_subtype, ct->c_file);
        return NOTOK;
     }

Reply via email to