Perl regular expressions are a little different from DOS-style file globbing patterns. The perl way of saying "match anything" is /.*/ not /*/ -- the "*" means "repeat the previous thing 0 to infinity times" and the "." means "any character". So /*/ by itself is meaningless and will actually generate a syntax error. Otherwise you've got it exactly right.
As for the PPPS, you currently have 3 choices when creating new rules: 1. If you use spamassassin (as opposed to spamd) then you can create rules in ~/.spamassassin/user_prefs 2. If you use spamd, then you can create rules in ~/.spamassassin/user_prefs *if* you add a line allow_user_rules 1 in one of the global config files (best place is /etc/mail/spamassassin/local.cf) 3. If you use spamd, but don't want the security holes that allow_user_rules creates (which currently are potentially bad), then you can only create sitewide rules, which is best done in that same /etc/mail/spamassassin/local.cf file. C Jeff Shepherd wrote: JS> The majority of the mailing lists I'm on (such as SpamAssassin Talk) JS> have a List-Unsubscribe: line in the headers. How can I add a rule JS> that if there is a List-Unsubscribe: line in the headers, it lowers JS> the score? JS> JS> I'm not a PERL programmer and not familiar with unix expressions, but JS> to show I'm willing to do some footwork, I think I need to add JS> something like the following lines to JS> /usr/share/spamassassin/20_head_tests.cf JS> JS> header HAS_UNSUB List-Unsubscribe =~ /*/ JS> describe HAS_UNSUB Has a List-Unsubscribe: line JS> JS> Am I on the right track? Is the search for "List-Unsubscribe" case JS> sensitive? (i.e. will it trigger if there is a list-unsubscribe: JS> line?) JS> JS> - Jeff - JS> JS> P.S. I suppose I also need to add to 50_scores.cf a line like JS> JS> score HAS_UNSUB -4.0 JS> JS> P.P.S. I know many mailing lists have a bunch of List-*: header lines JS> like List-Subscribe, List-Id, and List-Archive, but I've got a few JS> that just have List-Unsubscribe. JS> JS> P.P.P.S. I've got SpamAssassin installed as the system administrator JS> and accessible by the entire site. I'm assuming editing the files in JS> /usr/share/spamassassin will affect filtering site wide. If I put JS> files (20_head_tests.cf, 50_scores.cf, ...) in ~userX/.spamassassin/ JS> would they only affect userX? (For example, to test the mods on JS> myself first, before sticking them out on the enire site.) JS> JS> _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk