]> diplodocus.org Git - nmh/blobdiff - uip/sendsbr.c
Fix some typos in the comments.
[nmh] / uip / sendsbr.c
index 6373336e750b2edb8533ce02fccbb7859f9fac75..74f7dae5c6787ffddf56cf513cfaced61b8a2a02 100644 (file)
@@ -76,22 +76,12 @@ sendsbr (char **vec, int vecp, char *program, char *draft, struct stat *st,
        by longjmp. */
     volatile int nvecs = vecp;
     int *nvecsp = (int *) &nvecs;
-    int eai = 0;
 
     /*
      * Run the mimebuildproc (which is by default mhbuild) on the message
      * with the addition of the "-auto" flag
      */
 
-    /* Make sure that EAI support is set up before calling buildmimeproc. */
-    for (i = 0; i < vecp; ++i) {
-        if (strcasecmp (vec[i], "-eai") == 0) {
-            eai = 1;
-        } else if (strcasecmp (vec[i], "-noeai") == 0) {
-            eai = 0;
-        }
-    }
-
     switch (child = fork()) {
     case NOTOK:
        adios("fork", "unable to");
@@ -103,17 +93,6 @@ sendsbr (char **vec, int vecp, char *program, char *draft, struct stat *st,
        if (distfile)
            buildvec[i++] = "-dist";
        buildvec[i++] = (char *) drft;
-       if (eai) {
-           /* 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", "utf-8");
-
-           /* Add mhbuild switch to enable UTF-8 headers. */
-           buildvec[i++] = "-headerencoding";
-           buildvec[i++] = "utf-8";
-       }
        buildvec[i] = NULL;
        execvp(buildprogram, buildvec);
        fprintf(stderr, "unable to exec ");