Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / January 2005

Tip: Looking for answers? Try searching our database.

Using a Public Folder as a Mailbox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
nkesu - 04 Nov 2004 04:28 GMT
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,
Eric Legault [MVP - Outlook] - 04 Nov 2004 22:04 GMT
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/comcpnt
s_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

--
Eric Legault - B.A, MCP, MCSD, Outlook MVP
--------------------------------------------------
{Private e-mails ignored}
Job: http://www.imaginets.com
Blog: http://blogs.officezealot.com/legault/

> All,
>
[quoted text clipped - 13 lines]
>
> TIA,
nkesu - 05 Nov 2004 13:18 GMT
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.

> 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
[quoted text clipped - 34 lines]
> >
> > TIA,
Eric Legault [MVP - Outlook] - 05 Nov 2004 16:44 GMT
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/details.aspx?FamilyId=463F0649-6274-45EA-B647
-E6BE1425C893&displaylang=en


Also try the microsoft.public.exchange.development newsgroup.

--
Eric Legault - B.A, MCP, MCSD, Outlook MVP
--------------------------------------------------
{Private e-mails ignored}
Job: http://www.imaginets.com
Blog: http://blogs.officezealot.com/legault/

> Thanks for the information.
>
[quoted text clipped - 41 lines]
> > >
> > > TIA,
nkesu@hotmail.com - 06 Jan 2005 04:42 GMT
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

> 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/details.aspx?FamilyId=463F0649-6274-45EA-B647
-E6BE1425C893&displaylang=en

Eric Legault [MVP - Outlook] - 06 Jan 2005 04:51 GMT
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 Legault - B.A, MCP, MCSD, Outlook MVP
--------------------------------------------------
{Private e-mails ignored}
Job: http://www.imaginets.com
Blog: http://blogs.officezealot.com/legault/

> Eric,
>
[quoted text clipped - 37 lines]
> >
> http://www.microsoft.com/downloads/details.aspx?FamilyId=463F0649-6274-45EA-B647
-E6BE1425C893&displaylang=en
nkesu@hotmail.com - 06 Jan 2005 05:03 GMT
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/details.aspx?FamilyId=463F0649-6274-45EA-B647
-E6BE1425C893&displaylang=en

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.