[英]Use Globiflow to pull certain information from an email
I am trying to use Globiflow to identify information from an email reply.我正在尝试使用 Globiflow 从电子邮件回复中识别信息。 I am using the "Email to app" feature in Podio where an individual could email that particular email and have the information go straight to the app.
我正在使用跑道中的“电子邮件到应用程序”功能,个人可以通过电子邮件发送该特定电子邮件并将信息直接发送到应用程序。 Here are the fields within the app:
以下是应用程序中的字段:
Within the email I am trying to make it where the client can identify themselves (by account email), when they would like the project done by, and the urgency of it.在电子邮件中,我试图让客户能够识别自己的身份(通过帐户电子邮件)、他们希望项目完成的时间以及项目的紧迫性。 They do this with the following key words:
他们使用以下关键词来做到这一点:
I need the system to identify these keywords and map them to the appropriate fields within the app.我需要系统识别这些关键字并将它们映射到应用程序中的适当字段。
Currently I have no problem with the Urgency: keyword and mapping it to the app field.目前我对 Urgency: 关键字没有问题并将其映射到 app 字段。 I am doing this with
preg_match_gf("/Urgency:\\s([az-\\s]+^)/ism", strip_tags_gf([(Project) Description of Job]),1)
and it is working just fine.我正在用
preg_match_gf("/Urgency:\\s([az-\\s]+^)/ism", strip_tags_gf([(Project) Description of Job]),1)
,它工作得很好。
For the other two however, I am not finding the same fortune.然而,对于另外两个,我没有找到同样的财富。 I have tried many different patterns with the coding to try and identify the Date: and Account Email: keywords by have been unsuccessful.
我尝试了许多不同的编码模式来尝试识别 Date: 和 Account Email: 关键字,但均未成功。
I have even tried stristr with the date stristr([(Project) Description of Job],"Date:")
and then try to strip it in another custom variable with preg_match_gf("/Date:\\s([0-9\\(\\)\\-\\s]+^)/ism", [(Variable) date], strip_tags_gf([(Variable) date]),1)
but I am still not successful.我什至尝试过 stristr 与日期
stristr([(Project) Description of Job],"Date:")
然后尝试使用preg_match_gf("/Date:\\s([0-9\\(\\)\\-\\s]+^)/ism", [(Variable) date], strip_tags_gf([(Variable) date]),1)
但我还是没有成功。 Of course I have also tried these with just and preg_match and strip_tag as well.当然,我也用 just 和 preg_match 和 strip_tag 尝试过这些。
I would preferably like to pull the email straight from the email recipient field, but sometimes this will also include the senders name like this: Zach Alexander .我更喜欢直接从电子邮件收件人字段中提取电子邮件,但有时这也会包括这样的发件人姓名: Zach Alexander 。 Because it does this I am having a difficult time pulling just the email from the sender profile.
因为它这样做,我很难从发件人配置文件中提取电子邮件。 That is why I am having them identify it with the keyword Account Email: in the email body.
这就是为什么我让他们在电子邮件正文中使用关键字 Account Email: 来识别它的原因。
In short, I need this system to identify the clients email, if they added keywords and then property map those keyword entries to the Podio fields.简而言之,我需要这个系统来识别客户的电子邮件,如果他们添加了关键字,然后将这些关键字条目属性映射到跑道字段。
I added some screen shots to show where I am currently at.我添加了一些屏幕截图来显示我目前所在的位置。
Globiflow Image Globiflow 图像
Podio Image跑道图像
I know I am posting late, but maybe it will help others我知道我发布晚了,但也许它会帮助其他人
Use these patterns使用这些模式
for Date:日期:
preg_match_gf("/Date:\s(.*)/i", strip_tags_gf([(Call) Notes]), 1)
for Account Email帐户电子邮件
preg_match_gf("/Account Email:\s(.*)/i", strip_tags_gf([(Call) Notes]), 1)
or或者
preg_match_gf("/Email:\s(.*)/i", strip_tags_gf([(Call) Notes]), 1)
Thank You!谢谢你!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.