X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Frepl.c;h=e5fbc0ffaf8bb7f79a38ff3524e86046ee8bb4a6;hb=2f43405ca3cccdfc56faca7a8b6b0d6913cf45aa;hp=462498e9397843b76c4df86a950e3970a6cdd040;hpb=5f2b39344cca1086c975d47b730929d8f1904214;p=mmh diff --git a/uip/repl.c b/uip/repl.c index 462498e..e5fbc0f 100644 --- a/uip/repl.c +++ b/uip/repl.c @@ -143,9 +143,7 @@ main(int argc, char **argv) filter = getcpy(etcpath(mhlreply)); -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ @@ -575,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"); } }