From 48f2f5196a7a3c3eaeb591a931e32bf9b663fce6 Mon Sep 17 00:00:00 2001 From: mguessan Date: Mon, 11 Apr 2011 09:58:22 +0000 Subject: [PATCH] Dav: do not try property update failover on 507 SC_INSUFFICIENT_STORAGE git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1660 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/exchange/dav/DavExchangeSession.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/davmail/exchange/dav/DavExchangeSession.java b/src/java/davmail/exchange/dav/DavExchangeSession.java index 50ee9c0d..2d6c3f1b 100644 --- a/src/java/davmail/exchange/dav/DavExchangeSession.java +++ b/src/java/davmail/exchange/dav/DavExchangeSession.java @@ -2230,7 +2230,7 @@ public class DavExchangeSession extends ExchangeSession { putmethod.setRequestEntity(new ByteArrayRequestEntity(baos.toByteArray())); int code = httpClient.executeMethod(putmethod); - if (code != HttpStatus.SC_OK && code != HttpStatus.SC_CREATED) { + if (code != HttpStatus.SC_OK && code != HttpStatus.SC_CREATED && code != HttpStatus.SC_INSUFFICIENT_STORAGE) { LOGGER.warn("Draft message creation failed, failover to property update. Note: attachments are lost"); ArrayList propertyList = new ArrayList();