This project will show you how to group emails threads using Ruby and Nylas.
- Ruby 3.1.1 or greater
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
$ gem install dotenv
$ gem install sinatra
$ gem install sinatra-base
$ gem install sinatra-contrib
$ gem install nokogiri
$ gem install nylas
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.