- annolist(drft, attach_hdr, l, n);
+ snprintf(buf, sizeof buf,
+ "anno -list -comp '%s' "
+ "%s%s '%s'",
+ attach_hdr,
+ n ? "-number all" : "",
+ l ? "-text IGNORE " : "",
+ drft);
+ if (system(buf) != 0) {
+ advise(NULL, "Could not list attachment headers.");
+ }