Re: Problem using mbox format

Alan Clifford <[email protected]>
Newsgroups gmane.mail.procmail
Organization http://rp.clifford.org.uk/potpourri/
Message-ID <[email protected]>
On Thu, 30 Dec 2010, Sandra Weddig wrote:

> Sorry,
>
> I want the mails to go to a file /var/mail/sandra/sandra
>
> thx, Sandra
>

After checking $LOGNAME exists in your environment:

Assuming you want Fred's mail to go to /var/mail/fred/fred as well, I'd 
try

ORGMAIL=/var/mail/${LOGNAME}/${LOGNAME}
DEFAULT defaults to ${ORGMAIL} so you wouldn't need to set that I think.

MAILDIR=/var/mail/${LOGNAME}
LOGFILE=/var/mail/${LOGNAME}

So the default location for mail for sandra would be the file 
/var/mail/sandra/sandra


Any recipes with an action line with a different file name, such as 
one of mine

:0 :
* ^FROM_DAEMON
* ^from:.*@(malander|nard|pomander|pomade)\.clifford\.ac
IN.mydaemons

should put that mail into the file IN.mydaemons in the directory pointed 
to by $MAILDIR, which in your system, for sandra, would be the file
/var/mail/sandra/IN.mydaemons

-- 
Alan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.