Skip to content

nylas-samples/EmailThreading_Ruby

Repository files navigation

Email Threading

This project will show you how to group emails threads using Ruby and Nylas.

Setup

System dependencies

  • Ruby 3.1.1 or greater

Gather environment variables

You'll need the following values:

CLIENT_ID = ""
CLIENT_SECRET = ""
ACCESS_TOKEN = ""

Add the above values to a new .env file:

$ touch .env # Then add your env variables

Install dependencies

$ gem install dotenv
$ gem install sinatra
$ gem install sinatra-base
$ gem install sinatra-contrib
$ gem install nokogiri
$ gem install nylas

Usage

Clone the repository. Go to your terminal and type:

$ ruby EmailThreading.rb

And go to http://localhost:4567

Enter an email and you will see an accordion showing the email threads shared with that email.

Read the blog post

About

Grouping Email Threads with Ruby and Nylas

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published