寻找上面的一些APIS和示例代码。
答案 0 :(得分:0)
从Open XML SDK 2.0 for Microsoft Office开始阅读Word文件。
答案 1 :(得分:0)
RFC 822不是您要查找的规范。
RFC 5322的摘要揭示了一个原因:
This document specifies the Internet Message Format (IMF), a syntax
for text messages that are sent between computer users, within the
framework of "electronic mail" messages. This specification is a
revision of Request For Comments (RFC) 2822, which itself superseded
Request For Comments (RFC) 822, "Standard for the Format of ARPA
Internet Text Messages", updating it to reflect current practice and
incorporating incremental changes that were specified in other RFCs.
第1.1节(“范围”)中的这一段揭示了另一个:
This document specifies a syntax only for text messages. In
particular, it makes no provision for the transmission of images,
audio, or other sorts of structured data in electronic mail messages.
There are several extensions published, such as the MIME document
series ([RFC2045], [RFC2046], [RFC2049]), which describe mechanisms
for the transmission of such data through electronic mail, either by
extending the syntax provided here or by structuring such messages to
conform to this syntax. Those mechanisms are outside of the scope of
this specification.
我认为你实际上想要一个不同问题的答案,例如:
如何将Word邮件转换为基于MIME的格式,在各种邮件用户代理中看起来不错?
如果我错了,你真的 询问如何将Word文档转换为纯文本电子邮件,那么你应该看看antiword,这是一个非常有用的转换工具将文档Word文档转换为纯文本,PostScript,PDF或docbook。 (无论如何,没有任何迹象表明它可以在输出纯文本时对图像做任何事情 - 尚未。)