.msg 文件和 .eml 文件之间的区别 [英] Difference between a .msg file and a .eml file

查看:113
本文介绍了.msg 文件和 .eml 文件之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

.msg 文件和.eml 文件有什么区别?

What are the difference between a .msg file and a .eml file?

  1. 我知道 eml 实际上是一个文本文件,而 msg 不是.
  2. 两者都可以在 Outlook 中打开.
  3. Outlook 允许您将电子邮件另存为 .msg,但我没有找到另存为 eml 的选项

有什么东西是 msg 有能力的,哪个 eml 不是,反之亦然?

Is there anything that msg is capable and which eml is not and vice versa?

推荐答案

MSG 是二进制 OLE 存储文件 (IStorage).与 MIME (EML) 不同,它存储 MIME 无法存储的所有 MAPI 特定属性.格式为 由微软记录.您可以使用 SSViewer<等实用程序在 IStorage 级别查看 MSG 文件内部/a>.在 MAPI 级别,您可以使用 StgOpenStorage/StgCreateStorageExOpenIMsgOnIStg 函数.您可以在 OutlookSpy(单击 OpenIMsgOnIStg 按钮)中查看存储在 MSG 文件中的属性.

MSG is a binary OLE storage file (IStorage). Unlike MIME (EML), it stores all MAPI specific properties that MIME cannot store. The format is documented by Microsoft. You can look inside an MSG file on the IStorage level using a utility like SSViewer. On the MAPI level, you can open/create an MSG file using StgOpenStorage / StgCreateStorageEx and OpenIMsgOnIStg functions. You can see properties stored inside an MSG file in OutlookSpy (click OpenIMsgOnIStg button).

EML 文件是 MIME 格式的文本文件(您可以打开这样的文件在记事本中).

EML files are text files in the MIME format (you can open a file like that in Notepad).

要创建 EML 文件,您可以

To create an EML file, you can either

  1. 在您的代码中显式创建它,一次一个 MIME 标头/部分.

  1. Create it explicitly in your code one MIME header/part at a time.

如果您在 C++ 或 Delphi 中使用扩展 MAPI,您可以使用 IConverterSession 接口,包装了本机 Outlook 转换器.您可以在 OutlookSpy 中使用它 - 单击 OutlookSpy 工具栏上的 IConverterSession 按钮.

If you are using Extended MAPI in C++ or Delp you can use the IConverterSession interface that wraps the native Outlook converter. You can play with it in OutlookSpy - click IConverterSession button on the OutlookSpy toolbar.

您可以使用Redemption 及其RDOMail.SaveAs(..., olRfc822)/SafeMailItem.SaveAs(..., olRfc822) 方法.

You can use Redemption and its RDOMail.SaveAs(..., olRfc822) / SafeMailItem.SaveAs(..., olRfc822) methods.

这篇关于.msg 文件和 .eml 文件之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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