Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Note: the UPDATE client specification is now available here:

https://github.com/coi-dev/coi-specs/blob/master/coi-client-spec.md






-- THE FOLLOWING SPECIFICATION IS OUTDATED AND ARCHIVED FOR NOW JUST FOR COMPARISON PURPOSES --







Status: DRAFT

Table of Contents


Introduction

COI - Chat Over IMAP - provides a basis for realizing modern messaging services on top of the existing email infrastructure. COI leverages the existing open and federated email infrastructure to provide an open chat functionality accessible to everyone with an email address.

...

  • "coi-version" which is set to 1.
  • "content" which is set to "pollvote".
  • "votes" is an array with the indices of the voted options, first index is 0.

Example:

From: Me Myself <me@sample.com> 
To: My Crew: you@recipientdomain.com, carrol@otherdomain.com, dareen@somewhere.com;
Subject: Chat: vote - Which movie?
Date: Mon, 4 Dec 2019 16:51:37 +0100
Message-ID: <coi$group.23298982923929.21382788.2932UJH@sample.com>
Content-Type: multipart/alternative;
boundary="unique-boundary-1"
Reference: <coi$434571BC.89A707D2@sample.com>
Chat-Version: 1.0
MIME-Version: 1.0

--unique-boundary-1
Content-Type: text/html; charset=UTF-8

<html><body>
<p>Which movie: voted for &quot;Matrix&quot; and &quot;Aliens&quot;.</p>
<p><i>This message is a chat message - consider using <a href="https://myawesomecoiapp.com">my awesome COI app</a> for best experience!</i></p>
</body></html>

--unique-boundary-1
Content-Type: application/json; charset=UTF-8
Content-Disposition: attachment;
filename="poll.json"
Chat-Content:

...

pollvote;
reference=<coi$group.23298982923929.238788.AB29702@sample.com>

{
"coi-version": 1,
"content": "pollvote",
"votes": [1,2]
}

--unique-boundary-1--

Poll Closed Message

...