From: Samir Benmendil Date: Thu, 24 Oct 2019 15:12:10 +0000 (+0100) Subject: mutt/ical2txt: also print attendees X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/dbcc35eb2eb9c925fbaa51fe1b7dee65f99a9359?ds=sidebyside mutt/ical2txt: also print attendees --- diff --git a/mutt/ical2txt b/mutt/ical2txt index de9d739..70a8be2 100755 --- a/mutt/ical2txt +++ b/mutt/ical2txt @@ -8,6 +8,12 @@ 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()) + attendees = [ a.params['cn'] for a in event.get('attendee') ] + 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