diff --git a/src/java/davmail/exchange/VObject.java b/src/java/davmail/exchange/VObject.java index f6fb76f7..8fa9babc 100644 --- a/src/java/davmail/exchange/VObject.java +++ b/src/java/davmail/exchange/VObject.java @@ -53,10 +53,14 @@ public class VObject { throw new IOException("Invalid first line: " + beginProperty); } type = beginProperty.getValue(); + String beginLine = "BEGIN:" + type; String endLine = "END:" + type; String line = reader.readLine(); while (line != null && !line.startsWith(endLine)) { - handleLine(line, reader); + // ignore invalid BEGIN line inside object (Sogo Carddav issue) + if (!beginLine.equals(line)) { + handleLine(line, reader); + } line = reader.readLine(); } if (line == null) {