本文介绍了如何为传入的GAE电子邮件支持不同的处理程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
string@appid.appspotmail 应该去Handler1; li> string+something@appid.appspotmail 应该去Handler2;
string@appid.appspotmail should go to Handler1;
string+something@appid.appspotmail should go to Handler2;
根据 GAE文档,可以支持几个处理程序传入的电子邮件。我想支持两个:
In accordance with GAE docs, several handlers could be support for incoming e-mails. I would like to support two:
看起来我应该有这样的东西:
Looks like I should have something like:
- url: /_ah/mail/<???>your_app_id\.appspotmail\ script: handler2.app login: admin - url: /_ah/mail/.+ script: handler1.app login: admin正则表达式(?)应如何将发送到e-邮件带有加号到另一个处理程序?
How the regex (?) should look like to route messages sent to e-mail with plus sign to another handler?
推荐答案[更新] 以下配置为我工作。
[Updated] The following configuration works for me.
- url: /_ah/mail/string@.*your_app_id\.appspotmail script: handler2.app login: admin - url: /_ah/mail/string%2B.*@.*your_app_id\.appspotmail script: handler1.app login: admin - url: /_ah/mail/.+ script: catchall.app login: admin更多推荐
如何为传入的GAE电子邮件支持不同的处理程序?
发布评论