Previous | Contents | Index |
Write a "From:" header line to a message being enqueued.
status = PMDF_write_from (nq_context, from)
Argument Data type Access Mechanism nq_context context pointer read/write reference from descriptor read reference
status = PMDFwriteFrom
(nq_context, from, from_len)
int PMDFwriteFrom(PMDF_nq **nq_context, char *from, int from_len)
nq_context
A message enqueue context created withPMDFstartMessageEnvelope
.from
Envelope "From:" address for the message to be enqueued. Length can not exceedALFA_SIZE
bytes.from_len
Length in bytes of the envelope "From:" address.
PMDFwriteFrom
will output a "From:" header line to a message header. The address cited in the header line will be that supplied with the from argument.PMDFwriteFrom
should be called afterPMDFstartMessageHeader
and prior to callingPMDFstartMessageBody
. If it is called afterPMDFstartMessageBody
, then it's output will become part of the message body.
PMDF__OK Normal, successful completion. PMDF__BADCONTEXT Illegal or corrupt context. "Date:" header line not written. PMDF__INVSTRDES Invalid string descriptor for from: descriptor has an invalid value in its DSC$B_CLASS field. Header line not written. PMDF__STRTRUERR The from input string is too long. Header line not written.
Previous | Next | Contents | Index |