<?xml version="1.0" encoding="UTF-8"?>
<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>8b97fc52-25de-4d7a-bcf8-8e6bf542df91</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>OTL Asia</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="External Reply Helper" />
  <Description DefaultValue="Removes internal company recipients (@otlgp.com, @otlsb.cn) from To, Cc, and Bcc before replying externally." />
  <IconUrl DefaultValue="https://replyhelper.otlgp.com/assets/icon-64.png" />
  <HighResolutionIconUrl DefaultValue="https://replyhelper.otlgp.com/assets/icon-128.png" />
  <SupportUrl DefaultValue="https://www.otlgp.com" />
  <AppDomains>
    <AppDomain>https://replyhelper.otlgp.com</AppDomain>
  </AppDomains>

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

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

  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://replyhelper.otlgp.com/taskpane.html" />
        <RequestedHeight>450</RequestedHeight>
      </DesktopSettings>
    </Form>
  </FormSettings>

  <Permissions>ReadWriteItem</Permissions>

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

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Requirements>
      <bt:Sets DefaultMinVersion="1.3">
        <bt:Set Name="Mailbox" />
      </bt:Sets>
    </Requirements>

    <Hosts>
      <Host xsi:type="MailHost">
        <DesktopFormFactor>
          <!-- Message Compose extension point -->
          <ExtensionPoint xsi:type="MessageComposeCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="msgComposeGroup">
                <Label resid="GroupLabel" />
                <Control xsi:type="Button" id="msgComposeOpenPaneButton">
                  <Label resid="ButtonLabel" />
                  <Supertip>
                    <Title resid="ButtonTitle" />
                    <Description resid="ButtonDescription" />
                  </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://replyhelper.otlgp.com/assets/icon-16.png" />
        <bt:Image id="Icon.32x32" DefaultValue="https://replyhelper.otlgp.com/assets/icon-32.png" />
        <bt:Image id="Icon.64x64" DefaultValue="https://replyhelper.otlgp.com/assets/icon-64.png" />
        <bt:Image id="Icon.80x80" DefaultValue="https://replyhelper.otlgp.com/assets/icon-80.png" />
        <bt:Image id="Icon.128x128" DefaultValue="https://replyhelper.otlgp.com/assets/icon-128.png" />
      </bt:Images>

      <bt:Urls>
        <bt:Url id="Taskpane.Url" DefaultValue="https://replyhelper.otlgp.com/taskpane.html" />
      </bt:Urls>

      <bt:ShortStrings>
        <bt:String id="GroupLabel" DefaultValue="External Helper" />
        <bt:String id="ButtonLabel" DefaultValue="External Reply Helper" />
        <bt:String id="ButtonTitle" DefaultValue="Remove Internal Recipients" />
      </bt:ShortStrings>

      <bt:LongStrings>
        <bt:String id="ButtonDescription" DefaultValue="Open the helper to review and remove internal recipients before sending." />
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>

