Using a Public Folder as a Mailbox

  • Thread starter Thread starter nkesu
  • Start date Start date
N

nkesu

All,

Is it possible to implement the functionality ( i.e setting the public
folder as a mailbox : Article :
http://www.msexchange.org/articles/MF021.html ) from a client side
(VB) application.

What we are trying to do is set all the permissions as shown in the
article from client side.

1. Is it possible?
2. What will be an appropriate libaray? CDO?
3. Is it possible to use the Zip file in the page?

Looking for pointers, samples...

TIA,
 
Sorry, I'm confused. How do you envision turning this into a "client side"
solution? The article provides instructions on how to configure Exchange to
do all this for you.

Or do you just want to automate setting permissions on a Public Folder? To
do that, you need to use the ACL Component:

http://msdn.microsoft.com/library/default.asp?URL=/library/psdk/exchserv/comcpnts_8f04.htm

Also see this example for reading permissions:

Accessing Public Folder Permissions Programmatically:
http://blogs.officezealot.com/legault/archive/2004/03/16/216.aspx
 
Thanks for the information.

We have a VB app which creates the public folders and assign an email
id for each public folder. Right now exchange admin sets each public
folder, created by the app, as a mail box. This admin process needs to
be automated. That was the plan. Hope this answers your question.
 
Eric,

Thanks for the information. After downloading the SDK, I went thro it
and got stuck again.

I am trying to follow the following samples from the SDK :
1. CreateUserURL and
2. CreateMailboxCDOPerson

Questions:
1. Do I have to use the CreateUserURL? Why is this step necessary?

CreateMailboxCDOPerson function

2. Is the CDO.Person, similar to CDO.Folder? Can I use the CDO.Folder
instead of CDO.Person?

3. A string variable ("CN=Mailbox Store (MYSTORE),CN=First Storage
Group,
CN=InformationStore,CN=MYSTORE,CN=Servers,
CN=First Administrative Group,CN=Administrative Groups,
CN=IASI,CN=Microsoft Exchange,CN=Services,CN=Configuration,
DC=mydomain,DC=fourthcoffee,DC=com") is used in the sample. Now, where
do I get the same information in the exchange? Do I have to specify the
whole string?

4. What is the significance of the 'ContainerName'? For a public
folder, can I leave it blank or should I set it to 'All Public
Folders'?

5. What should be the 'FirstName' and 'LastName' for a public folder?

Thanks
 
Sorry, I only know CDOEXM at a high level and haven't played with it much.
As I said in my last post, your topic is more suited to the
microsoft.public.exchange.development newsgroup; this forum is focused on
Outlook VBA.
 
Eric,

Thanks for the information. I downloaded the SDK and looked the sample
scripts and got confused.

I found IMailboxStore.CreateMailbox method from the SDK. However, I am
not sure how to proceed.

Example from SDK : ( if you have the SDK search for the following
function)
Sub CreateMailboxCDOPerson(strFirstName As String, _
strLastName As String, _
strHomeMDBUrl As String)
' strHomeMDBUrl should look like this
' strHomeMDBUrl = "CN=Mailbox Store (MYSTORE),CN=First Storage Group,
' CN=InformationStore,CN=MYSTORE,CN=Servers,
' CN=First Administrative Group,CN=Administrative
Groups,
' CN=IASI,CN=Microsoft
Exchange,CN=Services,CN=Configuration,
' DC=mydomain,DC=fourthcoffee,DC=com"

Questions:

1. Now, where do I get the strHomeMDBURL ( from exchange)? Do I have to
specify the whole string? i.e from the 'com' level?

2. Since I am have to work on a folder, rather than a person, what
should I set for the FirstName and LastName.

3. There is a 'ContainerName' in the function. For a public folder,
what should be the container name? Is it 'All Public Folders'?
strContainerName = "Users"
' Create a URL for the user.
CreateUserURL strURL, strContainerName, False, strUserName
4. Do I have to create a url for the folder? why is it required?

Looking for guidance again.

Thanks

Ah, okay. You would need to use the CDOEXM API to modify the folder
properties, but use ACL for permissions. Full info is in the SDK:

Download details: Exchange 2003 SDK Documentation and Samples March 2004:
http://www.microsoft.com/downloads/...49-6274-45EA-B647-E6BE1425C893&displaylang=en
 
Back
Top