On 31-Aug-2007, at 11:38, Luciano M. Guasco wrote:
I'm using procmail too, in my machine to move mails marked as spam.
But the problem I have, is that all the users of the server want a kind of
spam filter in Roundcube, because they want to redirect the spam marked
mails to another folder than inbox, and they are simple users so they can't use procmail.
I use spamassassin on my server and a /etc/procmailrc (this runs for
all users)
{ Lots of stuff up here }
:0
{ LOG="User has no procmailrc LOGNAME=$LOGNAME@$HOST HOME=$HOME$NL" :0 fw | /usr/local/bin/spamc -u $LOGNAME
DROPPRIVS=YES :0 * ^X-Spam-Status:(.*<)?Yes { # mbox delivery, mark as read: :0 fw | formail -I "Status: RO"
:0: $HOME/lock.$PID
* ? test -f $HOME/Mail/SPAM
$HOME/Mail/SPAM
}
:0:
$DEFAULT
} LOG="User $LOGNAME@$HOST has a .procmailrc, processing...$NL"
Spam gets moved to SPAM and everything else goes to $DEFAULT