~sumner/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

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

Details
Message ID
<20210527054457.541497-1-jordan@jnewport.dev>
DKIM signature
pass
Download raw message
Patch: +5 -2
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
Details
Message ID
<20210527054731.ci4lna2t74pt6lnm@mustafar>
In-Reply-To
<20210527054457.541497-1-jordan@jnewport.dev> (view parent)
DKIM signature
pass
Download raw message
Thanks!

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