Sun Java System Messaging Server 6 2005Q4 MTA Developer's Reference

Example

There are three code examples, each showing variations on deferring a message.

The following code fragment shows how to use this routine to defer processing of a message until a later time by calling the routine with the MTA_ABORT item code:

mtaDequeueMessageFinish(dq_ctx, MTA_ABORT, 0);

The following code fragment shows how to use this routine to defer processing of a message and setting the disposition:

mtaDequeueMessageFinish(dq_ctx, MTA_DISP, MTA_DISP_DEFERRED, 0);

The following code fragment shows how to use this routine to defer processing of a message with a text string explaining the reason for the deferral:


mtaDequeueMessageFinish(dq_ctx, MTA_ABORT, MTA_REASON,
                        "Temporary network error", 0, 0);