7 /* deal with mail that will not be delivered
11 /* QMGR_QUEUE *qmgr_bounce_recipient(message, recipient, dsn)
12 /* QMGR_MESSAGE *message;
13 /* RECIPIENT *recipient;
16 /* qmgr_bounce_recipient() produces a bounce log record.
17 /* Once the bounce record is written successfully, the recipient
18 /* is marked as done. When the bounce record cannot be written,
19 /* the message structure is updated to reflect that the mail is
24 /* Open queue file with the message being bounced.
26 /* The recipient that will not be delivered.
28 /* Delivery status information. See dsn(3).
30 /* Panic: consistency check failure. Fatal: out of memory.
34 /* The Secure Mailer license must be distributed with this software.
37 /* IBM T.J. Watson Research
39 /* Yorktown Heights, NY 10598, USA
46 /* Utility library. */
51 #include <deliver_completed.h>
53 /* Application-specific. */
57 /* qmgr_bounce_recipient - bounce one message recipient */
59 void qmgr_bounce_recipient(QMGR_MESSAGE
*message
, RECIPIENT
*recipient
,
65 status
= bounce_append(message
->tflags
, message
->queue_id
,
66 QMGR_MSG_STATS(&stats
, message
), recipient
,
70 deliver_completed(message
->fp
, recipient
->offset
);
72 message
->flags
|= status
;