On 1/24/2011 3:16 PM, Birger Brunswiek wrote:
Hi All,
I setup a custom integrator plugin (version 3.104) for Thunderbird.
Following the documentation
<http://www.sogo.nu/files/docs/SOGo%20Mozilla%20Thunderbird%20Configuration.pdf>
I created a custom rdf and updates.php file (attached). After
installing the plugin in Thunderbird I can see Thunderbird downloading
the connector and lightning extensions. They are also correctly saved
in the user's temp directory. Thunderbird then requests a restart and
restarts itself if I do not approve within seconds. Thunderbird then
starts to download the extensions again, requests a restart, restarts
and keeps doing this forever. The extensions actually never get installed.
If I install the connector and lightning extensions manually and then
install the connector, everything is working just fine as long as I do
not change updates.php to instruct the connector to perform an upgrade
in which case the download-restart-loop returns.
Any pointers?
Interestingly the files written to the user's temp directory are
called sogo-connector-3.104.xpi and lightning-1.0b2.104i.xpi but they
are in fact gzips of the original files provided by the update server.
Those files cannot be installed in Thunderbird directly unless I
ungzip them.
Cheers,
Birger
Part of your updates.php file looks suspect. Try the following instead.
$pluginname = $_GET["plugin"];
$plugin =& $plugins[$pluginname];
$application =& $applications[$plugin["application"]];
if ( $plugin ) {
$platform = $_GET["platform"];
if ( $platform
&& file_exists( $platform . "/" . $plugin["filename"] ) ) {
$plugin["filename"] = $platform . "/" . $plugin["filename"];
}
elseif ( !file_exists( $plugin["filename"] ) ) {
$plugin = false;
}
}
Are your plugins in the "downloads" folder with your updates.php? The
Integrator and Connector should be in the same folder, and the Lightning
plugin should be in it's respective platform-dependent sub-directory.
--
[email protected]
https://inverse.ca/sogo/lists