LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1408|回复: 4

请问如何用mutt和getmail管理多个pop3邮箱

[复制链接]
发表于 2010-3-17 20:24:36 | 显示全部楼层 |阅读模式
rt,我发在arch区没人回,因此在此处再次询问,谢谢
发表于 2010-3-18 00:23:04 | 显示全部楼层
我知道fetchmail可以这么干, 帐号都写在.fetchmailrc里, mutt只是管理取回来的邮件而已
回复 支持 反对

使用道具 举报

发表于 2010-3-19 23:32:47 | 显示全部楼层
在~/.getmail/文件夹里写一个脚本

  1. #!/bin/bash
  2. getmail -v -n -r ~/.getmail/getmailrc.163 -r ~/.getmail/getmailrc.gmail
复制代码

在每个getmailrc.***里写法和你原来的getmailrc一样

  1. [options]
  2. verbose = 1
  3. read_all = false
  4. message_log = ~/.getmail/log

  5. [retriever]
  6. type = SimplePOP3Retriever
  7. server = pop3.163.com
  8. username = user
  9. password = pass

  10. [destination]
  11. type = MDA_external
  12. path = /usr/bin/procmail
  13. unixfrom = true
复制代码


最后将第一个脚本写入contab中
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-3-22 22:23:03 | 显示全部楼层
感谢!已测试,该方法可行。
回复 支持 反对

使用道具 举报

发表于 2010-4-12 17:38:45 | 显示全部楼层
folder-hook? 管理多个imap都可以,更别说pop3了

但是....有fetchmail...何必呢
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表