
ExchGetPath
ExchGetPath(path)
This function will return the container information in an address field.
- If the address type is X500, the function will return all of the information from the first instance of the "CN=" code until the last instance of the "CN=" code. If there is only one instance of the "CN=" code, the function will return NULL.
- If the address type is X400, the function will return all "OU*=" codes (residing between the "P=" and "O=" codes).
- If the address starts with "DDA:", the function will return all information after the "DDA:" code.
- If the field is blank, "UNKNOWN ADDRESS" will be returned.
Parameter
path - The address of sender/receiver (String data type).
Examples
ExchGetPath("/o=Jinfonet Software/ou=JREPORT /cn=Configuration/cn=Servers/cn=ESPRESSO/cn=Fredt") - Returns "cn=Configuration/cn=Servers/cn=ESPRESSO".
ExchGetPath("c=US; a= ; p=Jinfonet; ou1=Jenny; ou2=JReport; o=apps-wga;") - Returns "ou1=Jenny; ou2=JReport".
ExchGetpath("DDA:MS=JREPORT/JENNY/jreport") - Returns "MS=JREPORT/JENNY/jreport".
