Receiving a Correlation Document

Normally each IP or EDI message is sent in one mail. The X.400 standard allows to send one mail with more than one attachment. One attachment represents an IP or EDI message. ADDONMAIL UA-FI calls this batched messages. To configure whether you want to send one message in one mail or more messages in one mail you have to set the parameter batchIpm to NO/YES.

If you set batchIpm to YES, sendAndFetch and fetch services put all messages (which are stored in the outbound/receiver folder) together into one mail and send it to the recipient. If batchIpm is set to NO, sendAndFetch and fetch put each message into a separate mail.

In case of batchIpm is set to YES, you will get from UA-FI only one notification with the status for the mail. But this status refers to all included messages respectively all Trading Networks documents.

To set the user status of all these Trading Networks documents to the correct value, you need a list of the documents related to the mail. This is the document x400correlation. The user has nothing to do. All things are done automatically by Adapter for X.400. But the user should know what the x400correlation document is for. Otherwise he is wondering what happens in Trading Networks. This is the intention of this section.

If Adapter for X.400 sends batched messages (that is, the X.400 extended profile field batchIpm is set to YES in the Trading Networks profile), you will receive in Trading Networks a correlation document (Trading Networks document type x400correlation) from the X.400 Gateway. This correlation document contains a list of all of the messages included in one particular mail (batch). Since you will receive notifications and error messages relating only to the correlation document that represents the mail, the correlation document is necessary to relate all enclosed messages and to update their user status automatically.

When receiving a correlation document in Trading Networks, Adapter for X.400 creates a relationship between the correlation document and the first included message (Trading Networks document). Adapter for X.400 uses the status information from the received notification to update the Trading Networks user status for all enclosed messages.

When you call the sendAndFetch or fetch service for receiving of messages or notifications out of the mailbox you you will get automatically the x.400correlation documents.