On Wed, 11 Feb 2004 09:57:12 -0500 Wess Bechard <[EMAIL PROTECTED]> wrote:

> I have modified procmail to check for .spamcheck in the user's home
> dir.  If this file is found, spamc is called.  Seems to work so far.
> 
> I would still rather use a managable file that lists users.
> 
> Would anyone out there know how to make procmail check a list for a
> username?

I'm no procmail expert, but would something like this work?

:0
| grep --silent "$LOGNAME" allowed_sa_users.txt

:0 a
| /usr/bin/spamc -u "$LOGNAME"

This assumes per-user configuration with spamc; if not, drop the '-u
"$LOGNAME"' fragment. Also, I'm not sure if you have to discard STDIN in
the call to grep (a simple test says no); otherwise, you can wrap it in
a shell script.

hth,

-- Bob

Reply via email to