Closed Bug 418693 Opened 16 years ago Closed 15 years ago

Convert ISP-data files from RDF to JSON

Categories

(MailNews Core :: Backend, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: jminta, Assigned: jminta)

References

Details

Attachments

(2 obsolete files)

Attached patch patch v1 (obsolete) — Splinter Review
This is #6 on http://wiki.mozilla.org/Thunderbird:Thoughts_on_Removing_RDF

The isp-data files are already compiled into a javascript object at runtime.  So all I did was take intercept that runtime call, and reserialize those object back into JSON.  That means we get identical data, and don't have to worry about touching any callers. (Yay!)

I'm first attaching a 90% patch that works on my computer, but only with some hand-moving of files, etc.  Once I finish polishing up the makefile stuff it'll be ready for review.  Can someone tell me where googlemail.rdf and gmail.rdf were exported in the locales? That'd help a lot.

The second attachment is the modifications I made to the original ispUtils.js file to convert the data into JSON.  Third party providers can apply that patch, tweak the "domains" variable, and get similar serialization (The json file endes up in your profile directory).
Attached patch rdf->json conversion patch (obsolete) — Splinter Review
Assignee: nobody → jminta
Status: NEW → ASSIGNED
The googlemail thing's so obscure, I always wind up looking it up in the bug (well, strictly speaking, I always find bug 385205 and use it to look up bug 367562).

What happens is that http://mxr.mozilla.org/mozilla/source/mail/locales/Makefile.in#93 lists the contents of http://mxr.mozilla.org/mozilla/source/mail/locales/en-US/isp/isps.txt, tacks on .rdf, and installs them from mailnews/base/ispdata to isp/ab-CD/
Blocks: mail-killrdf
Proposed XML file format:
http://wiki.mozilla.org/Tb:Autoconfiguration#Config_file_format
It's very close to the RDF, but normal XML, which is easy to read and write in JS using E4X.
Blocks: 427198
Product: Core → MailNews Core
The XML has been implemented, and TB3 now looks up the XML files on mozillamessaging.com (which covers GMail and AOL, as the local RDF files used to do) and in the same location as the RDF files (for admins).

Closing WONTFIX.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
RDF files are therefore deprecated and the RDF code will be removed once the old account wizard is removed.
(In reply to comment #6)
> RDF files are therefore deprecated and the RDF code will be removed once the
> old account wizard is removed.

Is there any bug about this? Also, any timetable for moving movemail+RSS ispdata hackery into a real solution?
(In reply to comment #5)
> The XML has been implemented, and TB3 now looks up the XML files on
> mozillamessaging.com

Which bug did that? Does SeaMonkey needs to port anything?
(In reply to comment #8)
> Which bug did that? Does SeaMonkey needs to port anything?

(In reply to comment #9)
> Bug 422814

Thanks. Fine, SeaMonkey has already noticed that bug...
No longer blocks: 507669
Depends on: autoconfig
Attachment #304584 - Attachment is obsolete: true
Attachment #304586 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: