Resent to the list and one error fixed:
On Sun, 27 Jun 2004 15:58:59 -0600, Google Kreme <gkreme(_at_)gmail(_dot_)com>
wrote:
On Sun, 27 Jun 2004 07:53:23 +0100, Obantec Support
<support(_at_)obantec(_dot_)net> wrote:
DROPPRIVS=yes
LOGFILE=/var/log/procmail.log
/var/log/procmail.log is not writable by the user, therefore you get the
error.
You should not DROPPRIVS until you are ready to dispose of the message
(Either delivering it or allowing it to fall through to the user's
.procmailrc
here is what I do:
# Check for a .procmailrc file. If it exists, then assume the user
# will run spamc and manage their own spam
:0
* ! ? test -f $HOME/.procmailrc
{
:0 fw
| /usr/local/bin/spamc -u $LOGNAME
DROPPRIVS=YES
# If the message is tagged spam mark it read and deliver
# it to the user's SPAM mailbox
:0
* ^X-Spam-Status:(.*\<)?Yes
{
:0 fw
| formail -I"Status: RO"
:0: $HOME/lock.$PID
* ? test -f $HOME/Mail/SPAM
$HOME/Mail/SPAM
}
# Otherwise, deliver it as normal
:0:
$DEFAULT
}
(Some minor edits made, hopefully I didn't break anything)
--
gkreme at gmail or kreme at kreme or syth at mac
--
gkreme at gmail or kreme at kreme or syth at mac
____________________________________________________________
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