tis-zimbra-connector-outlook

1944-4
Zimbra Connector for Microsoft Outlook
3274 downloads
Download
See build result See VirusTotal scan
tis-zimbra-connector-outlook icon
  • package : tis-zimbra-connector-outlook
  • name : Zimbra Connector for Microsoft Outlook
  • version : 1944-4
  • categories : Messaging
  • maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ,Jordan ARNAUD
  • editor : Synacor, Inc.
  • licence : opensource_free,wapt_public
  • locale : all
  • target_os : windows
  • impacted_process :
  • architecture : x64
  • signature_date : 2024-09-11 11:16
  • size : 23.08 Mo
package           : tis-zimbra-connector-outlook
version           : 1944-4
architecture      : x64
section           : base
priority          : optional
name              : Zimbra Connector for Microsoft Outlook
categories        : Messaging
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ,Jordan ARNAUD
description       : Zimbra Connector for Microsoft Outlook
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Connecteur Zimbra pour Microsoft Outlook
description_pl    : Konektor Zimbra dla programu Microsoft Outlook
description_de    : Zimbra-Anschluss für Microsoft Outlook
description_es    : Conector Zimbra para Microsoft Outlook
description_pt    : Conector Zimbra para Microsoft Outlook
description_it    : Connettore Zimbra per Microsoft Outlook
description_nl    : Zimbra Connector voor Microsoft Outlook
description_ru    : Коннектор Zimbra для Microsoft Outlook
audit_schedule    : 
editor            : Synacor, Inc.
keywords          : 
licence           : opensource_free,wapt_public
homepage          : 
package_uuid      : a47d54d8-4f62-48e6-9580-d4e9302a05ac
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 10.0
max_os_version    : 
icon_sha256sum    : 960bd49aacb32b189f0afcb8ea14ba56662cc2c42ed80992436da555cf0ce46a
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-09-11T11:16:05.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : O9eM5491y3pbcttGt+4hFJxjJeeuwyZDqNIJvSUsO4B2Mx+AdjwJaRMGLbgbPkhiSccJe5wltddjW9InbleYr/hNGBpQAyXH8RrfIBRBEva8MYYeOnxQkrGB/25XlL13CR5/ZFWy5Ke143DTwkahvUVUNHRPtw7zcr+xS7OACWG1FCbFe9pzy66V0u4Yqjdy8WG+Z2eWncUuZKRO21QuN0K9217cJAdo06ZBTDKa8KX3rwI5w8HI1dUNVNBz+Y9AzU57fPhcICopkTIypZSx45LPKndWPrwS0+dD0G9NHe51DF1S4fKnusavS3wH93N9ESZhzlRQQVIUxvetadeuww==
# -*- coding: utf-8 -*-
from setuphelpers import *

"""
{
    "key": "{89D59DBA-173A-4D13-8AB9-606F132F70FE}",
    "name": "Zimbra Connector for Microsoft Outlook",
    "version": "9.0.0.1941",
    "install_date": "2024-01-12 00:00:00",
    "install_location": "",
    "uninstall_string": "MsiExec.exe /I{89D59DBA-173A-4D13-8AB9-606F132F70FE}",
    "publisher": "Synacor, Inc.",
    "system_component": 0,
    "win64": true,
}

"""


def install():
    if params.get("install_with_luti", False):
        WAPT.install("tis-microsoft-office-365-business")

    bin_name = glob.glob("ZimbraConnectorOLK_*.msi")[0]

    # if "x64" in control.architecture:
    #     app_uninstallkey = "{89D59DBA-173A-4D13-8AB9-606F132F70FE}"
    # else:
    #     app_uninstallkey = "{7B50AD56-1BE7-4006-97E2-B6969930BB5F}"
    try:
        # Installing the software
        install_msi_if_needed(
            bin_name,
            min_version=control.get_software_version(),
            timeout=300,
            keywords="Zimbra Connector",
            get_version=get_version
        )
    except Exception as e:
        if not installed_softwares("Outlook"):
            print(f"INFO: Microsoft Outlook needs to be installed.")
        raise


def get_version(key):
    return key['version'].split('.')[-1]
# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    update_dict = {
        "bin_contains": {
            "windows-x64": "_x64.msi",
            "windows-x86": "_x86.msi",
        },
    }
    url = "https://www.zimbra.com/product/addons/zimbra-connector-for-outlook-download/"

    # Getting latest version from official sources
    print("URL used is: %s" % url)
    for bs_search in bs_find_all(url, "a", "rel", "noopener", proxies=proxies):
        if update_dict["bin_contains"][f'{ensure_list(control.target_os)[0].split("(")[0]}-{ensure_list(control.architecture)[0]}'] in bs_search.get(
            "href", ""
        ):
            download_url = bs_search["href"]
            latest_bin = download_url.split("/")[-1]
            version = latest_bin.split("_")[1]
            break

    # Downloading latest binaries
    print("Latest %s version is: %s" % (control.name, version))
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

    # Deleting outdated binaries
    remove_outdated_binaries(latest_bin)
    # arch_list = ensure_list(control.architecture)
    # remove_outdated_binaries(version, filename_contains=("x64" if "x64" in arch_list else "x86" if "x86" in arch_list else []))

    # Checking version from file
    if get_os_name() == "Windows" and "windows" in control.target_os.lower():
        version_from_file = get_version_from_binary(latest_bin).split('.')[-1]
        if Version(version_from_file, 4) == Version(version, 4):
            print(f"INFO: Binary file version ({version_from_file}) corresponds to online version ({version})")
        else:
            error(f"ERROR: Binary file version ({version_from_file}) do NOT corresponds to online version ({version})")

    # Changing version of the package
    if Version(version, 4) > Version(control.get_software_version(), 4):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        package_updated = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.set_software_version(version)
    control.save_control_to_wapt()

    # Validating or not update-package-sources
    return package_updated

    # # Changing version of the package and validating update-package-sources
    # return complete_control_version(control, version)
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
4d2d869988ca8dcdaf75bda634721adf92d9127045478b709b2d86dff4a1d62a : WAPT/control
960bd49aacb32b189f0afcb8ea14ba56662cc2c42ed80992436da555cf0ce46a : WAPT/icon.png
2081c1dc80b3db6966e49240d8d80c32664fc7dad89fa8346cea76c25b585723 : ZimbraConnectorOLK_1944_x64.msi
 : __pycache__
1291aaf3d4d8b50a9c825971e8aa79671ce7740f105cb085b5373de1b9f95128 : luti.json
b9ec3ac79616916194cdfe6b28a8efc177ebfd8a829a37194a35f55a394636b9 : setup.py
c69243f46e368375a4e61906bff1f48a03bb8ad7b8f3dfa921cb032d0ae1c50e : update_package.py