c#根据规则自动处理电子邮件
我需要一个模式来处理传入的电子邮件 我当前的伪代码如下所示:c#根据规则自动处理电子邮件,c#,rule-engine,email-processing,C#,Rule Engine,Email Processing,我需要一个模式来处理传入的电子邮件 我当前的伪代码如下所示: if sender is a@a.com and messageBody contains "aaa" then extract the content according the aaa function save it to database move the message to the archive else if messageBody contains "bbb" then extract the
if sender is a@a.com and messageBody contains "aaa" then
extract the content according the aaa function
save it to database
move the message to the archive
else if messageBody contains "bbb" then
extract the content according to bbb function
save it to database
inform sender
move the message to archive
else if messageBody NOT contains "ccc" and from "sender@ccc.com" and then
leave message in the inbox so the it will be manually processed
else if ...
...
因此,我最终得到了一个包含数千行的pig函数
我怎样才能使这件事更简单
提前感谢解决这一问题需要一个非常好的体系结构,机器学习是解决这类问题的最佳方案之一。但是仍然有一些事情,你可以照顾,为了使它更简单