From: Christophe Troestler Date: Wed, 5 Aug 2020 16:01:27 +0000 (+0200) Subject: Enable replying to an ical event even when not an attendee X-Git-Tag: emacs-28.0.90~6800 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2194284c55ba3f4f9859d2b65d21314446fc6a09;p=emacs.git 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 --- diff --git a/lisp/gnus/gnus-icalendar.el b/lisp/gnus/gnus-icalendar.el index 305e17fd8fc..29d3e30780f 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)