基于 Linux 的解决方案的初学者指南,用于从 MS Outlook 的 .pst 文件读取邮件内容(包括附件)
我刚刚开始了解 MS Outlook 如何以其自己的格式(.pst 格式)存储其邮件的基础知识,并且我必须提供一个脚本(搜索某些内容或编写我自己的),该脚本 -
- 在 上解析这些 .pst 文件Linux 系统(已压缩并发送至此处)
- 为每封邮件创建一个 .txt 文件。为每个附件创建一个 .zip 文件。这是要做的基本事情。我还需要为要创建的文本文件分配一些唯一的名称。
- 任何语言 - PHP、Java、Python - 以可用/适用者为准。
一些基本问题
如果有人能够澄清这些基本问题,那就太好了 -
- 邮件内容和附件信息都存储为 .pst 文件吗?
到目前为止我已经得到了这些
Google 电子邮件上传器(开源), 他们负责阅读部分...
关于尝试这些解决方案或其他一些解决方案有什么建议吗?或者,如果您可以讲述您的任何经历,以便我在实际尝试任何解决方案之前得到一个想法,然后意识到这样是不可能的。任何指示将不胜感激。我基本上来自 LAMP 背景,对其他语言知之甚少。最近做了一些 bash 编程。
谢谢,
桑迪潘
更新
JPST 工作正常。有专门用于这些事情的模块 - 读取所有消息(您可以简单地编写代码以保存在文件中),保存附件和许多其他事情。
我还了解到邮件内容和附件都存储在 .pst 文件中。
I have just started with the basics of how MS Outlook stores its mails in its own format (.pst format) and I have to deliver a script (search something or write my own) which -
- parses these .pst files on a linux system (which were zipped and sent here)
- creates a single .txt file for every mail. Creates a single .zip file for every attachment. This is the basic thing to be done. I also need to assign some unique names to the text files to be created.
- Any language - PHP, Java, Python - whichever is available/applicable.
Some basic Questions
Would be nice if anyone could clarify these basic questions -
- Are both mail contents as well as attachment info stored as .pst files?
I got these so far
- Read contents of .pst file with php
- How can I dump emails from an Outlook .pst file into a MySQL database? says that
Google email uploader (open source),
they do the reading part...
- In this question - Outlook PST File Parsing in Python, there is mention about libpst-python.
Any suggestions regarding which of these solutions or some others to try? Or if you could tell about any of your experiences so that I get an idea before actually trying out any solution and later realizing it is not possible that way. Any pointers would be appreciated. I basically come from a LAMP background with little knowledge in other languages. Have done a little bit of bash programming recently.
Thanks,
Sandeepan
Update
JPST works fine. There are modules exactly for these things - read all messages (you can simple write code to save in files), save the attachments and many other things.
Also I came to know that mail contents as well as attachments, all are stored in the .pst files.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您还可以考虑使用 Aspose.Network 来解析 Outlook PST 文件。在Linux环境中,有两种方法使用Aspose.Network解析PST。
使用Aspose.Network for Java。这需要 Sun 的 JDK,并且可以在 Linux 上本地运行,因为 Aspose.Network for Java 库是用 Java 编写的。
使用 Aspose.Network for . NET 与 Linux 上的 Mono。该解决方案依赖于 Mono 在 Linux 环境中运行 .NET 代码,因为 Aspose.Network for .NET 库纯粹是用 .NET 编写的。 这里是用于从 PST 导出消息 (MSG) 的示例 .NET 程序。
You may also consider Aspose.Network for parsing Outlook PST files. In Linux environment, there are 2 ways to parse PST with Aspose.Network.
Use Aspose.Network for Java. This requires Sun's JDK and will run natively on Linux, because Aspose.Network for Java library is written in Java. Here is a sample Java program for exporting MSG files from PST.
Use Aspose.Network for .NET with Mono on Linux. This solution depends on Mono for running .NET code in Linux environment, because the Aspose.Network for .NET library is written purely in .NET. Here is the sample .NET program for exporting messages (MSG) from PST.
您可以查看 http://alioth.debian.org/projects/libpst/ 或http://www.genusa.com/utils/pmseu.htm
You could look at either http://alioth.debian.org/projects/libpst/ or http://www.genusa.com/utils/pmseu.htm