X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Frepl.c;h=e5fbc0ffaf8bb7f79a38ff3524e86046ee8bb4a6;hp=9c9e5ce9e247eb6400d500f858d4dd53668f608c;hb=8bf8e1e29df17658c3d77629e17f88bf9159e21b;hpb=0127c00f735b9e38608676b9f7bd3c6e38a7ffb4 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"); } }