<?xml version="1.0" encoding="UTF-8"?>
<!-- Brand Check: warns before sending an email whose brand does not match the sending account.
     Add-in-only manifest (Outlook for Mac needs this kind, not the unified JSON one). -->
<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>2dd68185-e124-4306-a178-24374c84d278</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>HQA, Inc.</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Brand Check"/>
  <Description DefaultValue="Warns you before you send an email that mentions the other company's brand."/>
  <IconUrl DefaultValue="https://brandcheck.engageandretain.io/assets/icon-64.png"/>
  <HighResolutionIconUrl DefaultValue="https://brandcheck.engageandretain.io/assets/icon-128.png"/>
  <SupportUrl DefaultValue="https://brandcheck.engageandretain.io/"/>
  <Hosts>
    <Host Name="Mailbox"/>
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.12"/>
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://brandcheck.engageandretain.io/commands.html"/>
        <RequestedHeight>250</RequestedHeight>
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read"/>
  </Rule>
  <DisableEntityHighlighting>false</DisableEntityHighlighting>
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
      <Requirements>
        <bt:Sets DefaultMinVersion="1.12">
          <bt:Set Name="Mailbox"/>
        </bt:Sets>
      </Requirements>
      <Hosts>
        <Host xsi:type="MailHost">
          <Runtimes>
            <!-- Outlook on the web, Mac and new Outlook for Windows load this page... -->
            <Runtime resid="WebViewRuntime.Url">
              <!-- ...and classic Outlook for Windows loads this one bundled file. -->
              <Override type="javascript" resid="JSRuntime.Url"/>
            </Runtime>
          </Runtimes>
          <DesktopFormFactor>
            <ExtensionPoint xsi:type="LaunchEvent">
              <LaunchEvents>
                <!-- PromptUser: "Send Anyway / Don't Send". If the add-in cannot load, the mail still sends. -->
                <LaunchEvent Type="OnMessageSend" FunctionName="onMessageSendHandler" SendMode="PromptUser"/>
              </LaunchEvents>
              <SourceLocation resid="WebViewRuntime.Url"/>
            </ExtensionPoint>
          </DesktopFormFactor>
        </Host>
      </Hosts>
      <Resources>
        <bt:Urls>
          <bt:Url id="WebViewRuntime.Url" DefaultValue="https://brandcheck.engageandretain.io/commands.html"/>
          <bt:Url id="JSRuntime.Url" DefaultValue="https://brandcheck.engageandretain.io/launchevent.js"/>
        </bt:Urls>
      </Resources>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>
