struct msgs *mp = NULL;
FILE *in;
- filter = getcpy(etcpath(mhlreply));
-
#ifdef MHE
int buildsw = 0;
#endif /* MHE */
+ filter = getcpy(etcpath(mhlreply));
+
#ifdef LOCALE
setlocale(LC_ALL, "");
#endif
/* 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 */