<?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">
  <!--https://learn.microsoft.com/en-us/javascript/api/manifest?view=outlook-js-1.14-->
  <Id>fe8d7845-c829-41a3-94ea-a1a6282b871b</Id>
  <!--https://learn.microsoft.com/en-us/javascript/api/manifest/version?view=outlook-js-1.14-->
  <!--Major.Minor.Patch-->
  <Version>3.0.1</Version>
  <ProviderName>Identillect Technologies</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Delivery Trust®"/>
  <Description DefaultValue="Delivery Trust® enables seamless, simple and secure email messages for Outlook.com and Office 365.&#xD;&#xA;&#xD;&#xA;Visit www.identillect.com for more info."/>

  <!-- Icon for your add-in. Used on installation screens and the add-ins dialog. -->
  <IconUrl DefaultValue="https://idt-outlook-addin-new.azurewebsites.net/assets/images/icon64.png"/>
  <HighResolutionIconUrl DefaultValue="https://idt-outlook-addin-new.azurewebsites.net/assets/images/icon128.png"/>

  <!--For the Office Store, the URL of a page that provides support information for the app -->
  <SupportUrl DefaultValue="https://identillect.zendesk.com/hc/en-us/categories/204572627-Office-365-Hotmail-Outlook-com"/>
  <AppDomains>
    <AppDomain>https://idt-outlook-addin-new.azurewebsites.net</AppDomain>
    <AppDomain>https://auth.identillect.com</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Mailbox"/>
  </Hosts>
  <Requirements>
    <Sets>
    <!-- This specifies the minimum version that the Outlook client must support to even run the add-in -->
      <Set Name="Mailbox" MinVersion="1.14"/>
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://idt-outlook-addin-new.azurewebsites.net/taskpane.html"/>
        <RequestedHeight>250</RequestedHeight>
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadWriteMailbox</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read"/>
  </Rule>
  <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>
      <!-- This specifies the minimum version that the Outlook client must support to run all of the children XML, so the ribbon buttons, 
      smart alert location etc. You could define a much different add-in based on the supported version -->
        <bt:Sets DefaultMinVersion="1.14">
          <bt:Set Name="Mailbox"/>
        </bt:Sets>
      </Requirements>
      <Hosts>
        <Host xsi:type="MailHost">
          <Runtimes>
            <!-- HTML file including reference to or inline JavaScript event handlers.
   This is used by Outlook on the web and on the new Mac UI, and new Outlook on Windows (preview). -->
            <Runtime resid="HtmlRuntime.Url">
              <!-- JavaScript file containing event handlers. This is used by Outlook Classic on Windows which invokes
              the JS file directly, rather than an HTML file, so available API's are limited. This JS file is somewhat different
              than the one the Html file loads because it needs to offload certain items to the server to execute -->
              <Override type="javascript" resid="JSRuntime.Url"/>
            </Runtime>
          </Runtimes>
          <DesktopFormFactor>
            <!-- <FunctionFile resid="WebViewRuntime.Url"/> -->

            <!-- On email compose -->
            <ExtensionPoint xsi:type="MessageComposeCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="msgComposeGroup">
                  <Label resid="GroupLabel"/>
                  <!-- Show Delivery Trust button -->
                  <Control xsi:type="Button" id="msgComposeOpenPaneButton">
                    <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"/>
                      <SupportsPinning>true</SupportsPinning>
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>
            <!-- On email read -->
            <ExtensionPoint xsi:type="MessageReadCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="msgReadGroup">
                  <Label resid="GroupLabel"/>
                  <!-- Show Delivery Trust button -->
                  <Control xsi:type="Button" id="msgReadOpenPaneButton">
                    <Label resid="TaskpaneButton.Label"/>
                    <Supertip>
                      <Title resid="TaskpaneButton.Label"/>
                      <Description resid="TaskpaneButtonRead.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="TaskpaneRead.Url"/>
                      <SupportsPinning>true</SupportsPinning>
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>
            <!-- Enable launching the add-in on the included events. -->
            <!-- https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/onmessagesend-onappointmentsend-events?tabs=windows#available-send-mode-options -->
            <ExtensionPoint xsi:type="LaunchEvent">
              <LaunchEvents>
                <LaunchEvent Type="OnNewMessageCompose" FunctionName="onNewMessageComposeHandler"/>
                <LaunchEvent Type="OnMessageRecipientsChanged" FunctionName="OnMessageRecipientsChangedHandler" />
                <LaunchEvent Type="OnMessageSend" FunctionName="onMessageSendHandler" SendMode="SoftBlock" />
              </LaunchEvents>
              <!-- Identify the runtime to be used (also referenced by the Runtime element). -->
              <SourceLocation resid="HtmlRuntime.Url"/>
            </ExtensionPoint>
          </DesktopFormFactor>
        </Host>
      </Hosts>
      <Resources>
        <bt:Images>
          <bt:Image id="Icon.16x16" DefaultValue="https://idt-outlook-addin-new.azurewebsites.net/assets/images/icon32.png"/>
          <bt:Image id="Icon.32x32" DefaultValue="https://idt-outlook-addin-new.azurewebsites.net/assets/images/icon32.png"/>
          <bt:Image id="Icon.80x80" DefaultValue="https://idt-outlook-addin-new.azurewebsites.net/assets/images/icon80.png"/>
        </bt:Images>
        <bt:Urls>
          <bt:Url id="Taskpane.Url" DefaultValue="https://idt-outlook-addin-new.azurewebsites.net/taskpane.html"/>
          <bt:Url id="TaskpaneRead.Url" DefaultValue="https://idt-outlook-addin-new.azurewebsites.net/taskpane.html?isReadMode=true"/>
          <bt:Url id="HtmlRuntime.Url" DefaultValue="https://idt-outlook-addin-new.azurewebsites.net/smart-alerts/autorun.html" />
          <!-- Entry needed for classic Outlook on Windows. -->
          <bt:Url id="JSRuntime.Url" DefaultValue="https://idt-outlook-addin-new.azurewebsites.net/smart-alerts/autorun-shared.js" />
        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="GroupLabel" DefaultValue="Delivery Trust®"/>
          <bt:String id="TaskpaneButton.Label" DefaultValue="Show Taskpane"/>
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="TaskpaneButton.Tooltip" DefaultValue="Protect your message with Delivery Trust®"/>
          <bt:String id="TaskpaneButtonRead.Tooltip" DefaultValue="Decrypt message with Delivery Trust®"/>
          <bt:String id="ActionButton.Tooltip" DefaultValue="Perform an action when clicked."/>
        </bt:LongStrings>
      </Resources>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>
