Previous | Contents | Index |
Set message fragmentation thresholds.
status = PMDF_set_limits
(nq_context, max_blocks, max_lines, max_to)
Argument Data type Access Mechanism nq_context context pointer read/write reference max_blocks signed longword read value max_lines signed longword read value max_to signed longword read value
status = PMDFsetLimits
(nq_context, max_blocks, max_lines, max_to)
int PMDFsetLimits(PMDF_nq **nq_context, int max_blocks, int max_lines, int max_to)
nq_context
A message enqueue context created withPMDFstartMessageEnvelope
.max_blocks
Non-negative integer specifying the maximum number of blocks (header + body) per message. A value of zero implies no limit.max_lines
Non-negative integer specifying the maximum number of message lines (header + body) per message. A value of zero implies no limit.max_to
Non-negative integer specifying the maximum number of envelope "To:" addresses per message. A value of zero implies no limit.
PMDF can be instructed to fragment "large" messages into multiple messages. Large is taken by PMDF to mean exceeds max_blocks blocks, exceeds max_lines message lines, or exceeds max_to envelope "To:" addresses. All of these limits are simultaneously imposed. When either max_blocks or max_lines is exceeded, the message is fragmented into multiple messages using MIME's message/partial mechanism. MIME compliant mailers receiving the message can automatically re-assemble the message upon receipt of all of the pieces. (PMDF channels must be marked with thedefragment
keyword for automatic message re-assembly to occur.) When the max_to limit is exceeded, the message is merely broken into multiple copies, each copy with an envelope "To:" address list of length less than or equal to max_to. Note that the size of a block in bytes is given by the PMDF option file entryBLOCK_SIZE
. When not specified in an option file, the default value of 1024 bytes is used. The functionPMDFgetBlockSize
should be used to determine the current block size. Settings chosen withPMDFsetLimits
only affect the specified message enqueue context and can be changed with further calls toPMDFsetLimits
. By default, no limits are imposed: max_blocks = max_lines = max_to = 0.
PMDF__OK Normal, successful completion. PMDF__BADCONTEXT Illegal or corrupt context. Limits were not changed.
Previous | Next | Contents | Index |