有一个工具 rss2email,它很像 fetchmail,两者的区别是 rss2email 针对 RSS/Atom 协议,fetchmail 针对 POP3/IMAP 等协议。 在默认情况下,被 rss2email 收取到的内容会被发送给本地用户。通过配置,rss2email 还可以使用 SMTP 协议把内容送往其他地址。 由 rss2email 收取到的中文内容,不需要任何特殊配置,即可在 Mutt 里可以正确显示。 比在网上使用其他提供 RSS 转 Email 的 Web Services [1] 更方便。 == 安装 apt-get install rss2email == 配置 procmail 如果你想对收取到的 RSS 内容经由 procmail 分拣后保存在特定的邮箱 (假定为planet) ,那么你必须修改 "~/.procmailrc" 配置文件,增加以下内容: -------------- :0 * ^(User-Agent):.*rss2email planet/ -------------- == 试用 r2e new `echo $USER`@localhost # 收取到的内容将会发送给该用户 r2e add 'http://rss2email.infogami.com/blog/atom.xml' # 添加你自己感兴趣的 r2e list # 显示所有已被订阅的站点列表 r2e run 1 # 只收取站点列表中第一个站点的内容,后面不跟数字则收取全部站点内容 == 查看 当"r2e run"运行结束后,启动 Mutt 并打开 planet/ 邮箱,应该就能看到所订阅的内容 了。 == 其他 rss2email 不支持守护进程,它只能通过 cron 实现周期运行。 rss2email 是用 python 而不是 perl 写的。 [1]: http://www.rssfwd.com/ -- Vern 2007-11-22
Attachment:
signature.asc
Description: Digital signature