Ok... I played around a bit and dared to enter the dreaded realm of
javascript ;-) (which it is for me, being rather a sysadmin)

What this patch basically does is to introduce a new key value pair in
extensions.rdf ("isi:serverURL"), which is in turn used in
sogo-config.js to generate "baseURL". As far as I understand "updateURL"
is used for update and sogo server, so right now there is no way to give
separate URLs for them.
For me it seems to work, maybe some coder could have a look at it?

--- sogo-config.js  2013-09-26 10:24:22.000000000 +0200
+++ new-sogo-config.js  2014-12-17 17:25:06.000000000 +0100
@@ -39,17 +39,17 @@
                        .getService(Components.interfaces.nsIRDFService);
    var extensions
      = rdf.GetResource("http://inverse.ca/sogo-integrator/extensions";);
-   var updateURLres
-     = rdf.GetResource("http://inverse.ca/sogo-integrator/updateURL";);
+   var serverURLres
+     = rdf.GetResource("http://inverse.ca/sogo-integrator/serverURL";);
    var ds
      =
rdf.GetDataSourceBlocking("chrome://sogo-integrator/content/extensions.rdf");

    var updateArray;
    try {
-     var urlNode = ds.GetTarget(extensions, updateURLres, true);
+     var urlNode = ds.GetTarget(extensions, serverURLres, true);
      if (urlNode instanceof Components.interfaces.nsIRDFLiteral) {
-       var updateURL = urlNode.Value;
-       updateArray = updateURL.split("/");
+       var serverURL = urlNode.Value;
+       serverArray = serverURL.split("/");
      }
    }
    catch (e) {
@@ -65,7 +65,7 @@
      sogoPrefix = "/SOGo";
    }

-   sogoConfig['baseURL'] = (updateArray[0] + "//" + updateArray[2]
+   sogoConfig['baseURL'] = (serverArray[0] + "//" + serverArray[2]
                             + sogoPrefix + "/dav/" + sogoUserName() + "/");
  }


On 12/17/2014 02:13 PM, Stefan Upietz wrote:
> Hello list,
> 
> I'm trying to configure Integrator for our environment and setup an
> update server. In the docs it says "This file is used for locating the
> extension update server and the SOGo server, which we consider
> to be the same for the moment." Now, I'm looking for a way to separate
> these services. I have already setup an update server and changed
> integrator.xpi. Thunderbird with that integrator connects and downloads
> correctly, but then hangs and a lot of messages are logged to the
> tb-console. I noticed before that there are quite a few warnings/
> messages when installing sogo connector, so I'm not really able to
> distinguish between problem related and "normal" messages.
> 
> Which settings do I have to adjust in what files to separate the update
> from the sogo server?
> 
> TB: 31.1.2 (Windows 7, 64bit)
> SOGo: 2.2.11a (Debian 7, 64bit)
> sogo-integrator-31.0.0.xpi
> lightning-3.3.1-tb+sm-windows.xpi
> sogo-connector-31.0.0.xpi
> 
> Thanks,
> 
> Stefan
> 
-- 
users@sogo.nu
https://inverse.ca/sogo/lists

Reply via email to