5
/* deal with mail that will not be delivered
9
/* QMGR_QUEUE *qmgr_bounce_recipient(message, recipient, format, ...)
10
/* QMGR_MESSAGE *message;
11
/* QMGR_RCPT *recipient;
12
/* const char *format;
14
/* qmgr_bounce_recipient() produces a bounce log record.
15
/* Once the bounce record is written successfully, the recipient
16
/* is marked as done. When the bounce record cannot be written,
17
/* the message structure is updated to reflect that the mail is
22
/* Open queue file with the message being bounced.
24
/* The recipient that will not be delivered.
26
/* Free-format text that describes why delivery will not happen.
28
/* Panic: consistency check failure. Fatal: out of memory.
32
/* The Secure Mailer license must be distributed with this software.
35
/* IBM T.J. Watson Research
37
/* Yorktown Heights, NY 10598, USA
45
/* Utility library. */
50
#include <deliver_completed.h>
52
/* Application-specific. */
56
/* qmgr_bounce_recipient - bounce one message recipient */
58
void qmgr_bounce_recipient(QMGR_MESSAGE *message, QMGR_RCPT *recipient,
59
const char *format,...)
65
status = vbounce_append(message->tflags, message->queue_id,
66
recipient->orig_rcpt, recipient->address,
67
recipient->offset, "none", message->arrival_time,
72
deliver_completed(message->fp, recipient->offset);
74
message->flags |= status;