Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Thu, 14 Feb 2008 12:22:02 -0800,    group: microsoft.public.exchange.development        back       


URI for a public folder?   
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
date: Thu, 14 Feb 2008 12:22:02 -0800   author:   Maury Markowitz

RE: URI for a public folder?   
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
date: Thu, 14 Feb 2008 12:30:00 -0800   author:   Maury Markowitz

Re: URI for a public folder?   
Hello,

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

Kind regards,
Henning

"Maury Markowitz"  wrote in 
message news:48C909C2-31FB-472F-9D02-EE1090A41BCA@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
>
date: Thu, 14 Feb 2008 21:30:26 +0100   author:   Henning Krause [MVP - Exchange]

Re: URI for a public folder?   
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 news:8A728124-D1E5-4431-8C65-0CE7FB896562@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
date: Thu, 14 Feb 2008 22:08:34 +0100   author:   Henning Krause [MVP - Exchange]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us