Kenneth Porter wrote:
I forget why at the moment. I think I opted for a full-blown script so that:--On Monday, December 01, 2003 3:55 PM -0600 Rich Puhek <[EMAIL PROTECTED]> wrote:
Here's the nospam.pl script:
Why not use grep?
* ! ? /usr/local/bin/nospam.pl $LOGNAME
1) I was certain of having complete controll over error conditions.
2) Better starting point if I needed to move to something with better performance.
(Untested code)
* ! ? grep -q ^$LOGNAME$ /etc/spamassassin/exempt
Or you could use the magic file approach:
test -f /home/$LOGNAME/.nospamassassin
I wanted to keep all this config in one file (no local logins, so no advantage to allowing the user to create the .nospamassassin user, plus we can quickly see the complete list of who has SA). The "test -f" would be a much better suggestion for a case with shell users, though, since then they could change their spamassassin settings themselves.
--Rich
------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk