我一般来说对创建Outlook加载项还很陌生,几天前才从Office.js开始。
我已经与Yeoman Office生成器和生成的manifest.xml玩了几天,并开始了解它。我正在尝试创建一个加载项,该加载项将一个按钮添加到Outlook中的“主页”选项卡,非常类似于TeamViewer和Teams按钮。
只要选择/突出显示一条消息,我自己的组/按钮就可以正常工作,但是,可以显示我的按钮而不需要这样做吗?例如在空的收件箱中/永久保存,等等。
以下是我的意思的图片:
https://i.imgur.com/lrEPCyP.png(已选择消息)
[https://i.imgur.com/eM0CL9U.png(空邮箱)
这里是我目前正在使用的manifest.xml。
<?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>260e4f3c-61b9-485c-9c0c-525c46708848</Id>
<Version>1.0.0.0</Version>
<ProviderName>EasyMeeting</ProviderName>
<DefaultLocale>no-NB</DefaultLocale>
<DisplayName DefaultValue="EasyMeeting"/>
<Description DefaultValue="Lag møte-invitasjoner med EasyMeeting"/>
<IconUrl DefaultValue="https://i.imgur.com/dgjrg8m.png"/>
<HighResolutionIconUrl DefaultValue="https://i.imgur.com/ipFcRqx.png"/>
<SupportUrl DefaultValue="https://www.easymeeting.net/support/"/>
<AppDomains>
<AppDomain>easymeeting.net</AppDomain>
<AppDomain>localhost</AppDomain>
<AppDomain>imgur.com</AppDomain>
</AppDomains>
<Hosts>
<Host Name="Mailbox"/>
</Hosts>
<Requirements>
<Sets>
<Set Name="Mailbox" MinVersion="1.3"/>
</Sets>
</Requirements>
<FormSettings>
<Form xsi:type="ItemRead">
<DesktopSettings>
<SourceLocation DefaultValue="https://localhost:3000/taskpane.html"/>
<RequestedHeight>250</RequestedHeight>
</DesktopSettings>
</Form>
</FormSettings>
<Permissions>ReadWriteItem</Permissions>
<Rule xsi:type="RuleCollection" Mode="Or">
<Rule xsi:type="ItemIs" ItemType="Message" FormType="ReadOrEdit"/>
<Rule xsi:type="ItemIs" ItemType="Appointment" FormType="ReadOrEdit"/>
</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.8">
<bt:Set Name="Mailbox"/>
</bt:Sets>
</Requirements>
<Hosts>
<Host xsi:type="MailHost">
<DesktopFormFactor>
<FunctionFile resid="Commands.Url"/>
<ExtensionPoint xsi:type="MessageReadCommandSurface">
<OfficeTab id="TabDefault">
<Group id="EasyMeeting">
<Label resid="GroupLabel"/>
<Control xsi:type="Button" id="myCustomButtonId">
<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"/>
</Action>
</Control>
</Group>
</OfficeTab>
</ExtensionPoint>
</DesktopFormFactor>
</Host>
</Hosts>
<Resources>
<bt:Images>
<bt:Image id="Icon.16x16" DefaultValue="https://i.imgur.com/XZCSEzX.png" />
<bt:Image id="Icon.32x32" DefaultValue="https://i.imgur.com/dgjrg8m.png" />
<bt:Image id="Icon.80x80" DefaultValue="https://i.imgur.com/ipFcRqx.png" />
</bt:Images>
<bt:Urls>
<bt:Url id="Commands.Url" DefaultValue="https://localhost:3000/commands.html" />
<bt:Url id="Taskpane.Url" DefaultValue="https://localhost:3000/taskpane.html" />
</bt:Urls>
<bt:ShortStrings>
<bt:String id="GroupLabel" DefaultValue="EasyMeeting.net"/>
<bt:String id="TaskpaneButton.Label" DefaultValue="Planlegg møte" />
</bt:ShortStrings>
<bt:LongStrings>
<bt:String id="TaskpaneButton.Tooltip" DefaultValue="Planlegg et nytt møte med EasyMeeting og inviter kontakter."/>
</bt:LongStrings>
</Resources>
</VersionOverrides>
</VersionOverrides>
</OfficeApp>
Outlook加载项在撰写或阅读时可用于消息或约会,但不适用于其他项目类型。如果当前的邮件项(以撰写或阅读形式)为以下之一,则Outlook不会激活加载项:
受信息权限管理(IRM)保护或以其他方式加密以提供保护。数字签名消息是一个示例,因为数字签名依赖于这些机制之一。
具有邮件类IPM.Report。*的传递报告或通知,包括传递和未传递报告(NDR)报告,以及已读,未读和延迟通知。
草稿(未分配发件人),或在Outlook草稿文件夹中。
。msg或.eml文件,它是另一封邮件的附件。
从文件系统打开的.msg或.eml文件。
使用自定义表单。
通常,Outlook可以为已发送邮件文件夹中的项目激活读取形式的加载项,但基于众所周知的实体的字符串匹配激活的加载项除外。
当前在项目上下文中运行的加载项。但是,我们已经在UserVoice上看到了对此的要求,并且在我们的积压中]