Table of Contents

Name

immd_dequeue - Removes a message from the queue

Synopsis

#include <imta.h>

int immd_dequeue(immd_t md);

Description

After successfully processing a message, the message should be deleted from the message queues with immd_dequeue().

If a permanent error has occurred while processing a message, then the message should be returned to its originator with immd_return() and then deleted from the message queued with immd_dequeue() . See the «SIMS SDK Guide» for further discussion on this topic.

Remember that once immd_dequeue() is called, the message is definitely removed from the message queue and the associated dequeue context is deleted. It is therefore crucial that a message not be dequeued with immd_dequeue() until after it has been successfully processed or found to be permanently undeliverable. Not doing so would result in lost mail.

Return Values

immd_dequeue() returns IMRC_OK when successful, and one of the following error codes otherwise:

IMRC_BAD_CONTEXT
The dequeue context md has not been initialized or has been corrupted. Make sure immd_init() has been previously called.

A textual version reason for the failure can be obtained by calling imta_error() immediately afterwards.

Attributes

_______________________________________

Attribute Type
Attribute Value _______________________________________
Architecture
sparc, x86 _______________________________________
Availability
SUNWimsdk _______________________________________
MT-Level
MT-Safe _______________________________________
Interface Stability
Stable _______________________________________ |
|
|

SunOS 5.5.1 Last change: 05 Jan 1998 1

immd_dequeue(3)
C Library Functions immd_dequeue(3)

See Also

immd_init(3) , immd_return(3)

SunOS 5.5.1 Last change: 05 Jan 1998 2


Table of Contents