<?xml version="1.0" encoding="UTF-8"?>
<!--
  Guard.ch Outlook add-in (Office Add-in, Mail). Committed source is the DEV
  channel: every hosted URL points at https://dev.browser.lol/ext/outlook/.
  build.sh rewrites those to https://guard.ch/ext/outlook/ for the prod package.
-->
<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"
  xsi:type="MailApp">

  <Id>f7e5cb16-b8a4-4860-aa5d-aea3824c9cef</Id>
  <Version>1.7.0</Version>
  <ProviderName>Zesiger.net</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>

  <DisplayName DefaultValue="Guard.ch Companion">
    <Override Locale="de-de" Value="Guard.ch Companion"/>
  </DisplayName>
  <Description DefaultValue="Open any link from an email in a throwaway, instrumented Guard.ch investigation.">
    <Override Locale="de-de" Value="Öffne jeden Link aus einer E-Mail in einem instrumentierten Wegwerf-Browser von Guard.ch."/>
  </Description>

  <IconUrl DefaultValue="https://dev.browser.lol/ext/outlook/assets/64.png"/>
  <HighResolutionIconUrl DefaultValue="https://dev.browser.lol/ext/outlook/assets/128.png"/>
  <SupportUrl DefaultValue="https://dev.browser.lol/en/dash"/>

  <AppDomains>
    <AppDomain>https://dev.browser.lol</AppDomain>
  </AppDomains>

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

  <Requirements>
    <Sets DefaultMinVersion="1.5">
      <Set Name="Mailbox" MinVersion="1.5"/>
    </Sets>
  </Requirements>

  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://dev.browser.lol/ext/outlook/src/taskpane/taskpane.html"/>
        <RequestedHeight>400</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">
    <Requirements>
      <bt:Sets DefaultMinVersion="1.5">
        <bt:Set Name="Mailbox"/>
      </bt:Sets>
    </Requirements>

    <Hosts>
      <Host xsi:type="MailHost">
        <DesktopFormFactor>
          <ExtensionPoint xsi:type="MessageReadCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="guardGroup">
                <Label resid="Group.Label"/>

                <Control xsi:type="Button" id="guardEmailButton">
                  <Label resid="EmailButton.Label"/>
                  <Supertip>
                    <Title resid="EmailButton.Label"/>
                    <Description resid="EmailButton.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="ShowTaskpane">
                    <SourceLocation resid="TaskpaneEmail.Url"/>
                  </Action>
                </Control>

                <Control xsi:type="Button" id="guardOpenButton">
                  <Label resid="OpenButton.Label"/>
                  <Supertip>
                    <Title resid="OpenButton.Label"/>
                    <Description resid="OpenButton.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="ShowTaskpane">
                    <SourceLocation resid="Taskpane.Url"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16" DefaultValue="https://dev.browser.lol/ext/outlook/assets/16.png"/>
        <bt:Image id="Icon.32" DefaultValue="https://dev.browser.lol/ext/outlook/assets/32.png"/>
        <bt:Image id="Icon.80" DefaultValue="https://dev.browser.lol/ext/outlook/assets/80.png"/>
      </bt:Images>

      <bt:Urls>
        <bt:Url id="Taskpane.Url" DefaultValue="https://dev.browser.lol/ext/outlook/src/taskpane/taskpane.html"/>
        <bt:Url id="TaskpaneEmail.Url" DefaultValue="https://dev.browser.lol/ext/outlook/src/taskpane/taskpane.html?autorun=email"/>
      </bt:Urls>

      <bt:ShortStrings>
        <bt:String id="Group.Label" DefaultValue="Guard.ch">
          <bt:Override Locale="de-de" Value="Guard.ch"/>
        </bt:String>
        <bt:String id="EmailButton.Label" DefaultValue="Analyze email with Guard.ch">
          <bt:Override Locale="de-de" Value="E-Mail mit Guard.ch analysieren"/>
        </bt:String>
        <bt:String id="OpenButton.Label" DefaultValue="Open in Guard.ch">
          <bt:Override Locale="de-de" Value="In Guard.ch öffnen"/>
        </bt:String>
      </bt:ShortStrings>

      <bt:LongStrings>
        <bt:String id="EmailButton.Tooltip" DefaultValue="Check this whole email (sender, authentication, links and attachments); the Guard.ch verdict appears right in the panel.">
          <bt:Override Locale="de-de" Value="Prüfe diese ganze E-Mail (Absender, Authentifizierung, Links und Anhänge); die Guard.ch Einschätzung erscheint direkt im Panel."/>
        </bt:String>
        <bt:String id="OpenButton.Tooltip" DefaultValue="Open the Guard.ch panel to pick a link from this email, or paste a URL.">
          <bt:Override Locale="de-de" Value="Öffne das Guard.ch-Panel, um einen Link aus dieser E-Mail zu wählen oder eine URL einzufügen."/>
        </bt:String>
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
