This code fragment illustrates an intermediate processing channel using this routine to fetch recipient addresses.
int dflags, istat; const char *to, *ito; while (!(istat = mtaDequeueRecipientNext(dq, &to, NULL, 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)); |