How to save gmail as .eml file using gmail api and chrome extension? [closed]

半城伤御伤魂 提交于 2019-12-12 04:24:51

问题


I am new to gmail api and developing chrome extension which saves selected email as .eml or .msg file.I have successfully got the current/selected message id and also got the raw message data using gmail api. I want to know how I can convert the raw message data to .eml file using c# webservice ? (raw data will be sent to my webservice)

any help is appreciated.

Thanks, Anuj


回答1:


got the answer after reading and analysing documentation of [gmail-api]. the message.raw part is RFC 2822 formatted and base64 url encoded string.

so at server side we need to do reveres, decode the base64url encoded string and save the data in .eml file.

Thanks, Anuj



来源:https://stackoverflow.com/questions/38524667/how-to-save-gmail-as-eml-file-using-gmail-api-and-chrome-extension

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!