电子邮件应用程序中的 SQL
我希望能够对我的电子邮件收件箱执行 SQL 查询。 例如,通过输出,我可以制作有关我发送或接收的电子邮件数量的图表。 我想分析我的表现以及是什么让我忙碌。 我的邮箱似乎是一个不错的起点。
我在线使用 Gmail,通过 IMAP 使用 Thunderbird、Outlook 2007 和 Mail.app。 有没有一种简单的方法可以将其中一个应用程序与我可以通过 SQL 访问的内容连接起来?
已尝试过:
- Thunderbird 没有这方面的附加组件(或者我找不到它)。
- 我怀疑 Outlook 能够与 MS Access 一起执行某些操作,但我不知道如何执行。
- 我的客户似乎都无法将所有内容导出到有用的内容,例如 CVS 或 Excel 的 .xls。 从那时起,我可以导入到 Access 并完成。
更新:Access 2007 确实有一个连接 Outlook 的向导。 但当我运行它时,Office 无缘无故地抱怨找不到 Outlook 2007(?)。 更新 2:您可以通过将 Outlook 设置为默认电子邮件客户端、关闭 Outlook 并重新启动来解决此问题。
I would like to be able to perform SQL queries on my e-mail inbox. With the output, I can make graphs about how much e-mails I send or receive for example. I want to analyze my performance and what keeps me busy. My mailbox seems like a good place to start.
I'm using Gmail on-line, and Thunderbird, Outlook 2007 and Mail.app trough IMAP. Is there an easy way how I can connect one of those apps with something I can SQL to?
Allready tried:
- Thunderbird does not have an add-on for this (or I couldn’t find it).
- I suspect Outlook to be able to do something together with MS Access, but I wouldn't know how.
- None of my client seems to be able to export everyting to something useful, like CVS or Excel's .xls. From there on, I can import to Access and done.
UPDATE: Access 2007 does have a wizard on connecting to outlook. But when I run it, Office starts for no reaston to complain that Outlook 2007 is not found (?).
UPDATE 2: You can fix this by setting Outlook as the default e-mail client, closing outlook and starting it again.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您只需通过 Access 向导或代码将 Outlook 连接到 Access (http://support.microsoft .com/kb/209946/en-us)
You can simply connect Outlook to Access via Access Wizards or code (http://support.microsoft.com/kb/209946/en-us)
您可以使用任意数量的脚本解析 mbox 文件(Thunderbird 用于存储其消息),例如 this 然后对您喜欢的消息执行任何 sql。
You can parse mbox files (which Thunderbird uses to store it's messages) using any number of scripts like this then do any sql on the messages you like.
我同意 stalepretzel 的观点,如果你找不到任何现成的包装,你应该自己做。
我要做的是:
您可以充分利用 mess822 软件包来解析邮件标头,然后使用它来填充数据库。
我认为很多脚本语言(perl、python)都有类似的库(可能还有 IMAP)并且应该很容易组合在一起。
I agree with stalepretzel, you should probably make your own if you can't find any ready-to-go package.
What I'd do is:
You could make good use of the mess822 software package to parse the mail headers, then use that to populate a database.
I think a lot of script languages (perl, python) have similar libraries (probably for IMAP as well) and should be fairly easy to hack together.
我建议制作你自己的插件。 我不熟悉 Thunderbird 插件(而且我只涉足过 FF 插件),但我认为如果您熟悉 Javascript,那么它们就像 FF 插件一样。 我会研究 Thunderbird 插件,并创建一个在收到消息时运行 AJAX 脚本的插件。 该 AJAX 可以联系 PHP 脚本(您需要在 Apache 之类的东西上运行该脚本,可能只是在您的家用计算机上)。 该 PHP 脚本反过来会解释 Thunderbird 的 Javascript 发送的数据,并将其输入数据库。
I suggest making your own addon. I'm not familiar with Thunderbird addons (and I've only dabbled in FF ones), but I assume they're like FF addons in that if you know Javascript your well on your way. I would research Thunderbird addons, and create one that runs an AJAX script whenever it receives a message. That AJAX could contact a PHP script (which you'd need to run on something like Apache, possibly just on your home computer). This PHP script, in turn, would interpret the data that Thunderbird's Javascript sent, and enter that into a database.