On Sat, Sep 10, 2011 at 11:02:32AM +0100, Athanasius wrote:
Date: Sat, 10 Sep 2011 11:02:32 +0100 From: Athanasius <[email protected]> To: [email protected] Subject: Re: bad path given to procmail User-Agent: Mutt/1.5.18 (2008-05-17)On Fri, Sep 09, 2011 at 01:24:15PM -0700, Robert Holtzman wrote:On Fri, Sep 09, 2011 at 01:11:52PM +0200, G???rard Robin wrote: > Hello, > I have put a path like this in procmailrc: > > :0 > * ^[email protected] > MUTT/U11/mutt-`date +%m-%y` > > but I had not yet created the directory MUTT/U11 and when I downloaded > my messages the messages from the list mutt-users were lost. > Is it possible to avoid losing the messages in this case ? i.e. when the > path doesn't exist. Read your .procmailrc file. You will se this: # Messages that fall through all your procmail recipes are delivered # to your default INBOX. To find out yours, run 'procmail -v'I'd not come across this before, so checked... and in my setup the output for 'default INBOX' is incorrect. It states: Default rcfile: $HOME/.procmailrc It may be writable by your primary group Your system mailbox: /var/mail/athan But I have: 11:00:37 0$ grep DEFAULT .procmailrc DEFAULT=$MAILDIR/.catchall/ So if you have a DEFAULT setting in .procmailrc, check that.
Thank you to everyone who responded to me.Effectively I had in my ".procmailrc" : DEFAULT=/var/spool/mail/user1 but perhaps user1 can't write in /var/spool/mail.
I set DEFAULT like this: DEFAULT=$MAILDIR/SAVED and I have created the directory ~/Mail/SAVED and now when procmail doesn't find a location the mail goes in SAVED. -- Gérard
signature.asc
Description: Digital signature
