Mutt与procmail整合

我使用以下procmailrc与fetchmail:

 PATH=/bin:/usr/bin:/usr/local/bin VERBOSE=off LOGFILE=$HOME/.procmaillog DEFAULT=$HOME/mail/ MAILDIR=$HOME/mail/ # Recipes below this comment: :0: * ^(To|From):.*[email protected] QObject/ :0: * ^(To|From|Reply-To):.*[email protected] BlackFlame/ 

因此,它生成邮箱(与cur,tmp,新)文件夹~/mail~/mail/QObject 。 现在,我用mutt,期待它显示我所有的信息,以及两个分开的文件夹。 但是我只看到默认邮箱。 这是我的muttrc:

 set realname = "illusionoflife" set from = "[email protected]" set use_from = yes set envelope_from ="yes" # Use a signature set signature="~/.signature" # Use msmtp rather than sendmail. Check that # the path is correct for your system: set sendmail="/usr/bin/msmtp" # If not set in ~/.bashrc: set spoolfile = "$HOME/mail" #======================================================# # Folders set folder="$HOME/mail" # Local mailboxes stored here set record="+sent" # Where to store sent messages set postponed="+postponed" # Where to store draft messages set mbox_type=mbox # Mailbox type set move=no # Don't move mail from spool #======================================================# # Watch these mailboxes for new mail, useful only if # Procmail or Maildrop is used to sort mail. mailboxes ! +slrn +fetchmail +mutt set sort_browser=alpha # Sort mailboxes by alpha(bet) 

我觉得我不完全理解unix的邮件哲学,但究竟我错在哪里?

它看起来就像在使用maildir时将邮箱types设置为mbox。

我会查看你的系统的/ etc / Muttrc(或者可能是muttrc – 如果你提到你使用的是什么系统,通常会更好,因为各种Linux发行版以及其他类Unix和Unix系统都有自己的特性)并且看看它给出了什么作为默认 – 它往往会给出select。

在我自己的.muttrc中,我不使用spoolfile – 通常情况下,这是/ var / mail /默认情况下。

我有一个在http://home.roadrunner.com/~computertaijutsu/mutt.html mutt页面可能是有用的设置,虽然它没有说太多有关使用Maildir格式。

无论如何,这将是我要检查的第一件事,从mbox更改muttrc到Maildir。其次,在mutt时,你没有select打c改变目录,如果你打了几次,它不是最终显示你的整个$ HOME目录吗?