Description
This function will return the container information in an address field.
Arguments
Path is the Address of sender/receiver (string data type).
Action
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.
Examples
Field = /o=Business Objects/ou=CRYSTALNT/
cn=Configuration/cn=Servers/cn=ESPRESSO/cn=Fredt
ExchGetPath ({Field})
Returns "cn=Configuration/cn=Servers/cn=ESPRESSO".
Field - c=US; a= ; p=Microsoft; ou1=James;
ou2=RichCorp; o=apps-wga;
dda:smtp=James@Rich.com
ExchGetPath({Field})
Returns "ou1=James; ou2=Richcorp".
Field = DDA:MS=CRYSTAL/JAMES/crystal
ExchGetpath9{Field})
Returns "MS=CRYSTAL/JAMES/crystal".