如何为传入的GAE电子邮件支持不同的处理程序?

编程入门 行业动态 更新时间:2024-10-22 13:31:38
本文介绍了如何为传入的GAE电子邮件支持不同的处理程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

根据 GAE文档,可以支持几个处理程序传入的电子邮件。我想支持两个:

In accordance with GAE docs, several handlers could be support for incoming e-mails. I would like to support two:

  • 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;
  • 看起来我应该有这样的东西:

    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电子邮件支持不同的处理程序?

    本文发布于:2023-10-12 23:33:40,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1486199.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:何为   电子邮件   程序   GAE

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!