emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 2194284: Enable replying to an ical event even when not an attend


From: Lars Ingebrigtsen
Subject: master 2194284: Enable replying to an ical event even when not an attendee
Date: Wed, 5 Aug 2020 12:01:43 -0400 (EDT)

branch: master
commit 2194284c55ba3f4f9859d2b65d21314446fc6a09
Author: Christophe Troestler <Christophe.Troestler@umons.ac.be>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Enable replying to an ical event even when not an attendee
    
    * lisp/gnus/gnus-icalendar.el
    (gnus-icalendar-event--build-reply-event-body): Display a warning
    instead of barfing when user is missing from attendee list.
    
    When the user identity is not present in the attendee list, an error
    is triggered making replying to such an event impossible (the reply
    message not being even composed).  This replaces it with a warning.
    This is necessary because one may receive events that the organizer
    did not set up well and it is up to the user to decide whether or not
    to reply to them (bug#41723).
    Copyright-paperwork-exempt: yes
---
 lisp/gnus/gnus-icalendar.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/gnus/gnus-icalendar.el b/lisp/gnus/gnus-icalendar.el
index 305e17f..29d3e30 100644
--- a/lisp/gnus/gnus-icalendar.el
+++ b/lisp/gnus/gnus-icalendar.el
@@ -312,7 +312,8 @@ status will be retrieved from the first matching attendee 
record."
 
       (unless (gnus-icalendar-find-if (lambda (x) (string-match "^ATTENDEE" x))
                                      reply-event-lines)
-        (error "Could not find an event attendee matching given identity"))
+        (lwarn 'gnus-icalendar :warning
+               "Could not find an event attendee matching given identity"))
 
       (mapconcat #'identity `("BEGIN:VEVENT"
                               ,@(nreverse reply-event-lines)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]