On Mon, 16 Feb 2004, Hugh Blandford <[EMAIL PROTECTED]> wrote:

> How would I strip out the attached spam report etc from just the ISPs
> one mail server, along with the subject line changes etc before
> processing the mail again if I was to try and return the mail to a
> default state?

Here's how we do it here (we don't alter the Subject: line though):

# If SpamAssassin found SPAM, append report.  We do it as a separate
# attachment of type text/plain
sub filter_end ($) {
[...]
    # Spam checks if SpamAssassin is installed
    if ($Features{"SpamAssassin"}) {
[...]
        # Delete any existing X-Spam-* headers
        action_delete_all_headers("X-Spam-Score");
        # We don't set X-Spam-Level but outsiders sometimes do:
        action_delete_all_headers("X-Spam-Level");
        action_delete_all_headers("X-Spam-Warning");
        action_delete_all_headers("X-Spam-Checked");
[...]
        my($hits, $req, $names, $report) = spam_assassin_check();

-- 
Brent J. Nordquist <[EMAIL PROTECTED]> N0BJN
Other contact information: http://kepler.acns.bethel.edu/~bjn/contact.html
* Fast pipe * Always on * Get out of the way - Tim Bray http://tinyurl.com/7sti

_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to