This sample will show you to create email threading using Java.
- Java 18.0.2
- Maven 3.8.6
You'll need the following values:
ACCESS_TOKEN = ""
CALENDAR_ID = ""
Add the above values to a new .env
file:
$ touch .env # Then add your env variables
org.slf4j / slf4j-simple / 1.7.25
com.nylas.sdk / nylas-java-sdk / 1.18.0
io.github.cdimascio / dotenv-java / 2.2.4
spark-core / Spark Java / 2.9.4
spark-template-mustache / Mustache / 2.7.1
jsoup / 1.15.3
spark-template-handlebars / Handlebars / 2.7.1
To compile the comment we need to use this maven
command:
mvn clean compile
Run the application using the maven
command:
$ mvn exec:java -Dexec.mainClass="EmailThreading"
If successful, you will be able to find organized email threads.
Read the blog post Grouping Email Threads with Java and Nylas Visit our Nylas Java SDK documentation to learn more.