TRANSFER Programming Manual
Basic Steps for Receiving an X400 Message
X400 Services
069138, Update 1 to 040970 Tandem Computers Incorporated 6–13
Basic Steps for Receiving
an X400 Message
The basic steps for receiving a package from an X400 originator are very similar to the
steps described in Section 9, “Designing and Writing a Client,” for receiving a package
from a TRANSFER originator. The main difference is that you use the GET-ITEM-
DES-C20 UOW to determine if the message is an X400 message. If the X400-ORIG flag
in the item descriptor equals Y, the package is an X400 package.
As with other TRANSFER packages, you can display the originator, the components,
and the recipient list for the package. The minimum steps to process an X400 message
are listed below, by UOW:
1. START-SESSION. Establish TRANSFER context, and see what folders are
defined.
2. SCAN-FOLDER. Request a list of item IDs. You can call this UOW repeatedly if
there are many item IDs.
3. GET-ITEM-DES-C20. Get information about the message—priority, notification
requests, and so on. If the X400-ORIG flag is Y, the message came from an X400
originator.
4. GET-X400-ORIG. Get the X400 originator name.
5. GET-ITEM-COMPNT-A01. (Optional.) Get associated messages if attachments
are indicated in the item descriptor.
6. GET-ITEM-REC. If you are following the PS Mail convention, retrieve the subject,
text, recipients, and originator by record type.
7. GET-X400-RECIP. List recipients.
8. ACK-RECEIPT. (Optional.) Acknowledges that the message was read and
triggers receipt notification.
9. END-SESSION. Formally end the session. Otherwise, it will expire later.