From 5b680d14000238464309f100351059c07e3619cf Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Wed, 18 Jan 2012 17:47:18 +0100 Subject: [PATCH] Remove brackets inserted in UIDs by Outlook --- radicale/ical.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/radicale/ical.py b/radicale/ical.py index 3c07d3c..3f85d89 100644 --- a/radicale/ical.py +++ b/radicale/ical.py @@ -99,6 +99,8 @@ class Item(object): # Do not break, a ``X-RADICALE-NAME`` can appear next if self._name: + # Remove brackets that may have been put by Outlook + self._name = self._name.strip("{}") if "\nX-RADICALE-NAME:" in text: for line in unfold(self.text): if line.startswith("X-RADICALE-NAME:"):