The Tuesday 2004-01-20 at 15:14 +0200, Hans du Plooy wrote:
I have this in my procmailrc
:0 * ^Subject:.**SPAM** ! spambox@company.co.za
Which works fine except that the mail loops once, so I get two of each in the spambox.
I would rather like to do
:0 * ^Subject:.**SPAM** /home/spambox/Maildir/
The mail gets delivered fine, except that it belongs to root instead of user spambox.
Ah. That must be because you you are talking of '/etc/procmailrc', aren't you? | If no rcfiles and no -p have been specified on the command | line, procmail will, prior to reading $HOME/.procmailrc, | interpret commands from /etc/procmailrc (if present). | Care must be taken when creating /etc/procmailrc, because, | if circumstances permit, it will be executed with root | privileges (contrary to the $HOME/.procmailrc file of | course). I think the rule should be: :0 * ^Subject:.**SPAM** ! spambox I think that when this rule executes, the mail is forwarded to that user, sending it back to postfix or sendmail - who will again call procmail for the user spambox: this run will read again /etc/procmailrc, so we have a loop. Ie, the above rule will not work properly. There must be a trick, but can't think of it now. -- Cheers, Carlos Robinson