procmail
[Top] [All Lists]

[SAtalk] help with procmail script

2003-08-18 12:04:03
Situation: I run my own mailserver on a RH Linux box.

*Some* of my email comes in directly to the userid(_at_)boxname address,
while other messages are forwarded from an ISP address
(chris(_at_)txbarnes(_dot_)com).

I am running SA on my own box. SA is configured with
subject_tag [SPAM]

The ISP also runs SA on all the messages which are forwarded out, but
does not allow me to run sa-learn (or turn it off completely).  They
have the 'default' subject_tag of *****SPAM*****.

I want to completely ignore the SA results from my ISP.  Running SA on
my own box already replaces the scores and any SA headers that might get
added.  But I still have the problem of that pesky mugged subject line.



My Question:
What would the procmail script look like that would look at the subject
line and strip out the *****SPAM***** if it exists?  My idea is to put
this into the /etc/procmailrc file (which currently looks like:

    DROPPRIVS=yes

    :0fw
    | /usr/bin/spamc


--

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Chris Barnes                                       AOL IM: CNBarnes
chris-barnes(_at_)tamu(_dot_)edu                            Yahoo IM: 
chrisnbarnes
Computer Systems Manager                               ph: 979-845-7801
Department of Physics                                 fax: 979-845-2590
Texas A&M University





-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Spamassassin-talk mailing list
Spamassassin-talk(_at_)lists(_dot_)sourceforge(_dot_)net
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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