- strcat(buf, " (transient failure)");
- if (printheader)
- {
- putline(" ----- The following addresses have delivery notifications -----",
- mci);
- printheader = FALSE;
- }
+ p = "successfully delivered to mailbox";
+ }
+ else if (bitset(QEXPANDED, q->q_flags))
+ p = "expanded by alias";
+ else if (bitset(QDELAYED, q->q_flags))
+ p = "transient failure";
+ else
+ continue;
+
+ if (printheader)
+ {
+ putline(" ----- The following addresses have delivery notifications -----",
+ mci);
+ printheader = FALSE;
+ }
+
+ sprintf(buf, "%s (%s)", q->q_paddr, p);
+ putline(buf, mci);
+ if (q->q_alias != NULL)
+ {
+ strcpy(buf, " (expanded from: ");
+ strcat(buf, q->q_alias->q_paddr);
+ strcat(buf, ")");