Activated Jon's attachment system by default and steamlined it.
[mmh] / uip / viamail.c
index bbae08b..76450ac 100644 (file)
@@ -75,7 +75,7 @@ main(int argc, char **argv)
 #ifdef LOCALE
        setlocale(LC_ALL, "");
 #endif
-       invo_name = r1bindex(argv[0], '/');
+       invo_name = mhbasename(argv[0]);
 
        /* foil search of user profile/context */
        if (context_foil(NULL) == -1)
@@ -218,17 +218,17 @@ via_mail(char *mailsw, char *subjsw, char *parmsw, char *descsw,
                adios("failed", "fstat of %s", tmpfil);
 
        status = 0;
-       vec[0] = r1bindex(postproc, '/');
+       vec[0] = mhbasename(postproc);
        if (verbsw)
                vec[vecp++] = "-verbose";
 
-       switch (sendsbr(vec, vecp, tmpfil, &st, 0, (char *)0, 0)) {
-               case DONE:
-               case NOTOK:
-                       status++;
-                       break;
-               case OK:
-                       break;
+       switch (sendsbr(vec, vecp, tmpfil, &st, 0)) {
+       case DONE:
+       case NOTOK:
+               status++;
+               break;
+       case OK:
+               break;
        }
 
        fclose(fp);