X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/dc28e9494cfcba39ae69d1fa441500a32b49416e..4d19fdc6dedc121c6ef63bd646dc50d64a18f45d:/uip/mhbuild.c diff --git a/uip/mhbuild.c b/uip/mhbuild.c index 58b37c4e..87252a7c 100644 --- a/uip/mhbuild.c +++ b/uip/mhbuild.c @@ -46,7 +46,7 @@ X("version", 0, VERSIONSW) \ X("help", 0, HELPSW) \ X("debug", -5, DEBUGSW) \ - X("dist", -4, DISTSW) \ + X("dist", 0, DISTSW) \ #define X(sw, minchars, id) id, DEFINE_SWITCH_ENUM(MHBUILD); @@ -56,9 +56,11 @@ DEFINE_SWITCH_ENUM(MHBUILD); DEFINE_SWITCH_ARRAY(MHBUILD, switches); #undef X +/* utf-8 is for Email Address Internationalization, using SMTPUTF8. */ #define MIMEENCODING_SWITCHES \ X("base64", 0, BASE64SW) \ X("quoted-printable", 0, QUOTEDPRINTSW) \ + X("utf-8", 0, UTF8SW) \ #define X(sw, minchars, id) id, DEFINE_SWITCH_ENUM(MIMEENCODING); @@ -244,6 +246,9 @@ main (int argc, char **argv) case QUOTEDPRINTSW: header_encoding = CE_QUOTED; break; + case UTF8SW: + header_encoding = CE_8BIT; + break; default: adios (NULL, "Internal error: algorithm %s", cp); }