有谁知道现有的code读取莫克文件(雷鸟地址簿)? [英] Does anybody know of existing code to read a mork file (Thunderbird Address Book)?

查看:152
本文介绍了有谁知道现有的code读取莫克文件(雷鸟地址簿)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要读取雷鸟通讯录上飞。它存储在一个名为莫克的文件格式。不愉快的文件格式阅读。我发现了一个1999年的文章,解释的文件格式。我很想知道,如果有人已经通过这个过程已经消失,可以使code可用。我发现mork.pl由杰米Zawinski撰写(他曾在Netscape Navigator中),但我希望的.NET解决方案。

我希望计算器会出手相救,因为这似乎只是在浪费我的时间写的东西读此文件格式时,它应该是如此简单。

我爱评论说,杰米把他的 perl脚本。这是我最喜欢的部分:

 #让我说清楚,国琛是一个完整的吠叫疯子。
#这只是我见过的最愚蠢的文件格式。
 

解决方案

了$ C $的 Beagle搜索引擎C到解析莫克文件。这不是最内存高效的解决方案,但它的工作,可能是一个有用的起点。这里有一个链接到文件:

http://svn.gnome.org/viewvc/beagle/tags/BEAGLE_0_2_18/Util/Mork.cs?view=markup

(这几天小猎犬不使用该解析器了,我们写了一个雷鸟扩展,它只是将数据发送到比格犬本身的容易多了(支持)路径没有工作,而雷鸟是封闭的缺点,但是。还没有灌输到与最近的钝器砸向你的头的愿望的优势。)

I have the need to read the Thunderbird address book on the fly. It is stored in a file format called Mork. Not a pleasant file format to read. I found a 1999 article explaining the file format. I would love to know if someone already has gone through this process and could make the code available. I found mork.pl by Jamie Zawinski (he worked on Netscape Navigator), but I was hoping for a .NET solution.

I'm hoping StackOverflow will come to the rescue, because this just seems like a waste of my time to write something to read this file format when it should be so simple.

I love the comments that Jamie put in his perl script. Here is my favorite part:

#   Let me make it clear that McCusker is a complete barking lunatic.
#   This is just about the stupidest file format I've ever seen.

解决方案

The Beagle search engine had code to parse Mork files. It's not the most memory efficient solution, but it worked and could be a useful starting point. Here's a link to the file:

http://svn.gnome.org/viewvc/beagle/tags/BEAGLE_0_2_18/Util/Mork.cs?view=markup

(These days Beagle doesn't use this parser anymore; we took the easier (and supported) path of writing a Thunderbird extension which just sent the data to Beagle itself. Has the disadvantage of not working while Thunderbird is closed, but has the advantage of not instilling the desire to bash your head in with the nearest blunt instrument.)

这篇关于有谁知道现有的code读取莫克文件(雷鸟地址簿)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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