X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Frepl.c;h=e5fbc0ffaf8bb7f79a38ff3524e86046ee8bb4a6;hb=04e93dabf152cc30d0aeb043d65f911ef765a176;hp=9c9e5ce9e247eb6400d500f858d4dd53668f608c;hpb=ccf4f175ef4c4e7522f9510a4a1149c15d810dd9;p=mmh diff --git a/uip/repl.c b/uip/repl.c index 9c9e5ce..e5fbc0f 100644 --- a/uip/repl.c +++ b/uip/repl.c @@ -573,11 +573,11 @@ finished: /* add an attachment header */ char buffer[BUFSIZ]; - snprintf(buffer, sizeof buffer, "anno -append -nodate '%s' " - "-comp '%s' -text '+%s %s'", - drft, - attach_hdr, mp->foldpath, m_name(mp->lowsel)); - if (system(buffer) != 0) { + snprintf(buffer, sizeof buffer, "+%s %s", + mp->foldpath, m_name(mp->lowsel)); + if (execprogl("anno", "anno", "-append", "-nodate", + drft, "-comp", attach_hdr, "-text", buffer, + (char *)NULL) != 0) { advise(NULL, "unable to add attachment header"); } }