<?xml version="1.0" encoding="UTF-8"?>
<!-- Parafa's Outlook add-in (design/workflow.md §5), served from the devmac into the tailnet only
     (tools/addin-publish.sh). Reading a message: Sign with Parafa opens the pane (taskpane.html).
     A reply's window: the signed copy is attached when it opens (launch.html, OnNewMessageCompose,
     Mailbox 1.10), or by Attach Signed Copy (compose.html) – Outlook for Mac cannot attach to a reply
     form itself (Mailbox 1.15 "no", Jan's Air, 19 October 2026). -->
<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>bb3eb00a-b7e1-4119-b429-94cc5b2f7ff2</Id>
  <Version>0.9.1.0</Version>
  <ProviderName>Jan Zavrel</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Parafa"/>
  <Description DefaultValue="Sign the attachments of a message with your qualified certificate in Parafa, and reply with the signed copy."/>
  <IconUrl DefaultValue="https://parafa.zavrel.net/addin/icon-64.png"/>
  <HighResolutionIconUrl DefaultValue="https://parafa.zavrel.net/addin/icon-128.png"/>
  <SupportUrl DefaultValue="https://parafa.zavrel.net/addin/taskpane.html"/>
  <AppDomains>
    <AppDomain>https://parafa.zavrel.net</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://parafa.zavrel.net/addin/taskpane.html"/>
        <RequestedHeight>250</RequestedHeight>
      </DesktopSettings>
    </Form>
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://parafa.zavrel.net/addin/compose.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>
  <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>
          <ExtensionPoint xsi:type="MessageReadCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="parafa.read">
                <Label resid="groupLabel"/>
                <Control xsi:type="Button" id="parafa.open">
                  <Label resid="signLabel"/>
                  <Supertip><Title resid="signLabel"/><Description resid="signTip"/></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="taskpane"/></Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
          <ExtensionPoint xsi:type="MessageComposeCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="parafa.compose">
                <Label resid="groupLabel"/>
                <Control xsi:type="Button" id="parafa.attach">
                  <Label resid="attachLabel"/>
                  <Supertip><Title resid="attachLabel"/><Description resid="attachTip"/></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="compose"/></Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>
    <Resources>
      <bt:Images>
        <bt:Image id="icon16" DefaultValue="https://parafa.zavrel.net/addin/icon-16.png"/>
        <bt:Image id="icon32" DefaultValue="https://parafa.zavrel.net/addin/icon-32.png"/>
        <bt:Image id="icon80" DefaultValue="https://parafa.zavrel.net/addin/icon-80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="taskpane" DefaultValue="https://parafa.zavrel.net/addin/taskpane.html"/>
        <bt:Url id="compose" DefaultValue="https://parafa.zavrel.net/addin/compose.html"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="groupLabel" DefaultValue="Parafa"/>
        <bt:String id="signLabel" DefaultValue="Sign with Parafa"/>
        <bt:String id="attachLabel" DefaultValue="Attach Signed Copy"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="signTip" DefaultValue="Sign this message's PDF in Parafa and reply with the signed copy."/>
        <bt:String id="attachTip" DefaultValue="Attach the copy signed in Parafa of a document from this conversation."/>
      </bt:LongStrings>
    </Resources>
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
      <Requirements>
        <bt:Sets DefaultMinVersion="1.10">
          <bt:Set Name="Mailbox"/>
        </bt:Sets>
      </Requirements>
      <Hosts>
        <Host xsi:type="MailHost">
          <Runtimes>
            <Runtime resid="launch">
              <Override type="javascript" resid="launchScript"/>
            </Runtime>
          </Runtimes>
          <DesktopFormFactor>
            <ExtensionPoint xsi:type="MessageReadCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="parafa.read">
                  <Label resid="groupLabel"/>
                  <Control xsi:type="Button" id="parafa.open">
                    <Label resid="signLabel"/>
                    <Supertip><Title resid="signLabel"/><Description resid="signTip"/></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="taskpane"/></Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>
            <ExtensionPoint xsi:type="MessageComposeCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="parafa.compose">
                  <Label resid="groupLabel"/>
                  <Control xsi:type="Button" id="parafa.attach">
                    <Label resid="attachLabel"/>
                    <Supertip><Title resid="attachLabel"/><Description resid="attachTip"/></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="compose"/></Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>
            <ExtensionPoint xsi:type="LaunchEvent">
              <LaunchEvents>
                <LaunchEvent Type="OnNewMessageCompose" FunctionName="onNewMessageCompose"/>
              </LaunchEvents>
              <SourceLocation resid="launch"/>
            </ExtensionPoint>
          </DesktopFormFactor>
        </Host>
      </Hosts>
      <Resources>
        <bt:Images>
          <bt:Image id="icon16" DefaultValue="https://parafa.zavrel.net/addin/icon-16.png"/>
          <bt:Image id="icon32" DefaultValue="https://parafa.zavrel.net/addin/icon-32.png"/>
          <bt:Image id="icon80" DefaultValue="https://parafa.zavrel.net/addin/icon-80.png"/>
        </bt:Images>
        <bt:Urls>
          <bt:Url id="taskpane" DefaultValue="https://parafa.zavrel.net/addin/taskpane.html"/>
          <bt:Url id="compose" DefaultValue="https://parafa.zavrel.net/addin/compose.html"/>
          <bt:Url id="launch" DefaultValue="https://parafa.zavrel.net/addin/launch.html"/>
          <bt:Url id="launchScript" DefaultValue="https://parafa.zavrel.net/addin/launch.js"/>
        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="groupLabel" DefaultValue="Parafa"/>
          <bt:String id="signLabel" DefaultValue="Sign with Parafa"/>
          <bt:String id="attachLabel" DefaultValue="Attach Signed Copy"/>
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="signTip" DefaultValue="Sign this message's PDF in Parafa and reply with the signed copy."/>
          <bt:String id="attachTip" DefaultValue="Attach the copy signed in Parafa of a document from this conversation."/>
        </bt:LongStrings>
      </Resources>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>
