On Wed, 12 Jun 2002 the voices made [EMAIL PROTECTED] write:

> My perl is very weak, so I wondered if someone could coach me a bit
> on how to id the presence of `X-Spam-Status:' line including any
> newlines that may be involved, and whether there is a space or the
> string `none' after `tests='.  I think its just a matter of using
> perlre that include newlines, but having a problem finding how.

 Sounds like you're just dealing with a single header in your perl, so let
procmail do the unfolding for you; like this example:

:0
* ^X-Spam-Status:[      ]*\/.*
        {
        MATCH=`perl -e '$ENV{"MATCH"} =~ s/exa/mple/i; print $ENV{"MATCH"}'`
        :0fh
        | formail -I "X-Spama-Status: $MATCH"
        }



        /Tony
-- 
# Per scientiam ad libertatem! // Through knowledge towards freedom! #
# Genom kunskap mot frihet! =*= (c) 1999-2002 [EMAIL PROTECTED] =*= #
-- Random URL (2/8):
<URL: http://www.apple.com/powerbook/ > *BSD, on the run, in style...


_______________________________________________________________

Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to