Skip to content

Instantly share code, notes, and snippets.

@practicingruby
Created March 9, 2012 03:13
Show Gist options
  • Select an option

  • Save practicingruby/2004833 to your computer and use it in GitHub Desktop.

Select an option

Save practicingruby/2004833 to your computer and use it in GitHub Desktop.
Gregory sends an email to c+town-hall-1.event-new with the subject "Availability for Town Hall Meeting #1" and a free-form-body
Gregory receives an email that tells him he can send a request to c+town-hall-1.event-schedule-1 to
see what the current optimized schedule is. (We may also want to add a feature that does this automatically
once all participants have responded or on DATE, whichever happens first)
Participants receive an email with Gregory's original content plus the following footer:
---
This email was generated by newman-scheduler
To share your availability for this event, send an email to:
c+town-hall-1.event-1-availability@mendicantuniversity.org
To see what others have posted, send an email to:
c+town-hall-1.event-1-schedule@mendicantuniversity.org
See this webpage (...) for instructions on how this system works.
@ericgj

ericgj commented Mar 11, 2012

Copy link
Copy Markdown

Hi Greg,
How does this look as a proposal (to be used in the README) ? It's mostly the same as the above, one complication is about specifying the date range and duration of events, see what you think of how I propose handling this.


Example interactions

Say we have a mailing list named firefly, and members send to the address
c+firefly@test.com.

1. Propose an event to the mailing list.

From: Hoban Washburne <hoban@foo.com>
To: c+firefly.event-new@test.com
Subject: Availability for a picnic

Hello comrades, can we picnic this week?

week of Mar 19
90 minutes

(The last two lines are interpreted as the range of dates and time duration of
the event. If they aren't given, or can't be parsed as such, the range is
assumed to be the next week from when the email was sent, and the duration
60 minutes.)

Subscribers to the list get the email forwarded with instructions to send in
their availability.

From: On behalf of Hoban Washburne <c+firefly@test.com>
Reply-To: c+firefly.event-avail-12345@test.com
Bcc: <all subscribers>
Subject: Availability for a picnic

Hello comrades, can we picnic this week?

week of Mar 19
90 minutes

-----
This email was generated by newman-scheduler

To share your availability for this event, send an email to:
  c+firefly.event-avail-12345@test.com

To see the current best times for scheduling, send an email to:
  c+firefly.event-sched-12345@test.com   

For general instructions, send an email to:
  c+firefly.event-usage@test.com

The event initiator gets a confirmation email:

From: Event confirmation <c+firefly@test.com>
Reply-To: c+firefly.event-sched-12345@test.com
To: hoban@foo.com
Subject: a picnic - week of Mar 19, 90 minutes

Invitations have been sent to 6 participants for your proposed event.

-----
This email was generated by newman-scheduler

To share your availability for this event, send an email to:
  c+firefly.event-avail-12345@test.com

To see the current best times for scheduling, send an email to:
  c+firefly.event-sched-12345@test.com   

For general instructions, send an email to:
  c+firefly.event-usage@test.com

2. Participants send in their availability by replying:

From: Inara Serra <inaras@foo.com>
To: c+firefly.event-avail-12345@test.com
Subject: RE: Availability for a picnic

Mon Tue Thu

From: Jayne Cobb <jcobb@foo.com>
To: c+firefly.event-avail-12345@test.com
Subject: RE: Availability for a picnic

Mon Tue Wed Thu Fri
11:00 - 14:00  -04:00

3. Request a list of the current best available times for the event.

From: Hoban Washburne <hoban@foo.com>
To: c+firefly.event-sched-12345@test.com

Note any participant can request this. Sender gets the response:

From: Event scheduler <c+picnic@test.com>
To: Hoban Washburne <hoban@foo.com>
Reply-To: c+firefly.event-sched-12345@test.com
Subject: a picnic - week of Mar 19, 90 minutes

5 of 6 participants have responded.*

week of Mon 19 Mar (1hr 30min) 
------------------------------
Mon 19 Mar  3:00pm UTC -  6:00pm UTC
  Hoban Washburne
  Inara Serra
  Jayne Cobb
  Malcolm Reynolds
  Zoe Washburne
Wed 21 Mar  3:00pm UTC -  6:00pm UTC
  Inara Serra
  Jayne Cobb
  Zoe Washburne
Thu 23 Mar  3:00pm UTC -  6:00pm UTC
  Inara Serra
  Jayne Cobb
  Zoe Washburne

[*] Availability still needed for:
      Maxx Williams <maxxy@foo.com> 

-----
This email was generated by newman-scheduler

To share your availability for this event, send an email to:
  c+firefly.event-avail-12345@test.com

To see the current best times for scheduling, send an email to:
  c+firefly.event-sched-12345@test.com   

For general instructions, send an email to:
  c+firefly.event-usage@test.com

@practicingruby

practicingruby commented Mar 11, 2012 via email

Copy link
Copy Markdown
Author

@ericgj

ericgj commented Mar 11, 2012

Copy link
Copy Markdown

Yes.. I had second thoughts about having a default there too. My only question now is whether the range of dates + duration should be put on the subj line, rather than the body, which is otherwise "free text".

@practicingruby

practicingruby commented Mar 11, 2012 via email

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment