From 3e3f07a6decf142834025ad795ae14d0d64043a6 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Fri, 26 Jul 2013 17:47:51 +0200 Subject: [PATCH] Assume that the collection is an addressbook when "carddav" is in URL --- radicale/ical.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/ical.py b/radicale/ical.py index e15f4a6..213b038 100644 --- a/radicale/ical.py +++ b/radicale/ical.py @@ -396,7 +396,7 @@ class Collection(object): try: tag = open(self.path).readlines()[0][6:].rstrip() except IOError: - if self.path.endswith(".vcf"): + if self.path.endswith(".vcf") or "carddav" in self.path: props["tag"] = "VADDRESSBOOK" else: props["tag"] = "VCALENDAR"