On 09/03/2018 06:16 AM, "Kai-Uwe Rommel"" ([email protected]) wrote:
Where is the automation documented, e.g. what does it exactly?
Looks I did not find this gem yet. But I am really interested.
I am only using SOGo for a very small scale, but so far I had to
define both
calendar and contact connection with one CalDAV/CardDAV URL per
user for both
cases (SOGo connector vs. Thunderbird internal plus CardBook).
How could I have made this easier ("automatic") with the SOGo
connector?
https://sogo.nu/files/docs/SOGoMozillaThunderbirdConfigurationGuide.html
Especially section 4, customizing the integrator component. I use the
attached script to download and update the extensions on my systems.
(It's a Jinja2 template used in Ansible, so replace "{{ public_hostname
}}" with the hostname that you use.) This customization allows you to
push updates using the method described in section 5.
When configured correctly, the SOGo components will automatically
connect to the server which matches the first account defined in
Thunderbird. It's possible the reason that you had to manually set up
the calendars/contacts is that you were modifying older Thunderbird
profiles, where an account other than the one you wanted to use with
SOGo was already defined.
--
[email protected]
https://inverse.ca/sogo/lists
#!/bin/sh
iversion="31.0.4"
cversion="31.0.4"
# Exit if this version is already in place
test -e /var/www/sogo/plugins/Linux_x86_64-gcc3/sogo-connector-"$cversion".xpi
&& exit 0
cd /var/tmp || exit 72
wget --progress=dot
http://www.sogo.nu/files/downloads/SOGo/Thunderbird/sogo-connector-"$cversion".xpi
|| exit 74
wget --progress=dot
http://www.sogo.nu/files/downloads/SOGo/Thunderbird/sogo-integrator-"$iversion"-sogo-demo.xpi
|| exit 74
tmpd=$(mktemp -d /var/tmp/integrator-XXXXXX)
pushd "$tmpd"
unzip /var/tmp/sogo-integrator-"$iversion"-sogo-demo.xpi || exit 74
cat > chrome/content/extensions.rdf <<EOF
<?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://{{ public_hostname
}}/plugins/updates.php?plugin=%ITEM_ID%&version=%ITEM_VERSION%&platform=%PLATFORM%">
<li>
<Description
em:id="[email protected]"
em:name="SOGo Integrator"/>
</li>
<li>
<Description
em:id="[email protected]"
em:name="SOGo Connector"/>
</li>
</Seq>
</RDF>
EOF
zip -r /var/tmp/sogo-integrator-"$iversion".xpi * || exit 74
popd
for x in Darwin_x86-gcc3 Darwin_x86_64-gcc3 Linux_x86-gcc3 Linux_x86_64-gcc3
WINNT_x86-msvc
do
test -d /var/www/sogo/plugins/"$x" || mkdir /var/www/sogo/plugins/"$x"
ln /var/tmp/sogo-connector-"$cversion".xpi
/var/www/sogo/plugins/"$x"/sogo-connector-"$cversion".xpi || exit 74
ln /var/tmp/sogo-integrator-"$iversion".xpi
/var/www/sogo/plugins/"$x"/sogo-integrator-"$iversion".xpi || exit 74
restorecon -R /var/www/sogo/plugins/"$x"
done
rm -r "$tmpd" /var/tmp/sogo-integrator-"$iversion"-sogo-demo.xpi
/var/tmp/sogo-connector-"$cversion".xpi /var/tmp/sogo-integrator-"$iversion".xpi