The following code fragment illustrates how this routine is used to retrieve the delivery flags and intermediate recipient address for each recipient address.
int dflags, istat; const char *to, *ito; while (!(istat = mtaDequeueRecipientNext(dq, &to, NULL, 0))) { mtaDequeueInfo(dq, MTA_DELIVERY_FLAGS, &dflags, MTA_IRCPT_TO, &ito, NULL, 0); printf("Delivery flags: %d\n" "Intermediate recipient address: %s\n", dflags, ito); } if (istat != MTA_EOF) printf("An error occured; %s\n", mtaStrError(istat)); |