X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;ds=sidebyside;f=uip%2Frepl.c;h=be4eb402262cf2626dc7253ba300d8a509afeef4;hb=aed384169af5204b8002d06e7a22f89197963d2d;hp=3cba5120b0b68cb2309bfc6dac1ed4b1689a9f4c;hpb=f9444e331ec2a523098d72bdb98d08728488f9cc;p=mmh diff --git a/uip/repl.c b/uip/repl.c index 3cba512..be4eb40 100644 --- a/uip/repl.c +++ b/uip/repl.c @@ -594,9 +594,13 @@ finished: /* add an attachment header */ char buffer[BUFSIZ]; - snprintf(buffer, sizeof buffer, "+%s %s", - mp->foldpath, m_name(mp->lowsel)); - annotate(drft, attach_hdr, buffer, 0, -2, 1, 0); + 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) { + advise(NULL, "unable to add attachment header"); + } } /* return dynamically allocated buffers */