How to extract data from multipart/mixed request in Spray

Reading Time: < 1 minute

If you are getting multipart/mixed response then how should we handle that in spray so that we can extract all the data from that.

Suppose we are getting email request in which contains all the information such as: from , to, attachment etc.

So here is the way to extract those :

Written by 

Rishi is a Lead Consultant, with experience of more than 7 years. Rishi is product focused developer who loves developing both front-end user interfaces and scalable back-end infrastructure. He is a good team player, quick learner and a humble person. He has good time management skills, aimed to give best results and fully dedicated towards his work & responsibilities. He is able to work as individual and as well as in team. He loves to share his knowledge, therefore he often writes technical blogs.