On Mon, 15 Nov 2004 11:25:40 -0500 (EST), Tuc <tuc(_at_)ttsg(_dot_)com> wrote:
What I'd like to be able to have is something like (pseudocode) :
if exists (/home/$LOGNAME/.procmailrc)
then
INCLUDERC=/home/$LOGNAME/.procmailrc
exit
else
| /usr/local/cyrus/bin/procmail-cyrus-delivery.sh $LOGNAME
fi
This is the end of my procmailrc file:
:0
* ! ? test -f $HOME/.procmailrc
{
LOG="User has no procmailrc LOGNAME=$LOGNAME HOME=$HOME$NL"
:0 fw
| /usr/local/bin/spamc -u $LOGNAME
DROPPRIVS=YES
:0
* ^X-Spam-Status:(.*\<)?Yes
{
:0 fw
| formail -I"Status: RO"
:0: $HOME/lock.$PID
* ? test -f $HOME/Mail/SPAM
$HOME/Mail/SPAM
}
:0:
$DEFAULT
}
LOG="User $LOGNAME has a .procmailrc, processing...$NL"
We can't seem to have rc's in a users directory right now since it
supposedly isn't even checking the directory for .forward or .procmailrc or
other.
The nice thing about the LOG lines is they will help you debug what is
acatully happening.
--
::::::=== <http://2blog.kreme.com> ===::::::
:: Build a man a fire and he'll be warm for ::
:: a night, but set a man on fire and he'll ::
:: be warm for the rest of his life. ::
____________________________________________________________
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