Toen wij Louis-David Mitterrand kietelden, kwam er dit uit:
[/etc/procmailrc]
It works but the messages and directories are owned by root.mail and
unreadable by the user when connecting by imap. Is there a way to have
the messages delivered as $LOGNAME?
See man procmailrc, look for DROPPRIVS.
A 'DROPPRIVS = yes' before delivery will do what you want.
Initially, MAILDIR is equal to $HOME.
Maybe a 'MAILDIR = $HOME/mail' is useful.
The ()\/ are not necessary, unless you need MATCH
set to the header, prefixed by NL.
You are not specifying the hostname, at least add
something like [(_dot_)(_at_)]
DROPPRIVS = yes
MAILDIR = $HOME/mail
:0
*$ ^TO_$LOGNAME[(_dot_)(_at_)]
{
:0
*$! ^To:.*\<$LOGNAME[(_dot_)(_at_)]
.CC/
:0
$DEFAULT
}
:0E
.BCC/
--
Grtz, Ruud
____________________________________________________________
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