|
|
|
date: Tue, 28 Feb 2006 07:55:27 -0800,
group: microsoft.public.exchange2000.development
back
BMove won't work in Exchange if using permanenturl
I'm trying to perform a webDav call to move selected messages into a
destination folder and does anybody know why BMOVE will work when i use the
regular folder name as the request parameters, and it won't work when i use
the folder permanentURL ?
Below you can see the two requests, the first one does NOT work, and the
second one works ok:
BMOVE
/exchange/lucianoresende/-FlatUrlSpace-/9414c48bbd498144b7b7238535deb823-233e2/ HTTP/1.1
Content-Type: text/xml
Host: pir03pc17.westford5.notesdev.ibm.com
Authorization: Basic d2VzdGZvcmQ1XGx1Y2lhbm9yZXNlbmRlOnBhc3N3MHJk
Destination:
/exchange/lucianoresende/-FlatUrlSpace-/9414c48bbd498144b7b7238535deb823-233e5/
User-Agent: Java/1.4.2
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 93
<?xml version='1.0'?>
<move xmlns='DAV:'>
<target>
<href>delete%20999.EML</href>
</target>
</move>
BMOVE /exchange/lucianoresende/inbox/ HTTP/1.1
Content-Type: text/xml
Host: pir03pc17.westford5.notesdev.ibm.com
Authorization: Basic d2VzdGZvcmQ1XGx1Y2lhbm9yZXNlbmRlOnBhc3N3MHJk
Destination: /exchange/lucianoresende/deleted%20items/
User-Agent: Java/1.4.2
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 93
<?xml version='1.0'?>
<move xmlns='DAV:'>
<target>
<href>delete%20999.EML</href>
</target>
</move>
--
- Luciano Resende
--
- Luciano Resende
date: Tue, 28 Feb 2006 07:55:27 -0800
author: Luciano Resende am
Re: BMove won't work in Exchange if using permanenturl
Unfortunately by design. Permanent a.k.a. Flat URLs can't be used as:
- destination of *MOVE or *COPY operations
- a source for a DELETE
I assume that the application you're writing has access to the DAV:href of
the folder, so why use permanent URLs in this case?
Cheers,
- Karim
"Luciano Resende" <luck@newsgroups.nospam> wrote in message
news:0BDAB177-5236-4A4A-B40F-76D75C7E920E@microsoft.com...
> I'm trying to perform a webDav call to move selected messages into a
> destination folder and does anybody know why BMOVE will work when i use
> the
> regular folder name as the request parameters, and it won't work when i
> use
> the folder permanentURL ?
>
> Below you can see the two requests, the first one does NOT work, and the
> second one works ok:
>
> BMOVE
> /exchange/lucianoresende/-FlatUrlSpace-/9414c48bbd498144b7b7238535deb823-233e2/
> HTTP/1.1
> Content-Type: text/xml
> Host: pir03pc17.westford5.notesdev.ibm.com
> Authorization: Basic d2VzdGZvcmQ1XGx1Y2lhbm9yZXNlbmRlOnBhc3N3MHJk
> Destination:
> /exchange/lucianoresende/-FlatUrlSpace-/9414c48bbd498144b7b7238535deb823-233e5/
> User-Agent: Java/1.4.2
> Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
> Connection: keep-alive
> Content-Length: 93
>
> <?xml version='1.0'?>
> <move xmlns='DAV:'>
> <target>
> <href>delete%20999.EML</href>
> </target>
> </move>
>
> BMOVE /exchange/lucianoresende/inbox/ HTTP/1.1
> Content-Type: text/xml
> Host: pir03pc17.westford5.notesdev.ibm.com
> Authorization: Basic d2VzdGZvcmQ1XGx1Y2lhbm9yZXNlbmRlOnBhc3N3MHJk
> Destination: /exchange/lucianoresende/deleted%20items/
> User-Agent: Java/1.4.2
> Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
> Connection: keep-alive
> Content-Length: 93
>
> <?xml version='1.0'?>
> <move xmlns='DAV:'>
> <target>
> <href>delete%20999.EML</href>
> </target>
> </move>
>
> --
> - Luciano Resende
>
> --
> - Luciano Resende
date: Tue, 28 Feb 2006 11:38:48 -0800
author: Karim Batthish [MS]
|
|