<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<OfficeApp
    xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
    xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0"
    xsi:type="MailApp">

  <!--
    LEGACY manifest for classic Outlook 2016 (volume-licensed MSI, Trident/
    IE11 webview, Mailbox 1.4 ceiling). Installed ALONGSIDE the standard
    add-in (manifest.xml) — different Id, different display name, different
    SourceLocation (/addin/taskpane.html, a static ES5 bundle, not the
    Next.js taskpane). Keep Requirements at Mailbox 1.3; do not raise.
  -->
  <Id>56c051ee-31bf-45d1-865d-ddb3cb1c4728</Id>
  <Version>1.0.0.3</Version>
  <ProviderName>MySecureSend</ProviderName>
  <DefaultLocale>en-AU</DefaultLocale>
  <DisplayName DefaultValue="MySecureSend (Outlook 2016)" />
  <Description DefaultValue="Encrypt file attachments and deliver passwords securely via SMS, Email or Date of Birth. Version for Outlook 2016 and older desktop clients." />
  <IconUrl DefaultValue="https://mysecuresend.com.au/icon-legacy-32.png" />
  <HighResolutionIconUrl DefaultValue="https://mysecuresend.com.au/icon-legacy-80.png" />
  <SupportUrl DefaultValue="https://mysecuresend.com.au/dashboard/help" />

  <AppDomains>
    <AppDomain>https://mysecuresend.com.au</AppDomain>
    <AppDomain>https://appsforoffice.microsoft.com</AppDomain>
    <AppDomain>https://ajax.aspnetcdn.com</AppDomain>
  </AppDomains>

  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>

  <Requirements>
    <Sets DefaultMinVersion="1.3">
      <Set Name="Mailbox" MinVersion="1.3" />
    </Sets>
  </Requirements>

  <FormSettings>
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://mysecuresend.com.au/addin/taskpane.html" />
      </DesktopSettings>
    </Form>
  </FormSettings>

  <Permissions>ReadWriteMailbox</Permissions>

  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit" />
  </Rule>

  <DisableEntityHighlighting>false</DisableEntityHighlighting>

  <!--
    VersionOverridesV1_0 only (no nested V1.1) — same rationale as the
    standard manifest: nested V1.1 can render the ribbon button dead in some
    clients. Outlook 2016 MSI reads V1.0. Group/control ids are distinct
    from manifest.xml so both add-ins can coexist in the same Outlook.
  -->
  <VersionOverrides
      xmlns="http://schemas.microsoft.com/office/mailappversionoverrides"
      xsi:type="VersionOverridesV1_0">

    <Requirements>
      <bt:Sets DefaultMinVersion="1.3">
        <bt:Set Name="Mailbox" MinVersion="1.3" />
      </bt:Sets>
    </Requirements>

    <Hosts>
      <Host xsi:type="MailHost">
        <DesktopFormFactor>
          <ExtensionPoint xsi:type="MessageComposeCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="mssLegacyMsgComposeGroup">
                <Label resid="GroupLabel" />
                <Control xsi:type="Button" id="mssLegacyComposeOpenTaskpaneButton">
                  <Label resid="TaskpaneButton.Label" />
                  <Supertip>
                    <Title resid="TaskpaneButton.Label" />
                    <Description resid="TaskpaneButton.Tooltip" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.16x16" />
                    <bt:Image size="32" resid="Icon.32x32" />
                    <bt:Image size="80" resid="Icon.80x80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="Taskpane.Url" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16x16" DefaultValue="https://mysecuresend.com.au/icon-legacy-16.png" />
        <bt:Image id="Icon.32x32" DefaultValue="https://mysecuresend.com.au/icon-legacy-32.png" />
        <bt:Image id="Icon.80x80" DefaultValue="https://mysecuresend.com.au/icon-legacy-80.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Taskpane.Url" DefaultValue="https://mysecuresend.com.au/addin/taskpane.html" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="GroupLabel" DefaultValue="MySecureSend" />
        <bt:String id="TaskpaneButton.Label" DefaultValue="(2016) Send Securely" />
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="TaskpaneButton.Tooltip" DefaultValue="Encrypt files and deliver passwords securely via SMS, Email or Date of Birth. This is the version for Outlook 2016 and older desktop clients." />
      </bt:LongStrings>
    </Resources>

  </VersionOverrides>
</OfficeApp>
