[Followup-To set to n.p.m.mail-news]

Alexander Bergolth wrote:

My extension should query an ldap-server at thunderbird-startup if the user's email-settings are not yet configured. Based on the USER (or USERNAME) environment variable, the local ldap directory should be used to automatically configure the client. Therefore thunderbirds startup should wait until the results of the query arrive. So I guess an asynchronous simulation of a sync query would be the right thing to do.


Unfortunately I have no idea how to accomplish that. :(

Actually, that sounds a little harder. I think your initial plan of using nsLDAPSyncQuery was probably the best. So I'd suggest building it from the C++ and including it in your XPI. This will probably entail building a copy of the appropriate version of Thunderbird, probably with a .mozconfig tweak to turn on pref-autoconfig in the build.


Dan
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to