procmail
[Top] [All Lists]

Re: Problem using mbox format

2010-12-30 13:47:06
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

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>