To work around this problem, use a
PROPPATCH method in a field which is rarely used in the e-mail message. The
PROPPATCH method will force Microsoft Exchange Server to convert the e-mail
message to the MAPI format. If the e-mail message is converted to the MAPI
format, the WebDAV
DELETE method works as expected.
The following is an example of
the code that you use to convert the e-mail message to the MAPI format:
<?xml version='1.0'?>" "d:propertyupdate xmlns:d='DAV:'
xmlns:m='urn:schemas:mailheader:'>
<d:set><d:prop>
<m:comment>anytext</m:comment>
</d:prop></d:set></d:propertyupdate>
Note When the
PROPATCH method is finished, the e-mail message is put in the .Edb file.
After the conversion is complete, the attachment will have a new URL. This new
URL can be used with the WebDAV
DELETE method.