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

Re: procmail with mutt



I think I know what is going on here. All this has been said in previous
messages.

1) /var/mail/$LOGNAME was a directory, not a file
2) procmail creates the msg.XXX files because the mailbox is actually a
directory, not a file (someone else mentioned this)
3) this results in a non-supported mailbox format

To fix:

A) decide on a mailbox format

maildir
1) make sure /var/mail/$LOGNAME is a directory or doesn't exist
2) in procmailrc change DEFAULT to /var/mail/$LOGNAME/ (note the trailing /)

mbox
1) make sure /var/mail/$LOGNAME is a file or doesn't exist
2) in procmailrc change DEFAULT to /var/mail/$LOGNAME (note the lack of a 
trailing /)

mh
1) make sure /var/mail/$LOGNAME is a directory or doesn't exist
2) in procmailrc change DEFAULT to /var/mail/$LOGNAME/. (note the trailing .)



Below is Nicolas's summary:

On Tue, Jan 17, 2006 at 06:58:51PM +0100, Nicolas Rachinsky wrote:
> * Michelle Konzack <linux4michelle@xxxxxxxxxx> [2006-01-17 16:29 +0100]:
> > Am 2006-01-13 15:38:19, schrieb Gerald Britton:
> > > Can anyone tell me the right way to get procmail working with mutt?  I
> > > have procmailrc set up like this:
> > > 
> > > $ cat /etc/procmailrc
> > > # Use mbox-style mailbox in FHS standard directory
> > > DEFAULT=/var/mail/$LOGNAME
> 
> Please note that there isn't any trailing dot.
> 
> 
> > > $ 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
> > 
> > This is a Mailbox in MH style.
> 
> Mutt doesn't think so.
> 
> 
> > This happen, if you use a filter like
> > 
> > :0
> > * 1 From:.*mutt-users
> > some_mailbox/.
> 
> Such a filter results in:
> ~> ls rd/TEST/
> 1       2       3
> 
> 
> > pleae note the "." at the end of the Mailbox.
> > which mean:
> > 
> >         some_mailbox            produce ONE mailbox file
> 
> Or, if some_mailbox is an existing directory in the above. Look in 
> procmailrc(5) for MSGPREFIX.
> 
> 
> > > mutt -f /var/mail/me -m mbox
> >                           ^^^^
> >                    you are using "mh"
> 
> I think this ('-m') will only set $mbox_type, which is only used when
> mutt creates new folders. But I haven't verified this in the source.
> 
> Nicolas
> 
> -- 
> http://www.rachinsky.de/nicolas

-- 
:: Jeff Macdonald | Principal Engineer, Messaging Technologies
:: e-Dialog | jmacdonald@xxxxxxxxxxxx
:: 131 Hartwell Ave. | Lexington, MA 02421 
:: v: 781-372-1922 | f: 781-863-8118 
:: www.e-dialog.com