]> diplodocus.org Git - nmh/commitdiff
Renamed mhbuild -headerencoding 8bit to utf-8.
authorDavid Levine <levinedl@acm.org>
Sat, 24 Sep 2016 01:54:26 +0000 (21:54 -0400)
committerDavid Levine <levinedl@acm.org>
Sat, 24 Sep 2016 01:54:26 +0000 (21:54 -0400)
man/mhbuild.man
sbr/addrsbr.c
test/post/test-rfc6531
uip/mhbuild.c
uip/post.c
uip/sendsbr.c

index c1237a75ceb15335a93d38707f27ad80d0cfe8cd..7667b3a353b7a3ba0b3019ab7ab3d207350ae18e 100644 (file)
@@ -768,10 +768,9 @@ The valid arguments are
 for based\-64 encoding,
 .I quoted
 for quoted\-printable encoding, and
-.I 8bit
-for raw 8-bit encoding, which requires that all header field bodies be
-encoded as UTF-8 (RFC 6530) and that the SMTP server support SMTPUTF8
-(RFC 6531).
+.I utf-8
+which requires that all 8-bit header field bodies be encoded as UTF-8
+(RFC 6530) and that the SMTP server support SMTPUTF8 (RFC 6531).
 The
 .B \-autoheaderencoding
 switch will instruct
index 3b57f20cc4a19e54949b732dad9768f1a45ba2fc..f8b98f23b926e34677aea708f16fec92262f08d9 100644 (file)
@@ -86,7 +86,7 @@ getname (const char *addrs)
     pers = mbox = host = route = grp = note = NULL;
     err[0] = '\0';
 
-    if ((ap = getadrx (addrs ? addrs : "", eai && strncasecmp (eai, "8bit", 4) == 0)) == NULL) {
+    if ((ap = getadrx (addrs ? addrs : "", eai && strncasecmp (eai, "utf-8", 5) == 0)) == NULL) {
        return NULL;
     }
 
index 1df9a291b3ea956998e4890ad9aec739038fa1ac..48d9d15579fa035aa5b5aa59eaf5f44eb86763c0 100755 (executable)
@@ -22,7 +22,7 @@ require_locale en_US.utf-8 en_US.utf8
 LC_ALL=en_US.UTF-8; export LC_ALL
 
 #### Enable EAI in mhbuild, via the profile.
-sed "s%^\(mhbuild: .*\)%\1 -headerencoding 8bit%" "$MH" >"$MH.new"
+sed "s%^\(mhbuild: .*\)%\1 -headerencoding utf-8%" "$MH" >"$MH.new"
 mv -f "$MH.new" "$MH"
 
 # check SMTPUTF8 basic
index 8684c70fd116bf4e6073051d25cf018b3c2b0905..87252a7cfa1b23e01d98e16d80d2eac5bde3dce8 100644 (file)
@@ -56,11 +56,11 @@ DEFINE_SWITCH_ENUM(MHBUILD);
 DEFINE_SWITCH_ARRAY(MHBUILD, switches);
 #undef X
 
-/* 8bit is Email Address Internationalization. */
+/* utf-8 is for Email Address Internationalization, using SMTPUTF8. */
 #define MIMEENCODING_SWITCHES \
     X("base64", 0, BASE64SW) \
     X("quoted-printable", 0, QUOTEDPRINTSW) \
-    X("8bit", 0, EIGHTBITSW) \
+    X("utf-8", 0, UTF8SW) \
 
 #define X(sw, minchars, id) id,
 DEFINE_SWITCH_ENUM(MIMEENCODING);
@@ -246,7 +246,7 @@ main (int argc, char **argv)
                case QUOTEDPRINTSW:
                    header_encoding = CE_QUOTED;
                    break;
-               case EIGHTBITSW:
+               case UTF8SW:
                    header_encoding = CE_8BIT;
                    break;
                default:
index 6e2367a406b3542fce6fe2c655aaa48e9a0251e9..488d49b7109641285c9249ff26d0395cca5b9b4b 100644 (file)
@@ -597,8 +597,8 @@ main (int argc, char **argv)
 
     /* Support EAI. */
     if (eai) {
-        /* Add eai profile entry, to pass 8bit setting to getname()/getadrx(). */
-        add_profile_entry ("eai", "8bit");
+        /* Add eai profile entry, to pass utf-8 setting to getname()/getadrx(). */
+        add_profile_entry ("eai", "utf-8");
     }
 
     start_headers ();
index 5da67fc9274e35c00623f4a81c18f9ad734ca440..6373336e750b2edb8533ce02fccbb7859f9fac75 100644 (file)
@@ -104,15 +104,15 @@ sendsbr (char **vec, int vecp, char *program, char *draft, struct stat *st,
            buildvec[i++] = "-dist";
        buildvec[i++] = (char *) drft;
        if (eai) {
-           /* Add eai profile entry, to pass 8bit setting to
+           /* Add eai profile entry, to pass utf-8 setting to
               getname()/getadrx().  This doesn't seem to be necessary
-               now, but it's here just in case the code changes
-               later. */
-           add_profile_entry("eai", "8bit");
+              now, but it's here just in case the code changes
+              later. */
+           add_profile_entry("eai", "utf-8");
 
-           /* Add mhbuild switch to enable 8bit headers. */
+           /* Add mhbuild switch to enable UTF-8 headers. */
            buildvec[i++] = "-headerencoding";
-           buildvec[i++] = "8bit";
+           buildvec[i++] = "utf-8";
        }
        buildvec[i] = NULL;
        execvp(buildprogram, buildvec);