|
发表于 2010-3-19 23:32:47
|
显示全部楼层
在~/.getmail/文件夹里写一个脚本
- #!/bin/bash
- getmail -v -n -r ~/.getmail/getmailrc.163 -r ~/.getmail/getmailrc.gmail
复制代码
在每个getmailrc.***里写法和你原来的getmailrc一样
- [options]
- verbose = 1
- read_all = false
- message_log = ~/.getmail/log
- [retriever]
- type = SimplePOP3Retriever
- server = pop3.163.com
- username = user
- password = pass
- [destination]
- type = MDA_external
- path = /usr/bin/procmail
- unixfrom = true
复制代码
最后将第一个脚本写入contab中 |
|