<?xml version="1.0" encoding="UTF-8"?>
<!-- RLF Signatures - Outlook event-based signature add-in (replaces CodeTwo Email Signatures).
     Deploy: M365 admin center > Settings > Integrated apps > Upload custom apps > Office Add-in. -->
<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>b6a3c2f4-5e1d-4c8a-9f27-3d1e8a7b4c10</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>RLF Consulting</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="RLF Signatures"/>
  <Description DefaultValue="Automatically adds the RLF Survey + Mapping email signature to new messages, replies and forwards."/>
  <IconUrl DefaultValue="https://rlf-signatures.pages.dev/assets/icon-64.png"/>
  <HighResolutionIconUrl DefaultValue="https://rlf-signatures.pages.dev/assets/icon-128.png"/>
  <SupportUrl DefaultValue="https://rlfconsulting.com"/>
  <AppDomains>
    <AppDomain>https://rlf-signatures.pages.dev</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Mailbox"/>
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.1"/>
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://rlf-signatures.pages.dev/"/>
        <RequestedHeight>250</RequestedHeight>
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadWriteItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit"/>
  </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">
      <Description resid="AppDesc"/>
      <Requirements>
        <bt:Sets DefaultMinVersion="1.5">
          <bt:Set Name="Mailbox"/>
        </bt:Sets>
      </Requirements>
      <Hosts>
        <Host xsi:type="MailHost">
          <Runtimes>
            <!-- HTML runtime: Outlook on the web, new Outlook on Windows, Outlook on Mac, Outlook mobile.
                 JavaScript override: classic Outlook on Windows (JS-only runtime). -->
            <Runtime resid="WebViewRuntime.Url">
              <Override type="javascript" resid="JSRuntime.Url"/>
            </Runtime>
          </Runtimes>
          <DesktopFormFactor>
            <FunctionFile resid="WebViewRuntime.Url"/>
            <ExtensionPoint xsi:type="MessageComposeCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="rlfSigGroup">
                  <Label resid="GroupLabel"/>
                  <Control xsi:type="Button" id="rlfSigClassicBtn">
                    <Label resid="ClassicBtn.Label"/>
                    <Supertip>
                      <Title resid="ClassicBtn.Label"/>
                      <Description resid="ClassicBtn.Tooltip"/>
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="Icon.16"/>
                      <bt:Image size="32" resid="Icon.32"/>
                      <bt:Image size="80" resid="Icon.80"/>
                    </Icon>
                    <Action xsi:type="ExecuteFunction">
                      <FunctionName>insertClassicSignature</FunctionName>
                    </Action>
                  </Control>
                  <Control xsi:type="Button" id="rlfSigCompactBtn">
                    <Label resid="CompactBtn.Label"/>
                    <Supertip>
                      <Title resid="CompactBtn.Label"/>
                      <Description resid="CompactBtn.Tooltip"/>
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="Icon.16"/>
                      <bt:Image size="32" resid="Icon.32"/>
                      <bt:Image size="80" resid="Icon.80"/>
                    </Icon>
                    <Action xsi:type="ExecuteFunction">
                      <FunctionName>insertCompactSignature</FunctionName>
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>
            <ExtensionPoint xsi:type="LaunchEvent">
              <LaunchEvents>
                <!-- OnNewMessageCompose fires for new, reply, reply-all and forward (not when reopening a draft). -->
                <LaunchEvent Type="OnNewMessageCompose" FunctionName="onNewMessageComposeHandler"/>
                <!-- Re-apply when the user switches the From account (Mailbox 1.13 clients). -->
                <LaunchEvent Type="OnMessageFromChanged" FunctionName="onMessageFromChangedHandler"/>
              </LaunchEvents>
              <SourceLocation resid="WebViewRuntime.Url"/>
            </ExtensionPoint>
          </DesktopFormFactor>
          <MobileFormFactor>
            <ExtensionPoint xsi:type="LaunchEvent">
              <LaunchEvents>
                <LaunchEvent Type="OnNewMessageCompose" FunctionName="onNewMessageComposeHandler"/>
                <LaunchEvent Type="OnMessageFromChanged" FunctionName="onMessageFromChangedHandler"/>
              </LaunchEvents>
              <SourceLocation resid="WebViewRuntime.Url"/>
            </ExtensionPoint>
          </MobileFormFactor>
        </Host>
      </Hosts>
      <Resources>
        <bt:Images>
          <bt:Image id="Icon.16" DefaultValue="https://rlf-signatures.pages.dev/assets/icon-16.png"/>
          <bt:Image id="Icon.32" DefaultValue="https://rlf-signatures.pages.dev/assets/icon-32.png"/>
          <bt:Image id="Icon.80" DefaultValue="https://rlf-signatures.pages.dev/assets/icon-80.png"/>
        </bt:Images>
        <bt:Urls>
          <bt:Url id="WebViewRuntime.Url" DefaultValue="https://rlf-signatures.pages.dev/commands"/>
          <bt:Url id="JSRuntime.Url" DefaultValue="https://rlf-signatures.pages.dev/launchevent.js"/>
        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="GroupLabel" DefaultValue="RLF Signature"/>
          <bt:String id="ClassicBtn.Label" DefaultValue="Full signature"/>
          <bt:String id="CompactBtn.Label" DefaultValue="Compact signature"/>
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="AppDesc" DefaultValue="Automatically adds the RLF Survey + Mapping email signature."/>
          <bt:String id="ClassicBtn.Tooltip" DefaultValue="Insert or replace the full RLF signature (used on new messages)."/>
          <bt:String id="CompactBtn.Tooltip" DefaultValue="Insert or replace the compact RLF signature (used on replies and forwards)."/>
        </bt:LongStrings>
      </Resources>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>
