- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我的TBIRD地址簿中有几个地址列表。
每当我需要编辑包含在多个列表中的地址时,就很难找到哪个列表包含要修改的地址。
作为帮助工具,我想读取几个文件,并仅向用户提供其中的一个列表
xxx.MAB文件仅包含一次搜索就包含搜索到的地址。
有了产生的列表,用户可以简单地仅编辑正确的地址列表。
我想最少了解所提到的MAB文件的格式,因此我可以对文件中的字符串OPEN + SEARCH。
提前致谢
an
PD已经问过mozilla论坛,但是mozilla并没有计划将地址合并到一个主文件中,而另一个列表只是包含指向主文件的链接。有一个个人的想法可以做到这一点,但是由于资源不足,他不知道什么时候来,
在这个论坛上,有一个类似的问题提到了MORK文件,但我的实际TBIRD似乎希望MAB文件中包含所有地址
最佳答案
恐怕没有答案可以为您解决这个问题。MORK
是一个文本数据库,其中包含地址簿数据(.mab
文件)和邮件文件夹摘要(.msf
文件)文件。
该格式由David McCusker编写,是各种数字 namespace 的混合,并且没有文档记录,似乎不再得到开发/维护/支持。掌握它的唯一方法是对它进行反向工程,同时使用这种格式查看源代码。
但是,有经验的人试图为这种文件格式编写解析器,但没有成功。根据Wikipedia的说法,前Netscape工程师Jamie Zawinski关于格式的说法是这样的:
...the single most brain-damaged file format that I have ever seen in my nineteen year career
In brief, let's count its (Mork's) sins:
- Two different numerical namespaces that overlap.
- It can't decide what kind of character-quoting syntax to use: Backslash? Hex encoding with dollar-sign?
- C++ line comments are allowed sometimes, but sometimes // is just a pair of characters in a URL.
- It goes to all this serious compression effort (two different string-interning hash tables) and then writes out Unicode strings without using UTF-8: writes out the unpacked wchar_t characters!
- Worse, it hex-encodes each wchar_t with a 3-byte encoding, meaning the file size will be 3x or 6x (depending on whether whchar_t is 2 bytes or 4 bytes.)
- It masquerades as a "textual" file format when in fact it's just another binary-blob file, except that it represents all its magic numbers in ASCII. It's not human-readable, it's not hand-editable, so the only benefit there is to the fact that it uses short lines and doesn't use binary characters is that it makes the file bigger. Oh wait, my mistake, that isn't actually a benefit at all."
关于file - 读取雷鸟地址mab文件内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17841815/
所以我有 2 std::map s >一个是“旧的”,一个是“新的”,我想知道哪些文件被删除了,这样就能够遍历差异并对 shared_ptr 做一些事情。这样的事情可能吗?如何做到? 最佳答案 虽然
我是一名优秀的程序员,十分优秀!