Rewind a message file back to the start of its message header.
argument informationstatus = PMDF_rewind_message (dq_context)
| Argument | Data type | Access | Mechanism |
|---|---|---|---|
| dq_context | context pointer | read/write | reference |
argument informationstatus = PMDFrewindMessage (dq_context)
int PMDFrewindMessage (dq_context)
PMDF_dq **dq_context;
dq_context
A message dequeue context created with PMDF_dequeue_initialize.
PMDF_rewind_message will "rewind" a message file back to the start of its message header. This routine may be called any time after all of the envelope To: addresses have been read with PMDF_get_recipient and prior to dequeuing or deferring the message. After PMDF_rewind_message has been called, the message header may be read with either PMDF_read_header, PMDF_read_line, or PMDF_read_text.Return Values
| PMDF__OK | Normal, successful completion. |
| PMDF__BADCONTEXT | Illegal or corrupt context. Message was not rewound. |
| PMDF__NO | There is some sort of inconsistency in the message file; the message cannot be rewound. |