<?xml version="1.0" encoding="UTF-8"?>
<!-- Надстройка Outlook «Булшит Детектор» (BSD-10). Разрешение — ReadItem: прочитать открытое письмо и открыть окно ответа.
     Письмо разбирается в панели надстройки, в браузере; на сервер ничего не отправляется. -->
<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>4977b071-0f15-4118-b10d-827895e3c91c</Id>
  <Version>0.2.0.0</Version>
  <ProviderName>Булшит Детектор</ProviderName>
  <DefaultLocale>ru-RU</DefaultLocale>
  <DisplayName DefaultValue="Булшит Детектор"/>
  <Description DefaultValue="Разбирает открытое письмо и проверяет ваш черновик: оценка корпоративной чепухи, что спросить в ответ, готовый ответ и заключение. Анализ в браузере, письмо никуда не отправляется."/>
  <IconUrl DefaultValue="https://bullshits.online/outlook/icon-64.png"/>
  <HighResolutionIconUrl DefaultValue="https://bullshits.online/outlook/icon-128.png"/>
  <SupportUrl DefaultValue="https://bullshits.online/extension#outlook"/>
  <AppDomains>
    <AppDomain>https://bullshits.online</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Mailbox"/>
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.3"/>
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://bullshits.online/outlook-taskpane"/>
        <RequestedHeight>450</RequestedHeight>
      </DesktopSettings>
    </Form>
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://bullshits.online/outlook-taskpane"/>
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read"/>
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit"/>
  </Rule>
  <DisableEntityHighlighting>false</DisableEntityHighlighting>
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Requirements>
      <bt:Sets DefaultMinVersion="1.3">
        <bt:Set Name="Mailbox"/>
      </bt:Sets>
    </Requirements>
    <Hosts>
      <Host xsi:type="MailHost">
        <DesktopFormFactor>
          <ExtensionPoint xsi:type="MessageReadCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="bsdGroup">
                <Label resid="groupLabel"/>
                <Control xsi:type="Button" id="bsdOpenPane">
                  <Label resid="buttonLabel"/>
                  <Supertip>
                    <Title resid="buttonLabel"/>
                    <Description resid="buttonDesc"/>
                  </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>true</SupportsPinning>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
          <!-- Новое письмо или ответ: проверка своего черновика до отправки -->
          <ExtensionPoint xsi:type="MessageComposeCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="bsdComposeGroup">
                <Label resid="groupLabel"/>
                <Control xsi:type="Button" id="bsdCheckDraft">
                  <Label resid="composeLabel"/>
                  <Supertip>
                    <Title resid="composeLabel"/>
                    <Description resid="composeDesc"/>
                  </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://bullshits.online/outlook/icon-16.png"/>
        <bt:Image id="icon32" DefaultValue="https://bullshits.online/outlook/icon-32.png"/>
        <bt:Image id="icon80" DefaultValue="https://bullshits.online/outlook/icon-80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="taskpaneUrl" DefaultValue="https://bullshits.online/outlook-taskpane"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="groupLabel" DefaultValue="Булшит Детектор"/>
        <bt:String id="buttonLabel" DefaultValue="Булшит Детектор"/>
        <bt:String id="composeLabel" DefaultValue="Проверить на булшит"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="buttonDesc" DefaultValue="Разобрать письмо: оценка, что спросить в ответ, ответ и заключение."/>
        <bt:String id="composeDesc" DefaultValue="Проверить своё письмо до отправки: вода, уклончивость и о чём вас переспросят."/>
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
