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

Re: problems with Maildir, procmail, getmail



On Sun, Mar 09, 2008 at 02:34:23PM +0000, Jamie Griffin wrote:
> I've been struggling for ages trying to set up mutt on my linux
> machine. 
> 
> I've specified the Maildir mailboxes in muttrc
> set up procmail
> set up getmail to pop my email

> 
> but when i open mutt it wants to use /var/mail/user
> 
> i created this using:
> 
> sudo touch /var/mail/user
> sudo chown user:users /var/mail/user
> sudo chmod 600/var/mail/user
> 
> This stopped mutt complaining it wasn't there but now when i pop my
> email using getmail, i'm lots of error messages returned from the shell
> with procmail. its saying the problem is with /var/mail/user.lock ??? 
> 
> none of the messages are being filtered into the right folders as a
> result... i don't know what to do next. Any ideas?
> 
> Jamie

Hmm never seen errors like these, but I'm using pretty much your setup. 

muttrc:
    
    set mbox_type=Maildir
    set folder=~/Maildir
    set spoolfile=~/Maildir
    set trash=+trash
    set record=+sent
    set postponed=+postponed
    mailboxes +spam +inbox +sent ...
 
.procmailrc starts with:
    
    MAILDIR=$HOME/Maildir/

The MDA part of my getmailrc files (I use `getmail -r <rc-file1> -r <rc-file2>
...` to fetch mail from several POP3 accounts):

    [destination]
    type = MDA_external
    arguments = ("-f", "%(sender)")
    path = /usr/bin/procmail


HTH

cheers,
steve