Koozali.org: home of the SME Server

SOGo - Getting Thunderbird to install connector and lighting automatically

Offline ntblade

  • *
  • 252
  • +0/-0
Firstly can I just say thanks for an excellent contrib!

I've just done a fresh install of SME 8.0, memchache (manually) and SOGo following the intructions in the wiki.  I have a minor problem.

I've installed thunderbird v 10 ESR and the extensions I've downloaded are
Lightning v 1.2.3, sogo connector 10.0.2 and sogo integrator 10.0.2.

I instlled thunderbird and connected to the sme server using IMAP then installed integrator.  I restarted but TBird doesn't install the extra extensions.

Any ideas where to look for clues?

Many thanks

NTB

Offline nicolatiana

  • *
  • 724
  • +0/-0
Look for paths like this:
https://<sme server name.domain>/
are correct in .xpi files and in the updates.php file.
 
Nicola
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia.

Offline ntblade

  • *
  • 252
  • +0/-0
Hi, thanks for the reply,
Just done a fresh install of a test sme server.  Here's my extensions.rdf:
Code: [Select]
<?xml version="1.0"?>
<!DOCTYPE RDF>
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:isi="http://inverse.ca/sogo-integrator/"
  xmlns:em="http://www.mozilla.org/2004/em-rdf#"
  xmlns:NC="http://home.netscape.com/NC-rdf#">
       <Seq about="http://inverse.ca/sogo-integrator/extensions"
          isi:updateURL="https://192.168.10.30/SOGo-plugins/updates.php?plugin=%ITEM_ID%&version=%ITEM_VERSION%&platform=%PLATFORM%">
          <li>
            <Description
              em:id="sogo-integrator@inverse.ca"
              em:name="SOGo Integrator"/>
          </li>
          <li>
            <Description
              em:id="sogo-connector@inverse.ca"
              em:name="SOGo Connector"/>
          </li>
          <li>
      <Description
em:id="{e2fda1a4-762b-4020-b5ad-a41df1933103}"
em:name="Lightning"/>
          </li>
        </Seq>
</RDF>
updates.php:
Code: [Select]
    <?php
     
/* updates.php - this file is part of SOGo
      *
      *  Copyright (C) 2006-2009 Inverse inc.
      *
      * Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
      *
      * This file is free software; you can redistribute it and/or modify
      * it under the terms of the GNU General Public License as published by
      * the Free Software Foundation; either version 2, or (at your option)
      * any later version.
      *
      * This file is distributed in the hope that it will be useful,
      * but WITHOUT ANY WARRANTY; without even the implied warranty of
      * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      * GNU General Public License for more details.
      *
      * You should have received a copy of the GNU General Public License
      * along with this program; see the file COPYING.  If not, write to
      * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
      * Boston, MA 02111-1307, USA.
      */
     
     /* This script handles the automatic propagation of extensions pertaining to a
        SOGo site. It requires PHP 4.1.0 or later. */
     
$plugins
     
= array( "sogo-connector@inverse.ca"
              
=> array( "application" => "thunderbird",
                        
"version" => "10.0.2",
                        
"filename" => "sogo-connector-10.0.2.xpi" ),
              
"sogo-integrator@inverse.ca"
              
=> array( "application" => "thunderbird",
                        
"version" => "10.0.2",
                        
"filename" => "sogo-integrator-10.0.2-sogo.xpi" ),
              
"{e2fda1a4-762b-4020-b5ad-a41df1933103}"
              
=> array( "application" => "thunderbird",
                        
"version" => "1.2.3",
                        
"filename" => "lightning-1.2.3-tb+sm-windows.xpi" ));
     
     
$applications
     
= array( "thunderbird" => "<em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id>
                     <em:minVersion>1.5</em:minVersion>
                     <em:maxVersion>2.0.*</em:maxVersion>"
,
              
"firefox" => "<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
                        <em:minVersion>1.5</em:minVersion>
                        <em:maxVersion>2.0.*</em:maxVersion>" 
);
     
     
$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;
       }
     }
     if ( 
$plugin ) {
       
header("Content-type: text/xml; charset=utf-8");
       echo (
'<?xml version="1.0"?>
' . "\n");
     ?>
     <!DOCTYPE RDF>
     <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
       xmlns:em="http://www.mozilla.org/2004/em-rdf#">
       <Description about="urn:mozilla:extension:<?php echo $pluginname ?>">
         <em:updates>
           <Seq>
             <li>
               <Description>
                 <em:version><?php echo $plugin["version"?></em:version>
                 <em:targetApplication>
                   <Description><?php echo $applications[$plugin["application"]] ?>
                     <em:updateLink>https://192.168.10.30/SOGo-plugins/<?php echo $plugin["filename"?></em:updateLink>
                   </Description>
                 </em:targetApplication>
               </Description>
             </li>
           </Seq>
         </em:updates>
       </Description>
     </RDF>
     <?php
     
} else {
       
header("Content-type: text/plain; charset=utf-8"true404);
       echo( 
'Plugin not found' );
     }
     
?>

The only difference seems to be the versions.  Any ideas?