summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Troestler <Christophe.Troestler@umons.ac.be>2020-08-05 18:01:27 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2020-08-05 18:01:27 +0200
commit2194284c55ba3f4f9859d2b65d21314446fc6a09 (patch)
treefcb4dfe6442f79ab2777488e3069784217df4d9b
parent283fce4c3cdb89745a62fdeee83dcd7c2189fba3 (diff)
downloademacs-2194284c55ba3f4f9859d2b65d21314446fc6a09.tar.gz
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
-rw-r--r--lisp/gnus/gnus-icalendar.el3
1 files changed, 2 insertions, 1 deletions
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)