You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by cpayne <cp...@magigames.net> on 2007/10/16 10:36:32 UTC

way to change the header

Is there a way I can take this

X-Spam-Status: No, score=(1.1), required=1.5, tests=BAYES_50,Magi_Body_Chuck,
	NO_RECEIVED,TO_CC_NONE, autolearn=no, bayes score = 0.5000, version=3.1.8
	date scan = Mon, 15 Oct 2007 15:38:39 -0400

and make it look like this...

X-Spam-Status: No, score=(1.1), 
	       required=1.5, 
               tests=BAYES_50,
               Magi_Body_Chuck,
	       NO_RECEIVED,TO_CC_NONE,
               autolearn=no, 
	       bayes score = 0.5000, 
               version=3.1.8
	       date scan = Mon, 15 Oct 2007 15:38:39 -0400


Thanks,

Payne

Re: way to change the header

Posted by Banyan He <ba...@rootong.com>.
I remember it follows RFC specification. So, no blank lines in the headers.

cpayne wrote:
> Is there a way I can take this
>
> X-Spam-Status: No, score=(1.1), required=1.5, 
> tests=BAYES_50,Magi_Body_Chuck,
>     NO_RECEIVED,TO_CC_NONE, autolearn=no, bayes score = 0.5000, 
> version=3.1.8
>     date scan = Mon, 15 Oct 2007 15:38:39 -0400
>
> and make it look like this...
>
> X-Spam-Status: No, score=(1.1),            required=1.5,               
> tests=BAYES_50,
>               Magi_Body_Chuck,
>            NO_RECEIVED,TO_CC_NONE,
>               autolearn=no,            bayes score = 0.5000, 
>               version=3.1.8
>            date scan = Mon, 15 Oct 2007 15:38:39 -0400
>
>
> Thanks,
>
> Payne
>
>

-- 
Banyan He
Mail&Web Security
Mobile: +86 13641777622
MSN: banyan.he@hotmail.com
Skype: banyan.he
Email: banyan@rootong.com
AntiSpam Test: antispam@mail.rootong.com
AntiVirus Test: antivirus@mail.rootong.com
Wemaster Mail: webmaster@mail.rootong.com
Website: http://www.rootong.com


Re: way to change the header

Posted by Matt Kettler <mk...@verizon.net>.
cpayne wrote:
> Is there a way I can take this
>
> X-Spam-Status: No, score=(1.1), required=1.5,
> tests=BAYES_50,Magi_Body_Chuck,
>     NO_RECEIVED,TO_CC_NONE, autolearn=no, bayes score = 0.5000,
> version=3.1.8
>     date scan = Mon, 15 Oct 2007 15:38:39 -0400
>
Have you already customized your add_headers? If so, can you post what
you're using?

If not, the first example isn't a normal default for SA 3.1.8. Check
around for add_headers commands in your config files.
> and make it look like this...
>
> X-Spam-Status: No, score=(1.1),            required=1.5,              
> tests=BAYES_50,
>               Magi_Body_Chuck,
>            NO_RECEIVED,TO_CC_NONE,
>               autolearn=no,            bayes score = 0.5000,
>               version=3.1.8
>            date scan = Mon, 15 Oct 2007 15:38:39 -0400 
I don't know if that format is legal in an email message
header...There's very particular rules about using whitespace to ensure
that the header block can be parsed reliably...

However, the place to do it would be to tweak your add_headers commands.
(note: do this by COPYING that block of
/usr/share/spamassassin/10_default_prefs.cf into your
/etc/mail/spamassassin/local.cf and edit. Not copying to local.cf could
cause your changes to be obliterated by sa-update or upgrading SA itself)