Explorar o código

Remove brackets inserted in UIDs by Outlook

Guillaume Ayoub %!s(int64=14) %!d(string=hai) anos
pai
achega
5b680d1400
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      radicale/ical.py

+ 2 - 0
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:"):