2007年2月28日星期三

使用getmail4来代替了fetchmail

据说getmail4是专门为了替代fetchmail而设计的,又据说fetchmail有很多得问题。于是尝试着使用getmail4来代替fetchmail。
1- sudo apt-get install getmail4
2- mkdir .getmail
3- vim .getmail/getmailrc
[options]
verbose = 0
read_all = false
delete = true
message_log = ~/Logs/getmail.log

[retriever]
type = SimplePOP3Retriever
server = mail.xxxxx.com.cn
username = xxxxx
password = xxxxx

[destination]
type = MDA_external
path = /usr/bin/procmail
unixfrom = true

4- 更改.muttrc
macro index G "!getmail\n" "Invoke getmail"
macro pager G "!getmail\n" "Invoke getmail"

5- 让getmail每隔10分钟自动运行
crontab -e
然后加入下面一行:
0,10,20,30,40,50 * * * * getmail

没有评论: