分页: 1 / 1

这个不是信箱,那是什么

发表于 : 2012-03-18 1:46
自由建客
事先 inbox 是空文件。
运行 getmail 后,启动 mutt,直接提示「不是信箱」!

代码: 全选

~$ file mail/inbox
mail/inbox: smtp mail text
请问有谁知道这是怎么回事?

~/.getmail/getmailrc
[bash]
[options]
read_all=false
delete=false
delete_after=15
#message_log=
[retriever]
type=SimpleIMAPSSLRetriever
server=imap.gmail.com
port=993
username=XXX@gmail.com
password=***
#move_on_delete=sent
[destination]
type=MDA_external
path=/usr/bin/procmail
[/bash]

~/.procmailrc
[bash]
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
MAILDIR="${HOME}/mail"
DEFAULT="${MAILDIR}/inbox"
LOGFILE="${MAILDIR}/procmail.log"
LOCKFILE="/var/lock/${USER}-procmail.${LOCKEXT}"

:0:
* ^To.*vim-cn@googlegroups\.com
vim

:0:
* ^To.*(fcitx|sunpinyin-developers)@googlegroups\.com
ime
[/bash]

Re: 这个不是信箱,那是什么

发表于 : 2012-03-18 11:01
jary_p
呃~

和我的不一样
我mutt设置的是
set mbox_type = Maildir ( 貌似这个快点?

LZ的mbox就不太清楚了 :em06

Re: 这个不是信箱,那是什么

发表于 : 2012-03-18 14:50
自由建客
原因在于 getmailrc 中 [destination] 段下得加 unixfrom=yes!
另,mbox 不慢,够用了,挺好的,又省空间!