如何处理 Microsoft Outlook winmail.dat? 还有其他惊喜吗?

发布于 2024-07-10 05:29:45 字数 432 浏览 4 评论 0原文

我决定我真的不喜欢微软和他们的方式。 请指导我如何处理电子邮件中的 winmail.dat,是否有 jython 库或 java 库可以让我处理这个问题。

我刚刚完成了一个电子邮件处理程序,在 java 5 上用 jython 2.2.1 编写。在最终的负载测试中,我意识到本应采用标准 MIME 电子邮件格式的附件现在被捆绑在一些该死的 winmail.dat 中,这意味着许多不同的 Outlook 客户端都会使用此 winmail.dat 污染互联网,因此这意味着我需要支持 winmail.dat。 因此我的程序无法正确处理数据。

请您简短描述一下 winmail.dat 是什么以及为什么它在这里惹恼我们。

还有什么惊喜可以期待! 我还需要注意什么,到目前为止,标准 MIME 电子邮件已得到满足。 盒子里还有其他插孔吗?

非常感谢您抽出时间。

Ive decided that I really dont like microsoft and their ways. Please could you give me directions on how to handle winmail.dat in emails, is there a jython library or a java library that will allow me to handle this.

Ive just completed a email processing program, written in jython 2.2.1 on java 5. During the final load test, I realised that attachments that should have been in a standard MIME email format is now tied up in some blasted winmail.dat, which means many different outlook clients pollute the internet with this winmail.dat, so that means i need to support winmail.dat. Thus my program failed to process the data correctly.

Please could you give a short description on what winmail.dat is and why it is here to annoy us.

What other surprises can be expected!? what else do I have to watch out for, so far standard MIME emails are catered for. Are there any other jack in the boxes?

Thanks so much for your time.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

┈┾☆殇 2024-07-17 05:29:45

主题已关闭,但为了将来的目的:Apache POI 项目(Java API for Microsoft Documents)正在启动一个版本(3.8 )能够解码 TNEF 文件。 我测试了它并且工作得很好,甚至是测试版。 您可以在此处找到它。

与 maven 一起使用(2016 年 6 月 - 当它不再位于暂存器中时可能会更改):

    <dependency>
        <groupId>org.apache.poi</groupId>
        <artifactId>poi-scratchpad</artifactId>
        <version>3.14</version>
    </dependency>

Topic closed, but for future purposes: Apache POI project (Java API for Microsoft Documents) is launching a version (3.8) that is capable to decode TNEF files. I tested it and worked very well, even the beta version. You can found it here.

To use with maven (june 2016 - might change later when it is no longer in the scratchpad):

    <dependency>
        <groupId>org.apache.poi</groupId>
        <artifactId>poi-scratchpad</artifactId>
        <version>3.14</version>
    </dependency>
情绪 2024-07-17 05:29:45

请给个简短的
关于 winmail.dat 是什么的描述以及
为什么它在这里惹恼我们。

kb138053

当最终用户向
来自 Exchange Windows 的 Internet 或
Outlook 客户端、文件附件
称为 Winmail.dat 可能是
自动添加到末尾
消息如果收件人是客户
无法接收富文本消息
格式(RTF)。 Winmail.dat 文件
包含 Exchange Server RTF
该消息的信息,并且可以
以二进制形式向接收者显示
文件。 对于非 Exchange 来说没有用
服务器收件人。

如果您阅读我进一步引用的知识库,它会提供有关 Exchange 管理员如何以及应该禁用 Internet RTF 的说明。

Please could you give a short
description on what winmail.dat is and
why it is here to annoy us.

kb138053

When an end user sends mail to the
Internet from an Exchange Windows or
Outlook client, a file attachment
called Winmail.dat may be
automatically added to the end of the
message if the recipient's client
cannot receive messages in Rich Text
Format (RTF). The Winmail.dat file
contains Exchange Server RTF
information for the message, and may
appear to the recipient as a binary
file. It is not useful to non-Exchange
Server recipients.

If you read the kb I referenced further it gives instructions on how Exchange administrators can and should disable RTF to the internet.

妞丶爷亲个 2024-07-17 05:29:45

所以当我在电子邮件内容类型中看到此内容时:
“application/ms-tnef”

我用这个:
http://www.freeutils.net/source/jtnef/

so when i see this in email Content-Type:
"application/ms-tnef"

I use this:
http://www.freeutils.net/source/jtnef/

你在我安 2024-07-17 05:29:45

只是关于tinnef的评论:并非所有称为winmail.dat的东西都是普通的TNEF。 从 Outlook 发送的会议邀请则不然,因此大多数 TNEF 解码器在这种情况下都会失败。
在 Mac OSX 上,我发现“Letter Opener”是少数可以打开此类附件的程序之一。 有趣的是,它们还可以包含 rtf 文档。

http://www.restoroot.org/LetterOpenerPro

Just a comment about tinnef: Not everything that is called winmail.dat is ordinary TNEF. Meeting inviations sent from Outlook are not, thus most TNEF decoders will fail in this case.
On Mac OSX, I found "Letter Opener" to be one of the rare programs that can open such attachments. Funny enough, they can also contain rtf documents.

http://www.restoroot.org/LetterOpenerPro

我要还你自由 2024-07-17 05:29:45

还有一个纯 Python tnefparse 包。 应该可以使用 Jython 中的它。

There's also a pure-Python tnefparse package. It should be possible to use that from Jython.

梦醒灬来后我 2024-07-17 05:29:45

我在 Windows 上使用 wmdecode 很幸运。 当然,它是一个 EXE,而不是一个 java 项目。 但如果您遇到其他解决方案无法解码的 WINMAIL.DAT 文件,它可能会很有用。

I have had good luck with wmdecode on Windows. Granted, it's an EXE, not a java project. But it could be useful if you run into WINMAIL.DAT files that other solutions can't decode.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文