Mork (file format) explained

Mork
Extension:.mab, .msf, .dat
Owner:Netscape, later Mozilla Foundation
Genre:Database
Standard:None (reference implementation)
Url:Mozilla Developer Center

Mork is a computer file format used by several email clients and web browsers produced by Netscape and Mozilla Foundation. It was developed by David McCusker[1] with the aim of creating a minimal database replacement that would be reliable, flexible, and efficient, and use a file format close to plain text.[2]

The format was named after the character Mork from the TV show Mork & Mindy.[1]

Usage

The Mork format was used in most Mozilla-based projects, including the Mozilla browser suite, SeaMonkey, Firefox, and Thunderbird. In Firefox, it was used for browsing history data and form history data. In Thunderbird, it is still used for many things, such as address book data (.mab files) and the mail folder summaries (.msf files).

Criticisms

Mork has many suboptimal properties. For example, despite the aim of efficiency, storing Unicode text takes three or six bytes per character.

The file format has been severely criticized by Jamie Zawinski, a former Netscape engineer. He has criticized the apparent "textual" format on the grounds that it is "not human-readable",[3] complaining that the impossibility of writing a correct parser for the format,[4] and referred to it as "...the single most braindamaged [sic] file format that I have ever seen in my nineteen year career".

In response, McCusker stated that the problems with Mork resulted from "conflicting requirements" and that he merely fixed scalability issues in bad code he "inherited".[5]

The Register lambasted the Mork database with their article "Why has Thunderbird turned into a turkey?"[6]

Obsolescence

The replacement system, used for storing all user configuration data, is called MozStorage. MozStorage is based on the SQLite database. Beginning with Firefox 3.0, Firefox uses it for its history, form history and bookmark data. The storage engine was also included in Firefox 2.0, but only for use with extensions.[7]

Mork was completely removed from Firefox in 2011.[8] [9]

Plans existed for Mork to be replaced with MozStorage in Thunderbird 3.0.,[10] but as of 2023 still used the Mork file format.[11] As of 2012, SeaMonkey used Mork for at least its POP and IMAP mail folders indexes.

See also

External links

Notes and References

  1. Web site: Mork What Is It — MDC . Developer.mozilla.org . https://web.archive.org/web/20191008061717/https://developer.mozilla.org/en-US/docs/Mozilla/Tech/Mork/What_is_it. 2019-10-08. 2007-09-16 . 2009-08-19.
  2. Web site: Mork Why — MDC . Developer.mozilla.org . 2007-09-16 . 2009-08-19.
  3. Web site: mork.pl: Perl program to extract metadata from a Mork database . Jamie . Zawinski . jwz.org . 2009-08-19.
  4. Web site: Bug 241438 – please make history.dat easier to parse (i.e., not Mork) . Bugzilla.mozilla.org . 2009-08-19.
  5. Web site: erys: resume: netscape: mork: jwz . https://web.archive.org/web/20050525080139/http://www.erys.org/resume/netscape/mork/jwz.html . 2005-05-25 . . 2005-05-25 . 2009-08-19 . dead .
  6. Web site: Why has Thunderbird turned into a turkey?. www.theregister.co.uk.
  7. Web site: Paul . Ryan . Features cut from Firefox 2 . Arstechnica.com . 2006-04-30 . 2009-08-19.
  8. Web site: Remove Mork from Mozilla-Central.
  9. Web site: Mork to be removed from Firefox 7.
  10. Web site: Thunderbird 3 Planning . Wiki.mozilla.org . 2009-08-10 . 2009-08-19.
  11. Web site: 11050 - Use mozStorage or IndexedDB instead of Mork for the message summary database . 2023-05-04 . bugzilla.mozilla.org . en.