procmail
[Top] [All Lists]

Re: filtering just some accounts

2004-11-16 15:02:09
On Tue, 16 Nov 2004 14:23:59 -0600 Paul Crittenden 
<crittend(_at_)simpson(_dot_)edu> wrote:

Thanks so much. Using:

:0:
* ^X-Spam-Status: Yes
* ? grep -w $LOGNAME /etc/students
/usr/users/truncmail/spam/ac-spam

Works great.

You should put the -x back in there:

:0:
* ^X-Spam-Status: Yes
* ? grep -wx $LOGNAME /etc/students
/usr/users/truncmail/spam/ac-spam

If you don't then $LOGNAME "robert" matches:

robert
robert.jones
bob.roberts
roberta.q.public

You have to make sure your /etc/students has one login name per line
exactly as listed in /etc/passwd. The -x forces grep to match only whole
lines.

Gerald


____________________________________________________________
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

<Prev in Thread] Current Thread [Next in Thread>