如何使用gmail api和chrome扩展名将gmail保存为.eml文件? [英] How to save gmail as .eml file using gmail api and chrome extension?

查看:169
本文介绍了如何使用gmail api和chrome扩展名将gmail保存为.eml文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是gmail api的新手,正在开发chrome扩展程序,它将选定的电子邮件另存为.eml或.msg文件.我已经成功获取了当前/选定的邮件ID,还使用gmail api获得了原始邮件数据. 我想知道如何使用c#webservice将原始消息数据转换为.eml文件吗? (原始数据将发送到我的网络服务)

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.

谢谢, 阿努伊

推荐答案

在阅读并分析了[gmail-api]的文档后,得到了答案. message.raw部分是RFC 2822格式和base64 url​​编码的字符串.

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

因此在服务器端,我们需要进行验证,解码base64url编码的字符串并将数据保存在.eml文件中.

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

谢谢, 阿努伊

这篇关于如何使用gmail api和chrome扩展名将gmail保存为.eml文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆