On Apr 11, 2005 9:45 AM, Dallman Ross <dman(_at_)nomotek(_dot_)com> wrote:
On Mon, Apr 11, 2005 at 09:34:37PM +0530, Subscriptions wrote:
Now, the problem is, the webmail program cannot read the files owned by
anyone other than 'apache'. So, whenever a new file (actually folder in
webmail) is created, it must be owned by apache for webmail to read it.
It sounds like you want chown. You would have to do it in /etc/procmailrc
as the elevated user.
I'd approach this roughly as follows:
# Use a "c"lone (copy) delivery here so delivery doesn't terminate processing
:0 c:
* conditions matching spammy messages
/path/to/webmail/spammymessagefile
# Now check if we performed a delivery, and if so do a chown and exit
:0
* LASTFOLDER ?? .
* ? chown apache $LASTFOLDER
{ HOST }
# Here do error handling if chown failed
:0 E
{
# Whatever ....
}
____________________________________________________________
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