Coldfusion:收听电子邮件

发布于 2024-09-13 05:55:04 字数 246 浏览 3 评论 0原文

我试图在 ColdFusion 中建立一种观察者模式,

我们希望监听传入的电子邮件消息并对其采取行动。场景是这样的:

应用程序向帮助台系统发送电子邮件 帮助台系统自动生成票证并通过电子邮件回复到应用程序的电子邮件地址 应用程序的电子邮件在 Lotus Notes 中配置 现在应用程序应该侦听此传入电子邮件消息,对其进行解码并更新相应的 TicketID

我认为事件网关有可能,但我无法了解整个情况。

想法或建议?

I am trying to have a kind of observer pattern in ColdFusion

We want to listen to the incoming Email messages and act on them. Scenario is something like this :

Application sends email to the helpdesk system
Helpdesk system automatically generates a ticket and responds with an email to the email address of the application
The application's email is configured in the Lotus notes
Now the application should listen to this incoming email message, decode that and update the coressponding ticketid

I see there is a possibility with Event Gateways, but I am unable to realize the whole picture.

Thoughts or suggestions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

用心笑 2024-09-20 05:55:04

一种方法是设置支持 IMAP 的电子邮件服务器,并使用 在 CF 中使用某种轮询(每分钟一次,足够好吗?)来获取电子邮件。

http://help.adobe。 com/en_US/ColdFusion/9.0/CFMLRef/WS371453EC-36D5-44ce-BF1E-750E3016BBD6.html

One way is to setup an email server with IMAP support, and use some sort of polling (every minute, good enough?) in CF using <cfimap> to get the emails.

http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WS371453EC-36D5-44ce-BF1E-750E3016BBD6.html

も让我眼熟你 2024-09-20 05:55:04

我们有一个这样的系统。

我们有一个配置为处理域邮件的 postfix 服务器。 postfix 服务器上的小脚本 (Perl) 将每封电子邮件放入 ActiveMQ 队列中。

我们有一个带有 ActiveMQ 事件网关侦听器的 CF 盒集群,该侦听器将消息从队列中取出并使用 Java Mail 对其进行处理。

postfix 接收电子邮件和 CF 服务器处理电子邮件之间的延迟通常低于 1 秒。

我们需要这样做的原因有很多,处理延迟是其中之一,处理大量 CF 集群使 POP/IMAP 解决方案变得复杂,以及 CF 的邮件处理不太符合我们的要求等。

效果很好。

We have a system like this.

We have a postfix server configured to handle mail for a domain. A small script (Perl) on the postfix server places each email on an ActiveMQ queue.

We have a cluster of CF boxes with the ActiveMQ event gateway listener that takes the messages off the queue and processes them using Java Mail.

The delay between postfix receiving the email and a CF server processing it is generally under 1s.

We needed to do it this way for a number of reasons, processing delay being one of them, dealing with a large cluster of CF which made the POP/IMAP solution complicated, and CF's mail handling not being quite what we wanted were others.

It works great.

最佳男配角 2024-09-20 05:55:04

我过去使用 cfpop 创建了类似的应用程序来按计划查询邮箱。

它很容易编写,但当“用户”开始对电子邮件内容“提供帮助”时,通常会陷入困境。

另一件事是,这不是瞬时的,但这个过程真的对秒的时间至关重要吗?

I've created similar applications in the past using cfpop to interogate a mailbox on a scheduled basis.

It was pretty easy to write, but usually gets thrown for a loop when "users" start being "helpful" with the email content.

The other thing is that this isn't instantaneous, but is the process really time critical to the second?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文