mu4e-icalendar: Fix getting the organizer from the message

This commit is contained in:
Christophe Troestler 2024-01-03 12:13:40 +01:00
parent ad04f16b09
commit 7257b3fa3c
1 changed files with 5 additions and 4 deletions

View File

@ -130,10 +130,11 @@
(organizer (when (and organizer (organizer (when (and organizer
(not (string-empty-p organizer))) (not (string-empty-p organizer)))
organizer)) organizer))
(organizer (or organizer (organizer
(car (plist-get msg :reply-to)) (or organizer
(car (plist-get msg :from)) (plist-get (car (plist-get msg :reply-to)) :email)
(mu4e-warn "Cannot find organizer")))) (plist-get (car (plist-get msg :from)) :email)
(mu4e-warn "Cannot find organizer"))))
(mu4e--compose-setup (mu4e--compose-setup
'reply 'reply
(lambda (_parent) (lambda (_parent)