Gnus development mailing list
 help / color / mirror / Atom feed
* gnus-icalendar - RSVP handling
@ 2013-11-19 11:15 Adam Sjøgren
  2013-11-19 13:15 ` Jan Tatarik
  0 siblings, 1 reply; 8+ messages in thread
From: Adam Sjøgren @ 2013-11-19 11:15 UTC (permalink / raw)
  To: ding

  Hi.

gnus-icalendar gives you Accept, Tentative, Decline-buttons if you are
an attendee and RSVP is true.

I just got an invitation addressed to a mailinglist.

So, no buttons, but an expectation from the sender that I Accept (or
Decline).

Maybe I should get the buttons by default if I am not in the list of
attendees?

Like so:

diff --git a/lisp/gnus-icalendar.el b/lisp/gnus-icalendar.el
index a827763..0a5c380 100644
--- a/lisp/gnus-icalendar.el
+++ b/lisp/gnus-icalendar.el
@@ -200,8 +200,9 @@
                      :organizer organizer
                      :start-time
                      (gnus-icalendar-event--decode-datefield event
                      'DTSTART)
                      :end-time (gnus-icalendar-event--decode-datefield
                      event 'DTEND)
-                     :rsvp (string= (plist-get (cadr attendee) 'RSVP)
-                                    "TRUE")
+                     :rsvp (if attendee
+                               (string= (plist-get (cadr attendee) 'RSVP) "TRUE")
+                             t)
                      :participation-required (string= (plist-get (cadr
                      attendee) 'ROLE)
                                                       "REQ-PARTICIPANT")
                      :req-participants (cdar attendee-names)


This could perhaps be improved by falling back to checking if _any_
attendee has RSVP true, and if so show buttons to press (we can't know
which of the invited mailing lists I was in, but at least one of the
mailing lists was asked to answer, so be safe and assume I am on that
list).

What do you think?


  Best regards,

    Adam

-- 
 "I hope you're not going to ask me                           Adam Sjøgren
  To explain a title."                                   asjo@koldfront.dk




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-12-18 21:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-19 11:15 gnus-icalendar - RSVP handling Adam Sjøgren
2013-11-19 13:15 ` Jan Tatarik
2013-11-19 21:33   ` Adam Sjøgren
2013-11-19 23:00     ` Jan Tatarik
2013-11-21 22:43       ` Adam Sjøgren
2013-12-02 15:52       ` Adam Sjøgren
2013-12-02 21:19         ` Jan Tatarik
2013-12-18 21:11           ` Adam Sjøgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).