<?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">

  <Id>1d4f5b8a-9c3e-4b7d-8a6f-2e9c5d1b3a7f</Id>
  <Version>1.0.0.3</Version>
  <ProviderName>MySecureSend</ProviderName>
  <DefaultLocale>en-AU</DefaultLocale>
  <DisplayName DefaultValue="MySecureSend" />
  <Description DefaultValue="Encrypt file attachments and deliver passwords securely via SMS, Email or Date of Birth." />
  <IconUrl DefaultValue="https://mysecuresend.com.au/icon-32.png" />
  <HighResolutionIconUrl DefaultValue="https://mysecuresend.com.au/icon-80.png" />
  <SupportUrl DefaultValue="https://mysecuresend.com.au/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/plugin/outlook" />
      </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 (no nested V1.1).
    Previously this block wrapped a nested V1.1 sibling for SupportsPinning.
    Removed because New Outlook for Windows can reject nested V1.1 manifests,
    showing a red icon on the ribbon button. Trade-off: taskpane no longer
    pins across compose windows; user re-opens it per window if needed.
    Defines the compose-mode ribbon button via MessageComposeCommandSurface;
    Outlook 2016/2019 desktop, Outlook for Mac, OWA, and New Outlook all read
    V1.0 successfully.
  -->
  <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="mssMsgComposeGroupV10">
                <Label resid="GroupLabel" />
                <Control xsi:type="Button" id="mssComposeOpenTaskpaneButtonV10">
                  <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-16.png" />
        <bt:Image id="Icon.32x32" DefaultValue="https://mysecuresend.com.au/icon-32.png" />
        <bt:Image id="Icon.80x80" DefaultValue="https://mysecuresend.com.au/icon-80.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Taskpane.Url" DefaultValue="https://mysecuresend.com.au/plugin/outlook" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="GroupLabel" DefaultValue="MySecureSend" />
        <bt:String id="TaskpaneButton.Label" DefaultValue="Send Securely" />
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="TaskpaneButton.Tooltip" DefaultValue="Encrypt attachments and deliver passwords securely via SMS, Email or Date of Birth." />
      </bt:LongStrings>
    </Resources>

  </VersionOverrides>
</OfficeApp>
