<?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">

  <!-- See plugins/office/manifest/MANIFEST_ID.txt — this GUID is immutable. -->
  <Id>7fd1c0ce-bc09-4091-89ad-ca8cc63ebfd2</Id>
  <Version>1.0.0.1</Version>
  <ProviderName>PhishSpot</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>

  <DisplayName DefaultValue="PhishSpot Report Phishing">
    <Override Locale="pl-PL" Value="PhishSpot — Zgłoś phishing"/>
  </DisplayName>
  <Description DefaultValue="Report suspicious emails to your PhishSpot account in one click.">
    <Override Locale="pl-PL" Value="Zgłoś podejrzane wiadomości do swojego konta PhishSpot jednym kliknięciem."/>
  </Description>

  <IconUrl DefaultValue="https://platform.phishspot.com/outlook-assets/icons/icon-64.png"/>
  <HighResolutionIconUrl DefaultValue="https://platform.phishspot.com/outlook-assets/icons/icon-128.png"/>
  <SupportUrl DefaultValue="https://docs.phishspot.com/20-outlook-add-in/"/>

  <AppDomains>
    <AppDomain>https://platform.phishspot.com</AppDomain>
  </AppDomains>

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

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

  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://platform.phishspot.com/outlook/taskpane"/>
        <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">
    <Requirements>
      <bt:Sets DefaultMinVersion="1.8">
        <bt:Set Name="Mailbox"/>
      </bt:Sets>
    </Requirements>
    <Hosts>
      <Host xsi:type="MailHost">
        <DesktopFormFactor>
          <FunctionFile resid="functionFile.url"/>
          <ExtensionPoint xsi:type="MessageReadCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="msgReadGroup">
                <Label resid="groupLabel"/>
                <Control xsi:type="Button" id="reportPhishingButton">
                  <Label resid="buttonLabel"/>
                  <Supertip>
                    <Title resid="buttonLabel"/>
                    <Description resid="buttonTooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="icon16"/>
                    <bt:Image size="32" resid="icon32"/>
                    <bt:Image size="80" resid="icon80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="taskpaneUrl"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="icon16" DefaultValue="https://platform.phishspot.com/outlook-assets/icons/icon-16.png"/>
        <bt:Image id="icon32" DefaultValue="https://platform.phishspot.com/outlook-assets/icons/icon-32.png"/>
        <bt:Image id="icon80" DefaultValue="https://platform.phishspot.com/outlook-assets/icons/icon-80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="functionFile.url" DefaultValue="https://platform.phishspot.com/outlook/taskpane"/>
        <bt:Url id="taskpaneUrl" DefaultValue="https://platform.phishspot.com/outlook/taskpane"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="groupLabel" DefaultValue="PhishSpot">
          <bt:Override Locale="pl-PL" Value="PhishSpot"/>
        </bt:String>
        <bt:String id="buttonLabel" DefaultValue="Report Phishing">
          <bt:Override Locale="pl-PL" Value="Zgłoś phishing"/>
        </bt:String>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="buttonTooltip" DefaultValue="Report this email as suspicious to your PhishSpot account.">
          <bt:Override Locale="pl-PL" Value="Zgłoś tę wiadomość jako podejrzaną do swojego konta PhishSpot."/>
        </bt:String>
      </bt:LongStrings>
    </Resources>

    <!-- Nested V1_1 VersionOverrides: newer Outlook clients (modern Outlook on
         the web, Phoenix on Mac, new Outlook on Windows) prefer V1_1 and may
         skip the V1_0 outer entirely. The content mirrors V1_0 exactly so
         older clients still see the legacy block. -->
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1"
                      xsi:type="VersionOverridesV1_1">
      <Requirements>
        <bt:Sets DefaultMinVersion="1.8">
          <bt:Set Name="Mailbox"/>
        </bt:Sets>
      </Requirements>
      <Hosts>
        <Host xsi:type="MailHost">
          <DesktopFormFactor>
            <FunctionFile resid="functionFile.url"/>
            <ExtensionPoint xsi:type="MessageReadCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="msgReadGroup">
                  <Label resid="groupLabel"/>
                  <Control xsi:type="Button" id="reportPhishingButton">
                    <Label resid="buttonLabel"/>
                    <Supertip>
                      <Title resid="buttonLabel"/>
                      <Description resid="buttonTooltip"/>
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="icon16"/>
                      <bt:Image size="32" resid="icon32"/>
                      <bt:Image size="80" resid="icon80"/>
                    </Icon>
                    <Action xsi:type="ShowTaskpane">
                      <SourceLocation resid="taskpaneUrl"/>
                      <SupportsPinning>false</SupportsPinning>
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>
          </DesktopFormFactor>
        </Host>
      </Hosts>

      <Resources>
        <bt:Images>
          <bt:Image id="icon16" DefaultValue="https://platform.phishspot.com/outlook-assets/icons/icon-16.png"/>
          <bt:Image id="icon32" DefaultValue="https://platform.phishspot.com/outlook-assets/icons/icon-32.png"/>
          <bt:Image id="icon80" DefaultValue="https://platform.phishspot.com/outlook-assets/icons/icon-80.png"/>
        </bt:Images>
        <bt:Urls>
          <bt:Url id="functionFile.url" DefaultValue="https://platform.phishspot.com/outlook/taskpane"/>
          <bt:Url id="taskpaneUrl" DefaultValue="https://platform.phishspot.com/outlook/taskpane"/>
        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="groupLabel" DefaultValue="PhishSpot">
            <bt:Override Locale="pl-PL" Value="PhishSpot"/>
          </bt:String>
          <bt:String id="buttonLabel" DefaultValue="Report Phishing">
            <bt:Override Locale="pl-PL" Value="Zgłoś phishing"/>
          </bt:String>
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="buttonTooltip" DefaultValue="Report this email as suspicious to your PhishSpot account.">
            <bt:Override Locale="pl-PL" Value="Zgłoś tę wiadomość jako podejrzaną do swojego konta PhishSpot."/>
          </bt:String>
        </bt:LongStrings>
      </Resources>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>
