From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83889 Path: news.gmane.org!not-for-mail From: asjo@koldfront.dk (Adam =?utf-8?Q?Sj=C3=B8gren?=) Newsgroups: gmane.emacs.gnus.general Subject: gnus-icalendar - RSVP handling Date: Tue, 19 Nov 2013 12:15:44 +0100 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <87bo1gprq7.fsf@topper.koldfront.dk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1384859799 12313 80.91.229.3 (19 Nov 2013 11:16:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Nov 2013 11:16:39 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M32145@lists.math.uh.edu Tue Nov 19 12:16:43 2013 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VijIR-0006aX-2n for ding-account@gmane.org; Tue, 19 Nov 2013 12:16:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1VijHu-00076F-BD; Tue, 19 Nov 2013 05:16:10 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1VijHs-000764-VL for ding@lists.math.uh.edu; Tue, 19 Nov 2013 05:16:08 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1VijHh-00081h-PM for ding@lists.math.uh.edu; Tue, 19 Nov 2013 05:16:08 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1VijHf-00047e-P3 for ding@gnus.org; Tue, 19 Nov 2013 12:15:55 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VijHe-0006Dm-Vv for ding@gnus.org; Tue, 19 Nov 2013 12:15:55 +0100 Original-Received: from 2505ds5-by.0.fullrate.dk ([89.150.142.116]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Nov 2013 12:15:54 +0100 Original-Received: from asjo by 2505ds5-by.0.fullrate.dk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Nov 2013 12:15:54 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 53 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 2505ds5-by.0.fullrate.dk OpenPGP: id=49D0746121BDE416; url=http://asjo.koldfront.dk/gpg.asc Mail-Follow-Up-To: never X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97,Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83889 Archived-At: 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