~sumner/public-inbox

home-manager-config: icalview: Add handling for string attendee lists v1 PROPOSED

Jordan Newport: 1
 icalview: Add handling for string attendee lists

 1 files changed, 5 insertions(+), 2 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sumner/public-inbox/patches/23002/mbox | git am -3
Learn more about email & git

[PATCH home-manager-config] icalview: Add handling for string attendee lists Export this patch

---
 modules/email/icalview.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/modules/email/icalview.py b/modules/email/icalview.py
index 58c18fc..590b48e 100755
--- a/modules/email/icalview.py
+++ b/modules/email/icalview.py
@@ -16,8 +16,11 @@ for event in calendar.walk('vevent'):

    attendees = None
    if 'ATTENDEE' in event:
        attendees = ',\n               '.join(
            [a[7:] for a in event.decoded('ATTENDEE')])
        if type(event.decoded('ATTENDEE')) == list:
            attendees = ',\n               '.join(
                [a[7:] for a in event.decoded('ATTENDEE')])
        elif type(event.decoded('ATTENDEE')) == str:
            attendees = event.decoded('ATTENDEE')

    description = event.get('DESCRIPTION') or ''
    description = html2text.html2text(description)
-- 
2.31.1
Thanks!

To git.sr.ht:~sumner/home-manager-config
   8628d8d..28e373d  master -> master