在邮箱接收邮件时触发脚本? [英] trigger a script when mailbox recieves mail?

查看:185
本文介绍了在邮箱接收邮件时触发脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想处理一个特定的邮箱,当它收到邮件,我知道我可以有cron检查每n分钟的任何邮件,但想知道是否有一种方法来侦听邮件,而不是连续轮询。

I want to process a particular mailbox when it receives mail, I know I could have cron check every n minutes for any mail, but wondering if there's a way to "listen" for mail rather than continually polling.

推荐答案

尝试。转发文件

您可以将消息转换为任何所需的程序或脚本,但也可以检查 procmail 可以做你想要的。

You can pipe the message into any program or script you want, but also check if procmail can do what you want.

这篇关于在邮箱接收邮件时触发脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆