~sumner/public-inbox

home-manager-config: icalview: Add handling for string attendee lists v2 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/23003/mbox | git am -3
Learn more about email & git

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

Fixes issue with types and strips mailto:

---
 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..3f31a1f 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')])
        else:
            attendees = event.decoded('ATTENDEE')[7:]

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

To git.sr.ht:~sumner/home-manager-config
 + 28e373d...46e37e2 master -> master (forced update)