procmail
[Top] [All Lists]

mail permissions when delivering in /etc/procmailrc

2004-06-24 08:12:50
Hello,

I am trying to install a general mail filter for all users in
/etc/procmailrc that sorts messages in CC and BCC maildirs. Here is the
rule I added:

MAILDIR=$HOME/Maildir
## in Cc: header
:0
*$! ()\/^To:.*$LOGNAME
*$  ()\/^Cc:.*$LOGNAME
.CC/
## not in To: header, low-priority stuff
:0
*$  ()\/^To:.*$LOGNAME
*$! ()\/^From:.*$LOGNAME
{ }
:0E
.BCC/

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?

Thanks,


____________________________________________________________
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>