Hi all, I'm having a great deal of difficulty using webDAV to get the .eml file of the message. I can get the messages that have changed since the last time I looked just fine with a nice little search query, but when i try and download the returned message I get a Bad Request Error and the url that I'm getting doesn't look at all like the one that OWA uses to view the actual message. Here's what I'm getting: From the a:href property returned by the webDav request: https://<ServerAddress>/Exchange/jhancock/Inbox/Test%207.EML From the http://schemas.microsoft.com/exchange/permanenturl: https://<ServerAddress>/Exchange/jhancock/-FlatUrlSpace-/684f651d98ed2148a50e04aded4dc8e9-5643a8e73f/684f651d98ed2148a50e04aded4dc8e9-63aad5165a From OWA: https://<ServerAddress>/owa/?ae=Item&a=Open&t=IPM.Note&id=RgAAAADlji%2fZp3owQLIuCh92D0gKBwBoT2UdmO0hSKUOBK3tTcjpAFZDqOc%2fAABoT2UdmO0hSKUOBK3tTcjpAFZDqO2VAAAJ If I put any of those into internet explorer (I've turned off forms authentication for now and am just using basic auth) only the OWA one works. The rest bring up the owa interface with a cannot be found error in the message preview area. My understanding is that the first one if done with a httpwebrequest and a get as the method should download the .eml file intact. Is that not so? How do I reliably get the .eml file from the server? What am I doing wrong? Thanks!
Hello, if you want do download the .eml file, you'll have to add a "Translate: f" header to your request. This prevents OWA from kicking in. Kind regards, Henning wrote in message news:39878450-29b9-481b-9f25-96ca24986c2f@8g2000hse.googlegroups.com... > Hi all, I'm having a great deal of difficulty using webDAV to get > the .eml file of the message. > > I can get the messages that have changed since the last time I looked > just fine with a nice little search query, but when i try and download > the returned message I get a Bad Request Error and the url that I'm > getting doesn't look at all like the one that OWA uses to view the > actual message. > > Here's what I'm getting: > > From the a:href property returned by the webDav request: > > https://<ServerAddress>/Exchange/jhancock/Inbox/Test%207.EML > > From the http://schemas.microsoft.com/exchange/permanenturl: > > https://<ServerAddress>/Exchange/jhancock/-FlatUrlSpace-/684f651d98ed2148a50e04aded4dc8e9-5643a8e73f/684f651d98ed2148a50e04aded4dc8e9-63aad5165a > > From OWA: > > https://<ServerAddress>/owa/?ae=Item&a=Open&t=IPM.Note&id=RgAAAADlji%2fZp3owQLIuCh92D0gKBwBoT2UdmO0hSKUOBK3tTcjpAFZDqOc%2fAABoT2UdmO0hSKUOBK3tTcjpAFZDqO2VAAAJ > > > If I put any of those into internet explorer (I've turned off forms > authentication for now and am just using basic auth) only the OWA one > works. The rest bring up the owa interface with a cannot be found > error in the message preview area. > > My understanding is that the first one if done with a httpwebrequest > and a get as the method should download the .eml file intact. Is that > not so? > > How do I reliably get the .eml file from the server? What am I doing > wrong? > > Thanks!
Thanks! Worked like a charm!
Thanks! On 10 Mrz., 20:31, "Henning Krause [MVP - Exchange]" wrote: > Hello, > > if you want dodownloadthe .eml file, you'll have to add a "Translate: f" > header to your request. This prevents OWA from kicking in. > > Kind regards, > Henning > > wrote in message > > news:39878450-29b9-481b-9f25-96ca24986c2f@8g2000hse.googlegroups.com... > > > > > Hi all, I'm having a great deal of difficulty usingwebDAVto get > > the .eml file of the message. > > > I can get the messages that have changed since the last time I looked > > just fine with a nice little search query, but when i try anddownload > > the returned message I get a Bad Request Error and the url that I'm > > getting doesn't look at all like the one that OWA uses to view the > > actual message. > > > Here's what I'm getting: > > > From the a:href property returned by thewebDavrequest: > > > https://<ServerAddress>/Exchange/jhancock/Inbox/Test%207.EML > > > From thehttp://schemas.microsoft.com/exchange/permanenturl: > > > https://<ServerAddress>/Exchange/jhancock/-FlatUrlSpace-/684f651d98ed2148a50e04aded4dc8e9-5643a8e73f/684f651d98ed2148a50e04aded4dc8e9-63aad5165a > > > From OWA: > > > https://<ServerAddress>/owa/?ae=Item&a=Open&t=IPM.Note&id=RgAAAADlji%2fZp3owQLIuCh92D0gKBwBoT2UdmO0hSKUOBK3tTcjpAFZDqOc%2fAABoT2UdmO0hSKUOBK3tTcjpAFZDqO2VAAAJ > > > If I put any of those into internet explorer (I've turned off forms > > authentication for now and am just using basic auth) only the OWA one > > works. The rest bring up the owa interface with a cannot be found > > error in the message preview area. > > > My understanding is that the first one if done with a httpwebrequest > > and a get as the method shoulddownloadthe .eml file intact. Is that > > not so? > > > How do I reliably get the .eml file from the server? What am I doing > > wrong? > > > Thanks!- Zitierten Text ausblenden - > > - Zitierten Text anzeigen -