Need help opening a .msg Outlook email

agolangf · · 397 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>I hope that I&#39;m in the right place to ask this, if not I&#39;ll remove it.</p> <p>I&#39;m writing a program that renames the given email in .msg format based on the content of the email. The problem is that I&#39;m not able to read the content of the file.</p> <p>Is there an import that I can use?</p> <p>Thanks </p> <hr/>**评论:**<br/><br/>recurrency: <pre><p>I don&#39;t know the spec of the .msg format but there is <a href="https://golang.org/pkg/net/mail/#Message" rel="nofollow">https://golang.org/pkg/net/mail/#Message</a> in the stdlib</p></pre>HeCallsMeCarl: <pre><p>Thank you! I will try it as soon as I can and give an update </p></pre>HeCallsMeCarl: <pre><p>Well it didn&#39;t work, Go complained about a wrong header. On the plus side, I can print the email by reading it with a &#34;strings.NewReader&#34; but it&#39;s not possible to search for a string. It never finds it, even if I copy past a string</p></pre>tvmaly: <pre><p>If there is not something to do this, and you are flexible, you could probably look at other language modules and port something to Go</p> <p>Here is a example, a Perl module that can parse msg format <a href="https://metacpan.org/pod/Email::Outlook::Message" rel="nofollow">https://metacpan.org/pod/Email::Outlook::Message</a></p></pre>tgulacsi: <pre><p>Outlook .msg is the perfect example of Microsoft wrongdoing: it&#39;s a proprietary format without documentation, it is used instead of perfectly readable text-on-the-wire (emails are just text with structure (MIME)). And of course it fails as a storage: it contains a preprocessed message, NOT the original!</p> <p>Big shame, as email is sent in a format every client can parse...</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

397 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传