From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83895 Path: news.gmane.org!not-for-mail From: Jan Tatarik Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-icalendar - RSVP handling Date: Wed, 20 Nov 2013 00:00:31 +0100 Message-ID: <877gc40zg0.fsf@nb-jtatarik2.xing.hh> References: <87bo1gprq7.fsf@topper.koldfront.dk> <87ob5g1qj9.fsf@nb-jtatarik2.xing.hh> <87li0khyao.fsf@topper.koldfront.dk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1384902080 11638 80.91.229.3 (19 Nov 2013 23:01:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Nov 2013 23:01:20 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M32151@lists.math.uh.edu Wed Nov 20 00:01:24 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 1ViuIK-0007MU-U7 for ding-account@gmane.org; Wed, 20 Nov 2013 00:01:21 +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 1ViuHk-0001mI-Am; Tue, 19 Nov 2013 17:00:44 -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 1ViuHi-0001m2-UM for ding@lists.math.uh.edu; Tue, 19 Nov 2013 17:00:42 -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 1ViuHh-00032b-3o for ding@lists.math.uh.edu; Tue, 19 Nov 2013 17:00:42 -0600 Original-Received: from mail-bk0-f52.google.com ([209.85.214.52]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1ViuHf-0004HA-D0 for ding@gnus.org; Wed, 20 Nov 2013 00:00:39 +0100 Original-Received: by mail-bk0-f52.google.com with SMTP id u14so3088582bkz.39 for ; Tue, 19 Nov 2013 15:00:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=RsQPGwJjmNNsx4gXBHOrBjDF+XD3NYv47KKGuHGOipE=; b=JBxlVL4H190ZATRxGUqUwH2g0Ir8xtOQPAsgImJZC2CIPPi3STad96SdEK7bs32yGY tyvZYm4SwwtbLX6zPT3OHt+S/sgW60XIBihROCVsTq4ZJO5zNogDDu51zmB1UTR8IUVg 1hLvGufPgUB2IaOSDF7EoGdQKkEnGrP+e2hCgQDhFNrTc/+3W0aeZ5m6DGOUGxyzZtN0 4m+0bm/iGnMgqeOSJ4/RsPV/SMSB6SXLAeFSnpFRQW82T1mNfTCJZkVD6Oiu5VS5Kz+P N/0Cacmh5MDFML62+4XAGi8z/JPJn7WEfpXF18ZRE/q6jcsQmZfkaG7GffYcAxMQDZpH uD7w== X-Received: by 10.204.103.199 with SMTP id l7mr18031425bko.11.1384902033972; Tue, 19 Nov 2013 15:00:33 -0800 (PST) Original-Received: from nb-jtatarik2.xing.hh (f054078216.adsl.alicedsl.de. [78.54.78.216]) by mx.google.com with ESMTPSA id qg7sm22091635bkb.6.2013.11.19.15.00.32 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 19 Nov 2013 15:00:32 -0800 (PST) In-Reply-To: <87li0khyao.fsf@topper.koldfront.dk> ("Adam \=\?utf-8\?Q\?Sj\?\= \=\?utf-8\?Q\?\=C3\=B8gren\=22's\?\= message of "Tue, 19 Nov 2013 22:33:19 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Spam-Score: -3.0 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83895 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Tue, Nov 19 2013, Adam Sj=C3=B8gren wrote: >> If we let the user specify a list of mailing lists he's subscribed to >> (or suck this info directly from gnus groups), we could add it to >> gnus-icalendar-identities and any RSVP sent to your mailing list will >> produce answer buttons for you. >> Is it OK? > I see your point. > In my use-case it is far from ideal - the company has many wide > mailinglists that I am on without knowing it (everybody in a logical > part of the company, everybody in a building, everybody in a country, > etc. etc.). > But I can add them as I go along, so it should be workable. Does this work for you? --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=extended_identities.patch diff --git a/lisp/gnus-icalendar.el b/lisp/gnus-icalendar.el index a8277635f3e1571722a01cb4b0fe4452ca7d2434..64ed556c7a5ecd40827b7eddfbfd01122fa05b21 100644 --- a/lisp/gnus-icalendar.el +++ b/lisp/gnus-icalendar.el @@ -617,6 +617,22 @@ is searched." :type '(string) :group 'gnus-icalendar) +(defcustom gnus-icalendar-additional-identities nil + "We need to know your identity to make replies to calendar requests work. + +Gnus will only offer you the Accept/Tentative/Decline buttons for +calendar events if any of your identities matches at least one +RSVP participant. + +Your identity is guessed automatically from the variables `user-full-name', +`user-mail-address', and `gnus-ignored-from-addresses'. + +If you need even more aliases you can define them here. It really +only makes sense to define names or email addresses." + + :type '(repeat string) + :group 'gnus-icalendar) + (make-variable-buffer-local (defvar gnus-icalendar-reply-status nil)) @@ -630,8 +646,9 @@ is searched." (apply #'append (mapcar (lambda (x) (if (listp x) x (list x))) (list user-full-name (regexp-quote user-mail-address) - ; NOTE: this one can be a list - gnus-ignored-from-addresses)))) + ; NOTE: these can be lists + gnus-ignored-from-addresses ; already regexp-quoted + (mapcar #'regexp-quote gnus-icalendar-additional-identities))))) ;; TODO: make the template customizable (defmethod gnus-icalendar-event->gnus-calendar ((event gnus-icalendar-event) &optional reply-status) --=-=-=--