SYMPTOMS
You use the WebDAV
DELETE method to delete an attachment in an e-mail message in Microsoft
Exchange Server 2003. This e-mail message was sent by a non-MAPI client. In
this scenario, the WebDAV
DELETE method may fail with a 409 error message. Additionally, the name
of the attachment now has a URL that contains the following text:
WORKAROUND
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.