Previous | Contents | Index |
Write a "Subject:" header line to a message being created.
status = PMDF_write_subject (nq_context, subject)
Argument Data type Access Mechanism nq_context context pointer read/write reference subject descriptor read reference
status = PMDFwriteSubject
(nq_context, subject, subject_len)
int PMDFwriteSubject(PMDF_nq **nq_context, char *subject, int subject_len)
nq_context
A message enqueue context created withPMDFstartMessageEnvelope
.subject
Text to place in a "Subject:" header line; should not include the leading "Subject: ". Length can not exceed 65,535 bytes.subject_len
Length in bytes of subject.
PMDFwriteSubject
is a convenience routine for writing a "Subject:" header line to a message. The call
is equivalent to the call
PMDFwriteSubject(nq_context, "Meeting at 10:30");
PMDFwriteLine(nq_context, "Subject: Meeting at 10:30");PMDFwriteSubject
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. "Subject:" header line not written. PMDF__INVSTRDES Invalid string descriptor for subject: descriptor has an invalid value in its DSC$B_CLASS field. No "Subject:" line written.
Previous | Next | Contents | Index |