From bfebee2b38221664ccc075eb3ef1592225bd94aa Mon Sep 17 00:00:00 2001 From: mguessan Date: Mon, 20 Jun 2011 10:18:03 +0000 Subject: [PATCH] Caldav: allow infinity as Depth value git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1708 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/caldav/CaldavConnection.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/java/davmail/caldav/CaldavConnection.java b/src/java/davmail/caldav/CaldavConnection.java index 6f1fd80d..a10cc577 100644 --- a/src/java/davmail/caldav/CaldavConnection.java +++ b/src/java/davmail/caldav/CaldavConnection.java @@ -1396,7 +1396,9 @@ public class CaldavConnection extends AbstractConnection { protected void buildDepth() { String depthValue = headers.get("depth"); - if (depthValue != null) { + if ("infinity".equalsIgnoreCase(depthValue)) { + depth = Integer.MAX_VALUE; + } else if (depthValue != null) { try { depth = Integer.valueOf(depthValue); } catch (NumberFormatException e) {