<?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"
  xsi:type="MailApp">

  <Id>da7e9b0a-b7a6-49f4-ab3e-b048bee1e244</Id>
  <Version>1.8.0.0</Version>

  <ProviderName>Klasseur</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>

  <DisplayName DefaultValue="Klasseur (test)"/>
  <Description DefaultValue="File Outlook emails into SharePoint, Teams and OneDrive, with the columns that make them findable again. Attach a file from the library to a message you are writing.">
    <Override Locale="fr-FR" Value="Classe les emails Outlook dans SharePoint, Teams et OneDrive, avec les colonnes qui permettent de les retrouver. Joint un fichier de la bibliothèque au message en cours."/>
  </Description>

  <IconUrl DefaultValue="https://staging.klasseurapp.com/icons/icon-64.png"/>
  <HighResolutionIconUrl DefaultValue="https://staging.klasseurapp.com/icons/icon-80.png"/>

  <SupportUrl DefaultValue="https://staging.klasseurapp.com/support.html"/>

  <Hosts>
    <Host Name="Mailbox"/>
  </Hosts>

  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.13"/>
    </Sets>
  </Requirements>

  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://staging.klasseurapp.com/index.html"/>
        <RequestedHeight>450</RequestedHeight>
      </DesktopSettings>
    </Form>
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://staging.klasseurapp.com/attach.html"/>
      </DesktopSettings>
    </Form>
  </FormSettings>

  <Permissions>ReadWriteMailbox</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">

    <Description resid="residDescription"/>

    <Requirements>
      <bt:Sets DefaultMinVersion="1.13">
        <bt:Set Name="Mailbox"/>
      </bt:Sets>
    </Requirements>

    <Hosts>
      <Host xsi:type="MailHost">

        <DesktopFormFactor>

          <FunctionFile resid="residFunctionFile"/>

          <ExtensionPoint xsi:type="MessageReadCommandSurface">

            <OfficeTab id="TabDefault">

              <Group id="msgReadGroup">

                <Label resid="residGroupLabel"/>

                <Control
                  xsi:type="Button"
                  id="msgReadOpenPaneButton">

                  <Label resid="residButtonLabel"/>

                  <Supertip>
                    <Title resid="residButtonLabel"/>
                    <Description resid="residDescription"/>
                  </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="residTaskpaneUrl"/>
                  </Action>

                </Control>

              </Group>

            </OfficeTab>

          </ExtensionPoint>

          <ExtensionPoint xsi:type="MessageComposeCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="msgComposeGroup">
                <Label resid="residGroupLabel"/>
                <Control
                  xsi:type="Button"
                  id="msgComposeAttachButton">
                  <Label resid="residAttachLabel"/>
                  <Supertip>
                    <Title resid="residAttachLabel"/>
                    <Description resid="residAttachDescription"/>
                  </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="residAttachUrl"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>

        </DesktopFormFactor>

      </Host>
    </Hosts>

    <Resources>

      <bt:Images>

        <bt:Image
          id="icon16"
          DefaultValue="https://staging.klasseurapp.com/icons/icon-16.png"/>

        <bt:Image
          id="icon32"
          DefaultValue="https://staging.klasseurapp.com/icons/icon-32.png"/>

        <bt:Image
          id="icon80"
          DefaultValue="https://staging.klasseurapp.com/icons/icon-80.png"/>

      </bt:Images>

      <bt:Urls>

        <bt:Url
          id="residTaskpaneUrl"
          DefaultValue="https://staging.klasseurapp.com/index.html"/>

        <bt:Url
          id="residAttachUrl"
          DefaultValue="https://staging.klasseurapp.com/attach.html"/>

        <bt:Url
          id="residFunctionFile"
          DefaultValue="https://staging.klasseurapp.com/index.html"/>

      </bt:Urls>

      <bt:ShortStrings>

        <bt:String
          id="residDescription"
          DefaultValue="File Outlook emails into SharePoint, Teams and OneDrive.">
          <bt:Override Locale="fr-FR" Value="Classer les emails Outlook dans SharePoint, Teams et OneDrive."/>
        </bt:String>

        <bt:String
          id="residAttachLabel"
          DefaultValue="Attach a file"/>

        <bt:String
          id="residGroupLabel"
          DefaultValue="Klasseur"/>

        <bt:String
          id="residButtonLabel"
          DefaultValue="File email">
          <bt:Override Locale="fr-FR" Value="Classer"/>
        </bt:String>

      </bt:ShortStrings>

      <bt:LongStrings>

        <bt:String
          id="residAttachDescription"
          DefaultValue="Attach a file from SharePoint, Teams or OneDrive to this message."/>

        <bt:String
          id="residDescription"
          DefaultValue="File the selected Outlook emails, with their attachments, into SharePoint, Teams or OneDrive.">
          <bt:Override Locale="fr-FR" Value="Classer les emails Outlook sélectionnés, avec leurs pièces jointes, dans SharePoint, Teams ou OneDrive."/>
        </bt:String>

      </bt:LongStrings>

    </Resources>

    <VersionOverrides
      xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1"
      xsi:type="VersionOverridesV1_1">

      <Description resid="residDescription"/>

      <Requirements>
        <bt:Sets DefaultMinVersion="1.13">
          <bt:Set Name="Mailbox"/>
        </bt:Sets>
      </Requirements>

      <Hosts>
        <Host xsi:type="MailHost">

          <DesktopFormFactor>

            <FunctionFile resid="residFunctionFile"/>

            <ExtensionPoint xsi:type="MessageReadCommandSurface">

              <OfficeTab id="TabDefault">

                <Group id="msgReadGroupV11">

                  <Label resid="residGroupLabel"/>

                  <Control
                    xsi:type="Button"
                    id="msgReadOpenPaneButtonV11">

                    <Label resid="residButtonLabel"/>

                    <Supertip>
                      <Title resid="residButtonLabel"/>
                      <Description resid="residDescription"/>
                    </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="residTaskpaneUrl"/>
                      <!--
                        Order matters: the 1.1 schema declares these as a
                        sequence, and out of order Outlook ignores them.
                        SourceLocation, Pinning, NoItemContext, MultiSelect.
                      -->
                      <!-- Without this the pane closes on every message change. -->
                      <SupportsPinning>true</SupportsPinning>
                      <!-- Opens without the reading pane or a selected message. -->
                      <SupportsNoItemContext>true</SupportsNoItemContext>
                      <!-- Lets the pane open on several selected messages. -->
                      <SupportsMultiSelect>true</SupportsMultiSelect>
                    </Action>

                  </Control>

                </Group>

              </OfficeTab>

            </ExtensionPoint>

            <ExtensionPoint xsi:type="MessageComposeCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="msgComposeGroupV11">
                  <Label resid="residGroupLabel"/>
                  <Control
                    xsi:type="Button"
                    id="msgComposeAttachButtonV11">
                    <Label resid="residAttachLabel"/>
                    <Supertip>
                      <Title resid="residAttachLabel"/>
                      <Description resid="residAttachDescription"/>
                    </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="residAttachUrl"/>
            <SupportsPinning>true</SupportsPinning>
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>

          </DesktopFormFactor>

        </Host>
      </Hosts>

      <Resources>

        <bt:Images>

          <bt:Image
            id="icon16"
            DefaultValue="https://staging.klasseurapp.com/icons/icon-16.png"/>

          <bt:Image
            id="icon32"
            DefaultValue="https://staging.klasseurapp.com/icons/icon-32.png"/>

          <bt:Image
            id="icon80"
            DefaultValue="https://staging.klasseurapp.com/icons/icon-80.png"/>

        </bt:Images>

        <bt:Urls>

          <bt:Url
            id="residTaskpaneUrl"
            DefaultValue="https://staging.klasseurapp.com/index.html"/>

          <bt:Url
            id="residAttachUrl"
            DefaultValue="https://staging.klasseurapp.com/attach.html"/>

          <bt:Url
            id="residFunctionFile"
            DefaultValue="https://staging.klasseurapp.com/index.html"/>

        </bt:Urls>

        <bt:ShortStrings>

          <bt:String
            id="residDescription"
            DefaultValue="File Outlook emails into SharePoint, Teams and OneDrive.">
            <bt:Override Locale="fr-FR" Value="Classer les emails Outlook dans SharePoint, Teams et OneDrive."/>
          </bt:String>

          <bt:String
            id="residAttachLabel"
            DefaultValue="Attach a file"/>

          <bt:String
            id="residGroupLabel"
            DefaultValue="Klasseur"/>

          <bt:String
            id="residButtonLabel"
            DefaultValue="File email">
            <bt:Override Locale="fr-FR" Value="Classer"/>
          </bt:String>

        </bt:ShortStrings>

        <bt:LongStrings>

          <bt:String
            id="residAttachDescription"
            DefaultValue="Attach a file from SharePoint, Teams or OneDrive to this message."/>

          <bt:String
            id="residDescription"
            DefaultValue="File the selected Outlook emails, with their attachments, into SharePoint, Teams or OneDrive.">
            <bt:Override Locale="fr-FR" Value="Classer les emails Outlook sélectionnés, avec leurs pièces jointes, dans SharePoint, Teams ou OneDrive."/>
          </bt:String>

        </bt:LongStrings>

      </Resources>

      <WebApplicationInfo>

        <Id>4a1bfc76-dda4-41b8-9a2e-4f93629b3390</Id>

        <Resource>api://klasseurapp.com/4a1bfc76-dda4-41b8-9a2e-4f93629b3390</Resource>

        <Scopes>
          <Scope>User.Read</Scope>
          <Scope>Mail.Read</Scope>
          <Scope>Sites.ReadWrite.All</Scope>
          <Scope>Files.ReadWrite</Scope>
          <Scope>openid</Scope>
          <Scope>profile</Scope>
          <Scope>offline_access</Scope>
        </Scopes>

      </WebApplicationInfo>

    </VersionOverrides>

  </VersionOverrides>

</OfficeApp>