- if (icisname(line, "status", 6)) {
- statusput(mailp, obuf);
- ishead = 0;
+ /*
+ * Pick up the header field.
+ * If it is an ignored field and
+ * we care about such things, skip it.
+ */
+ cp = line;
+ cp2 = field;
+ while (*cp && *cp != ':' && !isspace(*cp))
+ *cp2++ = *cp++;
+ *cp2 = 0;
+ if (doign && isign(field))
+ continue;
+ /*
+ * If the field is "status," go compute and print the
+ * real Status: field
+ */
+ if (icequal(field, "status")) {
+ if (dostat) {
+ statusput(mailp, obuf, doign);
+ dostat = 0;
+ }