1.1 --- a/imip_agent.py Wed Sep 24 13:16:49 2014 +0200
1.2 +++ b/imip_agent.py Wed Sep 24 14:58:48 2014 +0200
1.3 @@ -7,7 +7,7 @@
1.4 from email.mime.text import MIMEText
1.5 from pytz import timezone, UnknownTimeZoneError
1.6 from smtplib import SMTP
1.7 -from vCalendar import parse, ParseError, SECTION_TYPES
1.8 +from vCalendar import parse, ParseError
1.9 import imip_store
1.10 import re
1.11 import sys
1.12 @@ -69,7 +69,7 @@
1.13 for name, attr, value in elements:
1.14 if not d.has_key(name):
1.15 d[name] = []
1.16 - if name in SECTION_TYPES:
1.17 + if isinstance(value, list):
1.18 d[name].append((get_itip_structure(value), attr))
1.19 else:
1.20 d[name].append((value, attr))