Gnus development mailing list
 help / color / Atom feed
* [RFC] [WIP] Creating icalendar event invitations
@ 2020-06-13 10:57 Ferdinand Pieper
  2020-06-15  9:39 ` Eric S Fraga
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Ferdinand Pieper @ 2020-06-13 10:57 UTC (permalink / raw)
  To: ding


[-- Attachment #1: Type: text/plain, Size: 1529 bytes --]

Hi all,

gnus has good support to accept/decline icalendar invitations with 
gnus-icalendar.el. I'm looking to extend this to also allow the 
creation of new invitations from within gnus.
Below is a first rough implementation which I for now kept in a 
separate file from gnus-icalendar.el, but the goal would be for 
the code to also live in gnus-icalendar.el.

Most of the code is still very rough and the implementation is not 
handling all cases correctly. I'm mainly sharing it now to ask you 
whether this is a welcome addition to gnus-icalendar and to ask 
for thoughts on the general implementation, before I spend more 
time to polish the code.

How it works: The code adds functions to create RFC5545 compliant 
VCALENDAR and VEVENT parts from gnus-icalendar-event objects and 
also a function to create a event invitation based on the current 
message buffer.
To create the gnus-icalendar-event the mail addresses in the To 
header are converted to required participants, addresses in Cc are 
interpreted as optional participants and the subject and message 
body are added as summary and description of the event. The date 
range and location have to be entered interactively for now.
Please let me know if you have any other ideas on how users could 
create new events.

Next step will be to polish the code so that the basic 
functionality of creating simple one-shot event invitations works 
reliably.
Long term goals include handling request responses and supporting 
a wider range of the RFC5545 spec.

Thanks!


[-- Attachment #2: gnus-icalendar-request.el --]
[-- Type: application/emacs-lisp, Size: 10080 bytes --]

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

* Re: [RFC] [WIP] Creating icalendar event invitations
  2020-06-13 10:57 [RFC] [WIP] Creating icalendar event invitations Ferdinand Pieper
@ 2020-06-15  9:39 ` Eric S Fraga
  2020-06-15 11:34 ` Gijs Hillenius
  2020-06-15 16:18 ` Eric Abrahamsen
  2 siblings, 0 replies; 5+ messages in thread
From: Eric S Fraga @ 2020-06-15  9:39 UTC (permalink / raw)
  To: ding

On Saturday, 13 Jun 2020 at 12:57, Ferdinand Pieper wrote:
> Below is a first rough implementation which I for now kept in a
> separate file from gnus-icalendar.el, but the goal would be for 
> the code to also live in gnus-icalendar.el.

Have just tried this out and it seems to work very well from my limited
testing!  I would love to see this included in gnus. 

-- 
Eric S Fraga via Emacs 28.0.50 & org 9.3.7 on Debian bullseye/sid



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

* Re: [RFC] [WIP] Creating icalendar event invitations
  2020-06-13 10:57 [RFC] [WIP] Creating icalendar event invitations Ferdinand Pieper
  2020-06-15  9:39 ` Eric S Fraga
@ 2020-06-15 11:34 ` Gijs Hillenius
  2020-06-15 16:18 ` Eric Abrahamsen
  2 siblings, 0 replies; 5+ messages in thread
From: Gijs Hillenius @ 2020-06-15 11:34 UTC (permalink / raw)
  To: Ferdinand Pieper; +Cc: ding


[...]

> handling all cases correctly. I'm mainly sharing it now to ask you 
> whether this is a welcome addition to gnus-icalendar and to ask for
> thoughts on the general implementation, before I spend more time to
> polish the code.

This is totally awesome. I have already used it to set up one
meeting.

Thank you so much for doing this


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

* Re: [RFC] [WIP] Creating icalendar event invitations
  2020-06-13 10:57 [RFC] [WIP] Creating icalendar event invitations Ferdinand Pieper
  2020-06-15  9:39 ` Eric S Fraga
  2020-06-15 11:34 ` Gijs Hillenius
@ 2020-06-15 16:18 ` Eric Abrahamsen
  2020-06-15 16:28   ` Eric S Fraga
  2 siblings, 1 reply; 5+ messages in thread
From: Eric Abrahamsen @ 2020-06-15 16:18 UTC (permalink / raw)
  To: ding

Ferdinand Pieper <fer@pie.tf> writes:

> Hi all,
>
> gnus has good support to accept/decline icalendar invitations with
> gnus-icalendar.el. I'm looking to extend this to also allow the 
> creation of new invitations from within gnus.
> Below is a first rough implementation which I for now kept in a
> separate file from gnus-icalendar.el, but the goal would be for 
> the code to also live in gnus-icalendar.el.
>
> Most of the code is still very rough and the implementation is not
> handling all cases correctly. I'm mainly sharing it now to ask you 
> whether this is a welcome addition to gnus-icalendar and to ask for
> thoughts on the general implementation, before I spend more time to
> polish the code.

I'll echo the others and say this looks great! I assume you've done your
FSF copyright paperwork?

> How it works: The code adds functions to create RFC5545 compliant
> VCALENDAR and VEVENT parts from gnus-icalendar-event objects and 
> also a function to create a event invitation based on the current
> message buffer.
> To create the gnus-icalendar-event the mail addresses in the To header
> are converted to required participants, addresses in Cc are
> interpreted as optional participants and the subject and message 
> body are added as summary and description of the event. The date range
> and location have to be entered interactively for now.
> Please let me know if you have any other ideas on how users could
> create new events.

I think it would be great to be able to create events starting from an
Org heading. Perhaps I've already got an event set up inside Org, and
I'd like to use it to compose an invitation. The various values could be
taken from heading properties, and the timestamp.

> Next step will be to polish the code so that the basic functionality
> of creating simple one-shot event invitations works reliably.
> Long term goals include handling request responses and supporting a
> wider range of the RFC5545 spec.

Looking forward to more!



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

* Re: [RFC] [WIP] Creating icalendar event invitations
  2020-06-15 16:18 ` Eric Abrahamsen
@ 2020-06-15 16:28   ` Eric S Fraga
  0 siblings, 0 replies; 5+ messages in thread
From: Eric S Fraga @ 2020-06-15 16:28 UTC (permalink / raw)
  To: ding

On Monday, 15 Jun 2020 at 09:18, Eric Abrahamsen wrote:
> I think it would be great to be able to create events starting from an
> Org heading. Perhaps I've already got an event set up inside Org, and
> I'd like to use it to compose an invitation. The various values could be
> taken from heading properties, and the timestamp.

And, taking this one step further, being able to create the entry in my
org file from org's agenda view and have it email participants!  :-)

But just being able to send invites from email (gnus) is a major step
forward; everything else is icing on the cake.

-- 
Eric S Fraga via Emacs 28.0.50 & org 9.3.7 on Debian bullseye/sid



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

end of thread, back to index

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-13 10:57 [RFC] [WIP] Creating icalendar event invitations Ferdinand Pieper
2020-06-15  9:39 ` Eric S Fraga
2020-06-15 11:34 ` Gijs Hillenius
2020-06-15 16:18 ` Eric Abrahamsen
2020-06-15 16:28   ` Eric S Fraga

Gnus development mailing list

Archives are clonable: git clone --mirror http://inbox.vuxu.org/ding

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.emacs.gnus.general


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git