-
- l = NULL;
- n = 0;
-
- while (*++argp != NULL) {
- if (strcmp(*argp, "-l") == 0)
- l = "/";
-
- else if (strcmp(*argp, "-n") == 0)
- n = 1;
-
- else if (strcmp(*argp, "-ln") == 0 ||
- strcmp(*argp, "-nl") == 0) {
- l = "/";
- n = 1;
- } else {
- n = -1;
- break;
- }
+ snprintf(buf, sizeof buf, "anno -list -comp '%s' "
+ "-number all -text IGNORE '%s'",
+ attach_hdr, drft);
+ if (system(buf) != 0) {
+ advise(NULL, "Could not list attachment headers.");