WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

ADSI
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Add More than One Othermailbox to Account

Keywords: 	 Add More than One Othermailbox to Account

Question:

I been using the following to set the othermailbox properties. At this time I need to be able to add two othermailbox to the account. However when I add another entry, the new one just over writes the first one. Is there any way to add more then one othermailbox to an account.
msaddr="MS$%domainname%/%site%/%usersid%"
dsSetProperty(sMailBoxPath, "otherMailbox", MSaddr)

Answer:

I believe that othermailboxes is a tab delimited property...

You'll have to get the property first add a tab and then add your new address try something like:

msaddr="MS$%domainname%/%site%/%usersid%"
oldaddr=dsGetProperty(sMailBoxPath, "otherMailbox", MSaddr)
addr_to_add=StrCat(oldaddr, @TAB, msaddr)
dsSetProperty(sMailBoxPath, "otherMailbox", addr_to_add)

Article ID:   W15374
File Created: 2003:05:13:11:27:24
Last Updated: 2003:05:13:11:27:24