There's a couple of ways you could do this. You could write a rule that
assigned a negative score, such as:

header   SUBJECT_FOOBAR   Subject =~ /FOOBAR/
describe SUBJECT_FOOBAR   Subject contains FOOBAR
score    SUBJECT_FOOBAR   -100.0

OR...

you add a condition to your procmail recipe:

:0fw
* < 256000
* !^Subject:.*FOOBAR
| /usr/bin/spamc


I'd opt for the second choice to reduce the overhead of unnecessarily
running the message through SA. It wouldn't hurt to also add the custom
rule, but in theory it shouldn't ever "hit".

HTH,
Steve



| -----Original Message-----
| From: [EMAIL PROTECTED]
| [mailto:[EMAIL PROTECTED]]On Behalf Of
| Graham Freeman
| Sent: Tuesday, January 07, 2003 3:35 PM
| To: [EMAIL PROTECTED]
| Subject: [SAtalk] How do I filter by subject?
|
|
|
| Howdy folks,
|
| ----------
| DISCLAIMER
| ----------
|
| I searched relatively extensively through the documentation at
| www.spamassassin.org, and I've conducted a few searches for "filter
| subject" and the like on sourceforge's archive of the
| [EMAIL PROTECTED] list, but so far I can't find an
| answer to my question.
|
| ----------
| BACKGROUND
| ----------
|
| We have spamassassin 2.31 (via the current Red Hat Linux 8.0 RPM) deployed
| on our e-mail server, and for the most part it works well.  However, one
| of our company principals would like to add a filter such that any e-mail
| with a specific string of text (such as "FOOBAR") is not flagged as spam,
| regardless of any other spammish characteristics of the message.
| Apparently several of her regular legitimate correspondents use spammy
| e-mail providers and MUAs, the most common factor is this particular
| string of text in the subject.  Because she won't necessarily know who'll
| respond to one of these important messages, she has no way to populate her
| e-mail whitelist in advance.  In this situation and most others, it's far
| more important to get the legitimate messages than it is to effectively
| filter spam.
|
| --------
| QUESTION
| --------
|
| So, can I add a subject filter to her user_prefs file?  If so, how?
|
| Would I be better off doing this with procmail?  For example, I suppose I
| could work around this by adjusting her procmailrc such that it doesn't
| pass any messages with this magic keyword to spamc, but I'd prefer to do
| all content-based spam filtering with spamassassin alone.
|
| In the meantime, I'm simply not filtering her spam-flagged messages off to
| a separate folder like I normally would.
|
| Thanks in advance for any assistance you can provide.
|
| --
| Graham Freeman
| Manager of Information Technology
| Far Western Anthropological Research Group, Inc.
| +1 530 756 3941 ext 111
| [EMAIL PROTECTED]
|
|
|
| -------------------------------------------------------
| This SF.NET email is sponsored by:
| SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
| http://www.vasoftware.com
| _______________________________________________
| Spamassassin-talk mailing list
| [EMAIL PROTECTED]
| https://lists.sourceforge.net/lists/listinfo/spamassassin-talk
|



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to