1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 11:12:22 -05:00

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
This commit is contained in:
mguessan 2011-04-11 09:58:22 +00:00
parent b6b08b13bc
commit 48f2f5196a

View File

@ -2230,7 +2230,7 @@ public class DavExchangeSession extends ExchangeSession {
putmethod.setRequestEntity(new ByteArrayRequestEntity(baos.toByteArray())); putmethod.setRequestEntity(new ByteArrayRequestEntity(baos.toByteArray()));
int code = httpClient.executeMethod(putmethod); 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"); LOGGER.warn("Draft message creation failed, failover to property update. Note: attachments are lost");
ArrayList<DavConstants> propertyList = new ArrayList<DavConstants>(); ArrayList<DavConstants> propertyList = new ArrayList<DavConstants>();