Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jquery-ui/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Gmail contextual gadgets Can';t使用Gmail自定义提取器获取发件人名称_Gmail Contextual Gadgets - Fatal编程技术网

Gmail contextual gadgets Can';t使用Gmail自定义提取器获取发件人名称

Gmail contextual gadgets Can';t使用Gmail自定义提取器获取发件人名称,gmail-contextual-gadgets,Gmail Contextual Gadgets,对不起我的英语。我无法使用自定义提取器获取发件人名称。我试图从“from_email”和“body”部分获取全部数据(用于测试目的)。结果中只有电子邮件。正文没有“发件人”部分,只有“数据”部分 这是我的提取器: <?xml version="1.0" encoding="UTF-8"?> <OpenCOBData id="SenderName"> <ExtractorSpec platform="gmail" language="en"> &l

对不起我的英语。我无法使用自定义提取器获取发件人名称。我试图从“from_email”和“body”部分获取全部数据(用于测试目的)。结果中只有电子邮件。正文没有“发件人”部分,只有“数据”部分

这是我的提取器:

<?xml version="1.0" encoding="UTF-8"?> 
<OpenCOBData id="SenderName">  
 <ExtractorSpec platform="gmail" language="en"> 

 <Search input_type="text"> 
 <Pattern input_fields="from_email,body"> 
 <![CDATA[(?P<sender_name>.*)]]> 
 </Pattern> 
 </Search> 

 <Response platform="gmail" format="cardgadget">
 <Output name="senderName">{@sender_name}</Output> 
 </Response> 
 </ExtractorSpec> 

</OpenCOBData>

.*)]]> 
{@sender_name}
这是舱单的一部分:

<!-- EXTRACTOR --> 

<Extension id="EmailSenderNameExtractor" type="contextExtractor"> 
<Name>Email Sender Name Extractor</Name> 
<Url>781689580671:SenderName</Url> 
<Triggers ref="CustomExtractorGadget"/> 
<Scope ref="emailSenderAddress"/> 
<Scope ref="emailSenderName"/> 
<Scope ref="emailBody"/> 
<Container name="mail"/> 
</Extension> 


<!-- GADGET --> 

<Extension id="CustomExtractorGadget" type="gadget"> 
<Name>Person name extractor</Name> 
<Url>***</Url> 
<Container name="mail"/> 
</Extension> 


<!-- SCOPE --> 

<Scope id="emailSenderAddress"> 
<Url>tag:google.com,2010:auth/contextual/extractor/FROM_ADDRESS</Url> 
<Reason>This application searches the message body for any text.</Reason> 
</Scope> 

<Scope id="emailSenderName"> 
<Url>tag:google.com,2010:auth/contextual/extractor/FROM_PERSONAL</Url> 
<Reason>This application searches the message body for any text.</Reason> 
</Scope> 

<Scope id="emailBody"> 
<Url>tag:google.com,2010:auth/contextual/extractor/BODY</Url> 
<Reason>This application searches the message body for any text.</Reason> 
</Scope>

电子邮件发件人名称提取器
781689580671:SenderName
人名提取器
*** 
标签:google.com,2010:auth/context/extractor/FROM_ADDRESS
此应用程序在邮件正文中搜索任何文本。
标签:google.com,2010:auth/context/extractor/FROM_PERSONAL
此应用程序在邮件正文中搜索任何文本。
标签:google.com,2010:auth/context/extractor/BODY
此应用程序在邮件正文中搜索任何文本。

有什么问题吗?

解决方案是使用来自个人的内置变量
\uuu

<Response platform="gmail" format="cardgadget">
    <Output name="senderName">{@__FROM_PERSONAL__}</Output>
    <Output name="senderEmail">{@__FROM_ADDRESS__}</Output>
</Response>

{@{u来自{u个人}
{@}
更多: