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
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;
}
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
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);
case QUOTEDPRINTSW:
header_encoding = CE_QUOTED;
break;
- case EIGHTBITSW:
+ case UTF8SW:
header_encoding = CE_8BIT;
break;
default:
/* 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 ();
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);