I want to read new mails from Gmail and save them in Dropbox. I have done the code to get mails of a user and save it in dropbox. But as the message object is returned back from Gmail API its a JSON and currently i am saving it as a text file in dropbox. Is their any way by which i can save it as .eml, say any export API by Gmail.
Or any hint from any one how I should save mails to Dropbox as we want to achieve that by double clicking on the file the message can be opened in default mail viewer of user.