PMDF Programmer's Reference Manual
PMDF-PRM-6.0


Previous | Contents

1.2 Enqueuing messages

Messages are introduced to the PMDF mail system by enqueuing them. Each enqueued message contains two required pieces and one optional piece: the message envelope, the message header, and the optional message body. The contents of the first two pieces, envelope and header, must be provided by the program using the API. The third piece, the message body, is optional: a message need not contain a body. Briefly, these three pieces are as follows:

Enqueued messages may be seen in the PMDF queue directories and are merely ASCII text files.6 A sample message is shown in Example 1-1 . The key pieces in that example are: the message envelope, (1) ; the message header, (2) ; and the message body, (3) .

Example 1-1 Sample mail message file


m;FRESNEL@INNOSOFT.COM (1)
MROCHEK@INNOSOFT.COM 
 
Date: Thu, 1 Apr 1992 15:01 PDT (2)
From: Fresnel the tabby cat <FRESNEL@INNOSOFT.COM> 
To: Mrochek the weiner dog <MROCHEK@INNOSOFT.COM> 
Subject: Life in the food chain 
 
Mrochek, (3)
   I've revoked your dog license, informed the AKC that your 
mother was a Pekingese, and _fixed_ you up with an appointment 
at the vet's. 
                              Fresnel 

Note:

Do not attempt to directly read from or write messages to the PMDF message queues. Always use the API routines (or callable SEND) to read and write PMDF messages. The file structure of messages in PMDF's message queues are subject to change. In addition, site specific constraints may be placed on messages in various queue directories (e.g., message size, encodings, character set usage, etc.). The API routines automatically handle constraints and other issues.

The steps required to enqueue one or more messages are as follows: