~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] icalview: Add handling for string attendee lists

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

To git.sr.ht:~sumner/home-manager-config
   8628d8d..28e373d  master -> master
Reply to thread Export thread (mbox)