]> git.marmaro.de Git - mmh/blobdiff - uip/spost.c
Minor clarifications in mhmail(1)
[mmh] / uip / spost.c
index 7a59d591a3f36ad37d6c3e5ff5e4676c08fd911a..b65e4c4227214524050055bb3779a3d5498b8011 100644 (file)
@@ -628,7 +628,6 @@ static void
 process_bccs(char *origmsg)
 {
        char *bccdraft = NULL;
-       char buf[BUFSIZ];
        struct mailname *mp = NULL;
        FILE *out = NULL;
 
@@ -640,8 +639,7 @@ process_bccs(char *origmsg)
                fprintf(out, "------------\n");
                fclose(out);
 
-               snprintf(buf, sizeof buf, "send %s", bccdraft);
-               if (system(buf) != 0) {
+               if (execprogl("send", "send", bccdraft, (char *)NULL) != 0) {
                        admonish(invo_name, "Problems to send Bcc to %s",
                                        mp->m_text);
                        unlink(bccdraft);