<<< Date Index >>>     <<< Thread Index >>>

Re: procmail with mutt



* On Fri, Jan 13, 2006 Gerald Britton (gerald.britton@xxxxxxxxx) muttered:
> Can anyone tell me the right way to get procmail working with mutt?
> 
> $ cat /etc/procmailrc
> # Use mbox-style mailbox in FHS standard directory
> DEFAULT=/var/mail/$LOGNAME
> LOGFILE=$HOME/procmail

why a global?

> I also have my userid set up as a directory under /var/mail/. 

Wrong. If you want to use mbox it should not be a dir but a file.

> However, when I send myself an E-mail, I get something like this:
> 
> $ ls /var/mail/me/
> msg.7QdS  msg.ChmU  msg.MSbU  msg.V_WF  msg.amXT  msg.ikDB  msg.sXSF 
> msg.sXbU  msg.uWtL  msg.wWtL  msg.x3cS

Right because procmail sees a dir not a file, but it's not a maildir
either. So procmail does the best it can by saving each message to and
own file.

> mutt -f /var/mail/me -m mbox
> 
> I get the message from mutt:
> 
> /var/mail/me/ is not a mailbox.

Sure because /var/mail/me is a dir not a mbox file. What you should do
is run mutt -f /var/mail/me/msg.... for every files there is and save
all messages to a new folder. eg ~/temp_mbox. Then delete /var/mail/me/
(the dir).
Send yourself a mail now. Procmail, resp. the MTA will create
/var/mail/me (as a mbox file) and mutt will be able to read it. If you
want you can save the messages from ~/temp_mbox back to the spool now.

HTH,

Michael
-- 
Civilization, as we know it, will end sometime this evening.
See SYSNOTE tomorrow for more information.

PGP-Key-ID: 0xDC1A44DD
Jabber:     init[0]@amessage.de