exchangefreaks.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

URI for a public folder?

 
Post new topic   Reply to topic    exchangefreaks.com Forum Index -> MS Exchange Development
Author Message
Maury Markowitz



Joined: 14 Feb 2008
Posts: 12

PostPosted: Thu Feb 14, 2008 5:22 pm    Post subject: URI for a public folder? Reply with quote

I'm trying to download attachments from a public folder, and copy them into a
network folder for easy access in Excel. Looking over older messages in the
forum, it seems that what I should do is...

1) get the list of messages using ODBC (just because I'm in Access)
2) iterate over them and create an URI for each one
3) use that URI to retrieve the attachments

I'm stumped by (2) though. The examples that I can find are all for private
mailboxes, and most look like this commonly used example:

strURI = "http://server/exchange/username/inbox/TestMessage.eml/"

I assume that "server" is the URL to my Exchange server and that "exchange"
is a literal (?). But I'm not sure what goes after that in the case of a
public folder, I tried:

username=my name, inbox=public folder name
username=public folder name, nothing for inbox
username=public folder name, inbox=public folder name

Everything I try gets me a 404 error.

Any ideas?

Maury

Archived from group: microsoft>public>exchange>development
Back to top
View user's profile Send private message
Maury Markowitz



Joined: 14 Feb 2008
Posts: 12

PostPosted: Thu Feb 14, 2008 5:30 pm    Post subject: RE: URI for a public folder? Reply with quote

Ahhh, seconds later Google turned up the answer...

strURI = "http://server/public/foldername/TestMessage.eml/"

Ok, that's one down... now I'm curious about the credentials. Is there any
sort of anon login I can use for public folders? I'd really like to avoid
coding a password into the code.

Maury
Back to top
View user's profile Send private message
Henning Krause [MVP - Exc



Joined: 05 Aug 2007
Posts: 142

PostPosted: Fri Feb 15, 2008 2:30 am    Post subject: Re: URI for a public folder? Reply with quote

Hello,

the url to a public folder is http://servername/public/foldername.

Kind regards,
Henning

"Maury Markowitz" wrote in
message @microsoft.com...
> I'm trying to download attachments from a public folder, and copy them
> into a
> network folder for easy access in Excel. Looking over older messages in
> the
> forum, it seems that what I should do is...
>
> 1) get the list of messages using ODBC (just because I'm in Access)
> 2) iterate over them and create an URI for each one
> 3) use that URI to retrieve the attachments
>
> I'm stumped by (2) though. The examples that I can find are all for
> private
> mailboxes, and most look like this commonly used example:
>
> strURI = "http://server/exchange/username/inbox/TestMessage.eml/"
>
> I assume that "server" is the URL to my Exchange server and that
> "exchange"
> is a literal (?). But I'm not sure what goes after that in the case of a
> public folder, I tried:
>
> username=my name, inbox=public folder name
> username=public folder name, nothing for inbox
> username=public folder name, inbox=public folder name
>
> Everything I try gets me a 404 error.
>
> Any ideas?
>
> Maury
>
Back to top
View user's profile Send private message
Henning Krause [MVP - Exc



Joined: 05 Aug 2007
Posts: 142

PostPosted: Fri Feb 15, 2008 3:08 am    Post subject: Re: URI for a public folder? Reply with quote

Hello,

that depends on your server configuration.

If Integrated authentication is turned on, you can use the credentials of
the logged-on user. With basic authentication turned on you should ask the
user for a username/password. And if form based authentication is turned on
things will get complicated.

Kind regards,
Henning Krause

"Maury Markowitz" wrote in
message @microsoft.com...
> Ahhh, seconds later Google turned up the answer...
>
> strURI = "http://server/public/foldername/TestMessage.eml/"
>
> Ok, that's one down... now I'm curious about the credentials. Is there any
> sort of anon login I can use for public folders? I'd really like to avoid
> coding a password into the code.
>
> Maury

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
renaming an exchange Public folder using VBS Hello Folks, Can anyone tell me how can i rename an exchange public folders using vb script thanks in advance

EWS Exchange 2007 SP1 and Public Folder access Hi folks, i built an HTTP-Module which uses EWS to access public folders properties. I'm using Exchange 2007 SP1 (Beta 2) and each time i want to access a property of a public folder (custom property) with the FindFolder Method i get the following error f

Getting error 0x80004005 while retrieving the public folder I am getting error 0x80004005 while retrieving the public folders from exchange 2003 using the table of the I could not able to get the public folder table. Also the mapi profile used to get the public folder ta

Shared contacts and distribution lists without Public Folder Hi all, I am wanting to setup shared Contacts and Distribution lists for external contacts into either exchange or sharepoint. I've search around and has found many articles that explain how to use .net to create contacts and DLs in publi

Type mismatch when iterating Tasks in public folder Thanks in advance for any assistance. I am trying to extract all Tasks from a public folder and copy attributes to an Access table. I get through ~250 objects and then i receive a "Type Mismatch" error. Is there a way to find out exactly what type of item
Post new topic   Reply to topic    exchangefreaks.com Forum Index -> MS Exchange Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group