forked from OfficeDev/Outlook-Add-In-Contextual-Regex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
contoso-order-number-manifest.xml
107 lines (98 loc) · 4.44 KB
/
contoso-order-number-manifest.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?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"
xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0"
xsi:type="MailApp">
<!-- Begin Basic Settings: Add-in metadata, used for all versions of Office unless override
provided. -->
<!-- IMPORTANT! Id must be unique for your add-in, if you reuse this manifest ensure that you
change this id to a new GUID. -->
<Id>351bf5d8-c3e5-4c35-8f0b-3da9a28f22f2</Id>
<!-- Version. Updates from the store only get triggered if there is a version change. -->
<Version>1.0.0.0</Version>
<ProviderName>Outlook Dev Center</ProviderName>
<DefaultLocale>en-US</DefaultLocale>
<!-- The display name of your add-in. Used on the store and various places of the Office UI such
as the add-ins dialog. -->
<DisplayName DefaultValue="Contoso Order Number Add-in" />
<Description
DefaultValue="A sample add-in that demonstrates contextual activation on a Regex match." />
<!-- Icon for your add-in. Used on installation screens and the add-ins dialog. -->
<IconUrl DefaultValue="https://localhost:8080/assets/icon-32.png" />
<HighResolutionIconUrl DefaultValue="https://localhost:8080/assets/hi-res-icon.png" />
<!-- End Basic Settings. -->
<!-- Legacy settings -->
<!-- These values will be used for legacy clients that do not understand the -->
<!-- VersionOverrides schema. These values will be ignored by clients that do -->
<!-- understand VersionOverrides, with the exception of Permissions -->
<Hosts>
<Host Name="Mailbox" />
</Hosts>
<Requirements>
<Sets>
<Set Name="Mailbox" MinVersion="1.1" />
</Sets>
</Requirements>
<FormSettings>
<Form xsi:type="ItemRead">
<DesktopSettings>
<SourceLocation DefaultValue="https://localhost:8080/index.html" />
<RequestedHeight>250</RequestedHeight>
</DesktopSettings>
</Form>
</FormSettings>
<Permissions>ReadWriteItem</Permissions>
<!-- Note that this Rule element matches the Rule element inside the -->
<!-- DetectedEntity element below. This is so that older clients will be able -->
<!-- to activate the add-in on the same context. -->
<Rule xsi:type="RuleCollection" Mode="And">
<Rule xsi:type="ItemIs" ItemType="Message" FormType="Read" />
<Rule xsi:type="ItemHasRegularExpressionMatch" RegExName="9Digits"
RegExValue="([A-Za-z0-9]+(-[A-Za-z0-9]+)+)" PropertyName="BodyAsPlaintext" />
</Rule>
<DisableEntityHighlighting>false</DisableEntityHighlighting>
<VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides"
xsi:type="VersionOverridesV1_0">
<!-- VersionOverrides for the v1.1 schema -->
<VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1"
xsi:type="VersionOverridesV1_1">
<Requirements>
<bt:Sets DefaultMinVersion="1.5">
<bt:Set Name="Mailbox" />
</bt:Sets>
</Requirements>
<Hosts>
<Host xsi:type="MailHost">
<DesktopFormFactor>
<!-- DetectedEntity -->
<ExtensionPoint xsi:type="DetectedEntity">
<Label resid="contextLabel" />
<SourceLocation resid="detectedEntityURL" />
<Rule xsi:type="RuleCollection" Mode="And">
<Rule xsi:type="ItemIs" ItemType="Message" />
<Rule xsi:type="ItemHasRegularExpressionMatch" RegExName="OrderNumber"
RegExValue="[A-Za-z]+\d\d-[A-Za-z0-9]+-[A-Za-z0-9]+"
PropertyName="BodyAsPlaintext" />
</Rule>
</ExtensionPoint>
</DesktopFormFactor>
</Host>
</Hosts>
<Resources>
<bt:Images>
<bt:Image id="icon16" DefaultValue="https://localhost:8080/assets/icon-16.png" />
<bt:Image id="icon32" DefaultValue="https://localhost:8080/assets/icon-32.png" />
<bt:Image id="icon80" DefaultValue="https://localhost:8080/assets/icon-80.png" />
</bt:Images>
<bt:Urls>
<bt:Url id="detectedEntityURL" DefaultValue="https://localhost:8080/index.html" />
</bt:Urls>
<bt:ShortStrings>
<bt:String id="contextLabel" DefaultValue="Order Number Detected" />
</bt:ShortStrings>
</Resources>
</VersionOverrides>
</VersionOverrides>
</OfficeApp>