<?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">
  <Id>d6a6c96b-027e-4b3b-be7c-21cd79a3dd95</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>Legalvisio</ProviderName>
  <DefaultLocale>de-DE</DefaultLocale>
  <DisplayName DefaultValue="Legalvisio für Outlook"/>
	<Description DefaultValue="Legalvisio mit Microsoft Outlook verwenden"/>
  <IconUrl DefaultValue="https://office-addin.legalvisio.de/icon-64.png"/>
  <HighResolutionIconUrl DefaultValue="https://office-addin.legalvisio.de/icon-128.png"/>
  <SupportUrl DefaultValue="https://www.legalvisio.de"/>
  <AppDomains>
    <AppDomain>https://www.legalvisio.de</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Mailbox"/>
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.1"/>
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://office-addin.legalvisio.de/outlook/taskpane.html"/>
        <RequestedHeight>250</RequestedHeight>
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadWriteItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read" />
    <Rule xsi:type="ItemHasRegularExpressionMatch" RegExName="DocketNumber" RegExValue="(\d{1,}\/\d{1,}(-\d{1,})?)" PropertyName="BodyAsPlaintext"/>
  </Rule>
  <DisableEntityHighlighting>false</DisableEntityHighlighting>
  <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>
        <bt:Sets DefaultMinVersion="1.3">
          <bt:Set Name="Mailbox"/>
        </bt:Sets>
      </Requirements>
      <Hosts>
        <Host xsi:type="MailHost">
          <DesktopFormFactor>
            <FunctionFile resid="Commands.Url"/>
            <ExtensionPoint xsi:type="DetectedEntity">
              <Label resid="Context.Label" />
              <SourceLocation resid="DetectedEntity.Url" />
              <Rule xsi:type="RuleCollection" Mode="And">
                <Rule xsi:type="ItemIs" ItemType="Message" />
                <Rule xsi:type="ItemHasRegularExpressionMatch" RegExName="DocketNumber" RegExValue="(\d{1,}\/\d{1,}(-\d{1,})?)" PropertyName="BodyAsPlaintext" />
              </Rule>
            </ExtensionPoint>
            <ExtensionPoint xsi:type="MessageReadCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="msgReadGroup">
                  <Label resid="GroupLabel"/>
                  <Control xsi:type="Button" id="msgReadOpenPaneButton">
                    <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>
                      <SupportsNoItemContext>true</SupportsNoItemContext>
                    </Action>
                  </Control>
                  <!-- <Control xsi:type="Button" id="ActionButton">
                    <Label resid="ActionButton.Label"/>
                    <Supertip>
                      <Title resid="ActionButton.Label"/>
                      <Description resid="ActionButton.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="ExecuteFunction">
                      <FunctionName>action</FunctionName>
                    </Action>
                  </Control> -->
                </Group>
              </OfficeTab>
            </ExtensionPoint>
          </DesktopFormFactor>
        </Host>
      </Hosts>
      <Resources>
        <bt:Images>
          <bt:Image id="Icon.16x16" DefaultValue="https://office-addin.legalvisio.de/icon-16.png"/>
          <bt:Image id="Icon.32x32" DefaultValue="https://office-addin.legalvisio.de/icon-32.png"/>
          <bt:Image id="Icon.80x80" DefaultValue="https://office-addin.legalvisio.de/icon-80.png"/>
        </bt:Images>
        <bt:Urls>
          <bt:Url id="Commands.Url" DefaultValue="https://office-addin.legalvisio.de/outlook/commands.html"/>
          <bt:Url id="Taskpane.Url" DefaultValue="https://office-addin.legalvisio.de/outlook/taskpane.html"/>
          <bt:Url id="DetectedEntity.Url" DefaultValue="https://office-addin.legalvisio.de/outlook/highlight.html"/>
        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="GroupLabel" DefaultValue="Legalvisio"/>
          <bt:String id="TaskpaneButton.Label" DefaultValue="Legalvisio"/>
          <bt:String id="ActionButton.Label" DefaultValue="Importieren"/>
          <bt:String id="Context.Label" DefaultValue="Aktenzeichen erkannt"/>
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="TaskpaneButton.Tooltip" DefaultValue="Aktionen für ausgewählte Nachricht zeigen"/>
          <bt:String id="ActionButton.Tooltip" DefaultValue="Nachricht in Legalvisio importieren"/>
        </bt:LongStrings>
      </Resources>
      <WebApplicationInfo>
        <Id>73bd1761-49d5-468e-b4b7-048ef30c64e4</Id>
        <Resource>api://office-addin.legalvisio.de/73bd1761-49d5-468e-b4b7-048ef30c64e4</Resource>
        <Scopes>
          <Scope>openid</Scope>
          <Scope>user.read</Scope>
          <!-- <Scope>files.read</Scope> -->
          <Scope>profile</Scope>
        </Scopes>
      </WebApplicationInfo>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>
