From: martin f. krafft Date: Sat, 8 Dec 2018 07:50:37 +0000 (+0100) Subject: show uid for events X-Git-Url: https://git.madduck.net/etc/mutt.git/commitdiff_plain/4d32db389fabfa815971f9de402542b4fc1657fa show uid for events --- diff --git a/.mutt/icalparser b/.mutt/icalparser index b2b1af3..b7a28c9 100755 --- a/.mutt/icalparser +++ b/.mutt/icalparser @@ -32,7 +32,7 @@ def parse_ics_file(fp): if event.name != "VEVENT": continue print('=' * (int(os.getenv('COLUMNS', 80))-10)) print('{} → {}'.format(*dtstrs(event.get('dtstart'), event.get('dtend')))) - for i in ('summary','organizer','location','rrule'): + for i in ('summary','organizer','location','uid','rrule'): print(' {:9s}: {}'.format(i.capitalize(), event.get(i, f'(no {i})'))) flags = [] for k in ('status', 'class', 'transp', 'priority'):