7 /* recipient delivery completion
9 /* #include <deliver_completed.h>
11 /* void deliver_completed(stream, offset)
15 /* deliver_completed() crosses off the specified recipient from
16 /* an open queue file. A -1 offset means ignore the request -
17 /* this is used for delivery requests that are passed on from
18 /* one delivery agent to another.
20 /* Fatal error: unable to update the queue file.
24 /* The Secure Mailer license must be distributed with this software.
27 /* IBM T.J. Watson Research
29 /* Yorktown Heights, NY 10598, USA
36 /* Utility library. */
45 #include "deliver_completed.h"
47 /* deliver_completed - handle per-recipient delivery completion */
49 void deliver_completed(VSTREAM
*stream
, long offset
)
51 const char *myname
= "deliver_completed";
57 msg_panic("%s: bad offset %ld", myname
, offset
);
59 if (rec_put_type(stream
, REC_TYPE_DONE
, offset
) < 0
60 || vstream_fflush(stream
))
61 msg_fatal("update queue file %s: %m", VSTREAM_PATH(stream
));