使用 Ruby 归档电子邮件
我正在寻找有关任何可以帮助我使用 Ruby 构建电子邮件归档系统的库或方法的信息(如果有建议,我愿意接受其他语言)。
应用程序需要执行以下操作:
1) 位于传入邮件服务器上,接收并存储所有传入的邮件 电子邮件。
2) 存储电子邮件后,将其推送到我们实际的电子邮件服务器。
3) 电子邮件存档应该是可搜索的。
对此的任何想法都表示赞赏,我似乎找不到执行此操作的现有项目。
I'm looking for information on any libraries or methods that would help me to build an email archiving system using Ruby (I'm open to other languages if suggested).
The application would need to do the following:
1) Sit on a incoming mail server, receiving and storing all incoming
email.2) After storing email, push it out to our actual email server.
3) The Email archive should be searchable.
Any thoughts on this are appreciated, I can't seem to find an existing project that does this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尽管我是 Ruby 的忠实粉丝,Zed Shaw 用 Python 编写了一个非常有趣且可配置的 SMTP 服务器,称为 Lamson:
http:// /lamsonproject.org/
我从未使用过 Lamson,但我认为只需进行最少的调整,您就可以让它将电子邮件存储到您选择的大多数数据库中,并轻松地将电子邮件转发到您喜欢的任何地方。
一旦您将所有电子邮件放入数据库中,如果您愿意,使用 Ruby(和/或 Rails)构建数据库前端应该是一项相对容易的任务。
由于处理电子邮件可能是相当棘手的事情,因此使用像 Lamson 这样专门构建的东西作为中间处理器可能值得一试。
Even though I'm a big Ruby fan, Zed Shaw has written a very interesting and configurable SMTP server in Python, called Lamson:
http://lamsonproject.org/
I've never used Lamson, but I think with minimum tweaking you could make it store e-mails into most any DB you choose, and forward e-mails easily wherever you like.
Once you have all your emails in a DB, it should be a relatively easy task to build a front-end to the DB with Ruby (and/or Rails) if you wish.
Since processing e-mails can be fairly tricky stuff, using something purpose-built like Lamson as your intermediate processor might be worth a shot.
拉姆森项目看起来非常棒。如果您想自己实际实现一些东西,我发布了 博客文章 不久前介绍了一些在 Ruby 中接收电子邮件的最佳方法。还有很多方法可以相当轻松地将邮件再次推送出去,不过最好依靠已经具有所有这些功能的系统。
The lamson project looks pretty awesome. If you're looking to actually implement something yourself I posted a blog post a while back on some of the best methods to receive email in Ruby. There are also plenty of ways to push the mail back out again fairly easily, it's probably better to rely on a system that already has all of this functionality though.