<?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"
  xsi:type="MailApp">
  <Id>9f2f1a24-4c8f-4b2b-9a1d-0f2c7a6b51e3</Id>
  <Version>2.4.1.0</Version>
  <ProviderName>Parfitt Cresswell</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Parfitt Cresswell Email Assistant" />
  <Description DefaultValue="Assign emails to matters or prospects, record time and file them to DocMan." />
  <IconUrl DefaultValue="https://outlook.parfittcresswell.online/addin-icon-64.png" />
  <HighResolutionIconUrl DefaultValue="https://outlook.parfittcresswell.online/addin-icon-128.png" />
  <SupportUrl DefaultValue="https://outlook.parfittcresswell.online/" />
  <AppDomains>
    <AppDomain>https://login.microsoftonline.com</AppDomain>
    <AppDomain>https://mohwxibimgicgkgyynkn.supabase.co</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://outlook.parfittcresswell.online/taskpane.html" />
        <RequestedHeight>350</RequestedHeight>
      </DesktopSettings>
    </Form>
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://outlook.parfittcresswell.online/taskpane.html" />
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadWriteItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read" />
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit" />
  </Rule>
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Requirements>
      <bt:Sets DefaultMinVersion="1.1">
        <bt:Set Name="Mailbox" />
      </bt:Sets>
    </Requirements>
    <Hosts>
      <Host xsi:type="MailHost">
        <DesktopFormFactor>
          <FunctionFile resid="eventRuntimeUrl" />
          <ExtensionPoint xsi:type="MessageReadCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="msgReadGroup">
                <Label resid="groupLabel" />
                <Control xsi:type="Button" id="msgReadOpenPane">
                  <Label resid="paneButtonLabel" />
                  <Supertip>
                    <Title resid="paneButtonLabel" />
                    <Description resid="paneButtonTip" />
                  </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>
          <ExtensionPoint xsi:type="MessageComposeCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="msgComposeGroup">
                <Label resid="groupLabel" />
                <Control xsi:type="Button" id="msgComposeOpenPane">
                  <Label resid="paneButtonLabel" />
                  <Supertip>
                    <Title resid="paneButtonLabel" />
                    <Description resid="paneButtonTip" />
                  </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://outlook.parfittcresswell.online/addin-icon-16.png" />
        <bt:Image id="icon32" DefaultValue="https://outlook.parfittcresswell.online/addin-icon-32.png" />
        <bt:Image id="icon80" DefaultValue="https://outlook.parfittcresswell.online/addin-icon-80.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="taskpaneUrl" DefaultValue="https://outlook.parfittcresswell.online/taskpane.html" />
        <bt:Url id="eventRuntimeUrl" DefaultValue="https://outlook.parfittcresswell.online/oncommand.html?v=2026.09.24.4" />
        <bt:Url id="eventJsUrl" DefaultValue="https://outlook.parfittcresswell.online/oncommand.js?v=2026.09.24.4" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="groupLabel" DefaultValue="Parfitt Cresswell" />
        <bt:String id="paneButtonLabel" DefaultValue="Email Assistant" />

      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="paneButtonTip" DefaultValue="Assign the open email to a matter, record time and save it to DocMan." />
      </bt:LongStrings>
    </Resources>
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
      <Requirements>
        <!-- 1.12 is required for the blocking OnMessageSend handler. Builds without
             it fall back to the V1_0 block above, which still has read + compose. -->
        <bt:Sets DefaultMinVersion="1.12">
          <bt:Set Name="Mailbox" />
        </bt:Sets>
      </Requirements>

      <Hosts>
        <Host xsi:type="MailHost">
          <Runtimes>
            <Runtime resid="eventRuntimeUrl">
              <Override type="javascript" resid="eventJsUrl" />
            </Runtime>
          </Runtimes>
          <DesktopFormFactor>
            <!-- Must remain the first child of DesktopFormFactor, before FunctionFile.
                 Required for shared/delegate mailbox activation. Do not remove. -->
            <SupportsSharedFolders>true</SupportsSharedFolders>
            <FunctionFile resid="eventRuntimeUrl" />

            <ExtensionPoint xsi:type="MessageReadCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="msgReadGroup">
                <Label resid="groupLabel" />
                <Control xsi:type="Button" id="msgReadOpenPane">
                  <Label resid="paneButtonLabel" />
                  <Supertip>
                    <Title resid="paneButtonLabel" />
                    <Description resid="paneButtonTip" />
                  </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="msgComposeGroup">
                <Label resid="groupLabel" />
                <Control xsi:type="Button" id="msgComposeOpenPane">
                  <Label resid="paneButtonLabel" />
                  <Supertip>
                    <Title resid="paneButtonLabel" />
                    <Description resid="paneButtonTip" />
                  </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>
            <ExtensionPoint xsi:type="LaunchEvent">
              <LaunchEvents>
                <LaunchEvent Type="OnNewMessageCompose" FunctionName="onNewMessageComposeHandler" />
                <LaunchEvent Type="OnMessageSend" FunctionName="onMessageSendHandler" SendMode="SoftBlock" />
              </LaunchEvents>
              <SourceLocation resid="eventRuntimeUrl" />
            </ExtensionPoint>
          </DesktopFormFactor>
        </Host>
      </Hosts>

      <Resources>
      <bt:Images>
        <bt:Image id="icon16" DefaultValue="https://outlook.parfittcresswell.online/addin-icon-16.png" />
        <bt:Image id="icon32" DefaultValue="https://outlook.parfittcresswell.online/addin-icon-32.png" />
        <bt:Image id="icon80" DefaultValue="https://outlook.parfittcresswell.online/addin-icon-80.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="taskpaneUrl" DefaultValue="https://outlook.parfittcresswell.online/taskpane.html" />
        <bt:Url id="eventRuntimeUrl" DefaultValue="https://outlook.parfittcresswell.online/oncommand.html?v=2026.09.24.4" />
        <bt:Url id="eventJsUrl" DefaultValue="https://outlook.parfittcresswell.online/oncommand.js?v=2026.09.24.4" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="groupLabel" DefaultValue="Parfitt Cresswell" />
        <bt:String id="paneButtonLabel" DefaultValue="Email Assistant" />

      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="paneButtonTip" DefaultValue="Assign the open email to a matter, record time and save it to DocMan." />
      </bt:LongStrings>
      </Resources>

      <WebApplicationInfo>
        <Id>310695cb-fac7-4b2d-b39c-37898a593da1</Id>
        <Resource>api://outlook.parfittcresswell.online/310695cb-fac7-4b2d-b39c-37898a593da1</Resource>
        <Scopes>
          <Scope>openid</Scope>
          <Scope>profile</Scope>
          <Scope>email</Scope>
          <Scope>User.Read</Scope>
        </Scopes>
      </WebApplicationInfo>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>