]> git.rmz.io Git - dotfiles.git/blobdiff - mutt/ical2txt
qutebrowser: also cycle through accept all cookies
[dotfiles.git] / mutt / ical2txt
index de9d739e889b83d8b2836de85da020ea81ee991f..b8e50a2d76656bbd2c59f110478d4e3f1cbfa66f 100755 (executable)
@@ -8,6 +8,16 @@ def format_cal(event):
     str  = "Start: {:%Y-%m-%d %H:%M}\n".format(start.astimezone())
     str += "End:   {:%Y-%m-%d %H:%M}\n".format(end.astimezone())
 
+    if event.get('attendee') is not None:
+        att = event.get('attendee')
+        if not isinstance(att, list):
+            att = [att]
+        attendees = [ a.params['cn'] for a in att]
+        str += "Attendees:\n"
+        for a in attendees:
+            str += "\t{}\n".format(a)
+        str += "\n"
+
     description = event.get('description')
     if description is not None:
         str += description