Return a message to its originator.FORMAT
int POPSTORE_message_return (user_context, message_index,
reason, reason_len)
POPSTORE_user_context *user_context;
int message_index;
char *reason;
int reason_len;
User context returned by a previous call to POPSTORE_user_begin_d. Used for input only.
user_contextIndex of the message to return. Used for input only.
message_indexPointer to a string containing a brief explanation explaining why the message is being returned. Used for input only.
reasonLength in bytes of the string pointed at by
reason_lenreason. Used for input only.
Call POPSTORE_message_return to return a user's message to its originator. The reason the message is being returned may be indicated with theReturn Valuesreasonargument. If a null value is specified forreasonor a zero length forreason_len, then the reason "Unable to deliver: recipient has not downloaded this message after X days" will be given. The index of the message to return is specified withmessage_indexwhere the first message has index value 1, the second index value 2, and so on.
| POPSTORE_SUCCESS | Normal, successful completion. |
| POPSTORE_BADMSG | Underlying message file is corrupted or otherwise unreadable. |
| POPSTORE_BADMSGID | Message index is less than 1 or greater than
user_context->message_count.
|
| POPSTORE_DELETED | Message has been marked for deletion. |
| POPSTORE_FILOPNERR | Unable to open the underlying message file. |
| POPSTORE_INSUFPRIV | The process lacks SYSLCK privilege (OpenVMS only). |
| POPSTORE_LCKOPNERR | Unable to obtain lock information for the profile file. |
| POPSTORE_LOCKERROR | Unable to obtain a lock for the profile file. |
| POPSTORE_NULLCONTEXT |
user_context context is null.
|
| POPSTORE_NULLMSGLIST |
user_context->messages is null.
|
| POPSTORE_NULLPROFILE |
user_context->profile context is null.
|
| POPSTORE_TOOLONG | File specification for the underlying message file is too long. |