KB Article #179575

How to get the filename from the SUBJECT header of an AS2 message

Problem

Some AS2 applications tend to send the filename in the SUBJECT header of the AS2 messages. By default ST doesn't look for the filename in this header this may cause the actual filename to not be properly resolved when received by ST.

Resolution

To enable SecureTransport to get the filename from the SUBJECT header of the AS2 message follow the steps below.


1. (OPTIONAL GLOBAL SETTING) Locate the As2.Receiver.Storage.format option in the Admin GUI -> Server Configuration page and change it:


from:


sender.as2_id, receiver.as2_id, headers.message-id


to:


headers.subject


Alternatively, you can simply add it to the list of options:


headers.subject, sender.as2_id, receiver.as2_id, headers.message-id


Save the configuration option and restart the TM service and the AS2 service.


2. In the AS2 Transfer Site, under the Receive Options section select the Receive File As and input the following variable ${env['DXAGENT_HTTP_SUBJECT']}.


3. You should now extract the filename from the SUBJECT header and see it in File Tracking and on the file system when the AS2 partner sends the filename in the SUBJECT header of the AS2 message.