制作邮件钩子来发送post请求
我想做一些类似于 http://www.mailhooks.com/ 的事情。当收到电子邮件时,它会向提供的网站发送发布请求,但我不知道从哪里开始实现这样的事情。文本电子邮件接口(例如 mutt
和 pine
)是否允许接收挂钩,如果不允许,最好的方法是什么?
I want to do something similar to http://www.mailhooks.com/. When a email is received, it sends a post request to a provided website, but I don't know where to start implementing such a thing. Do textual email interface, such as mutt
and pine
allow receive hook, if not what would be the best way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一个简单的方法是使用
.procmailrc
或.forward
。使用任何一种,您都可以将任何传入消息传送到您选择的程序。例如使用 procmailrc:
然后程序应该从 stdin 读取消息并执行 post 请求。
An easy way is to use
.procmailrc
or.forward
. Using either one you can pipe any incoming messages to a program of your choice.E.g. using procmailrc:
The program should then read the message from stdin and perform the post request.