Sa-learn question - SpamAssassin

This is a discussion on Sa-learn question - SpamAssassin ; Hello, anybody knows if, when i teach spam to spamassassin through the Bayesan Trainer "sa-learn" , is needed to delete the X-Spam-Status: and X-Spam-Checker-Version: strings from the header to let Spamassassin teaching well? -- View this message in context: http://www.nabble.com/Sa-learn-quest...p17666407.html ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: Sa-learn question

  1. Sa-learn question


    Hello,
    anybody knows if, when i teach spam to spamassassin through the Bayesan
    Trainer "sa-learn" , is needed to delete the X-Spam-Status: and
    X-Spam-Checker-Version: strings from the header to let Spamassassin teaching
    well?
    --
    View this message in context: http://www.nabble.com/Sa-learn-quest...p17666407.html
    Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


  2. Re: Sa-learn question


    On Thu, June 5, 2008 12:01, alexpacio wrote:
    >
    > Hello,
    > anybody knows if, when i teach spam to spamassassin through the Bayesan
    > Trainer "sa-learn" , is needed to delete the X-Spam-Status: and
    > X-Spam-Checker-Version: strings from the header to let Spamassassin teaching
    > well?


    no training needs unmodified spam / ham mails with headers as you got them

    sa-learn --spam --showdots < /tmp/spammail.msg
    sa-learn --ham --showdots < /tmp/hammail.msg

    spamassassin auto remove the headers that it self put in mails


    Benny Pedersen
    Need more webspace ? http://www.servage.net/?coupon=cust37098


  3. Re: Sa-learn question

    alexpacio wrote:
    > Hello,
    > anybody knows if, when i teach spam to spamassassin through the Bayesan
    > Trainer "sa-learn" , is needed to delete the X-Spam-Status: and
    > X-Spam-Checker-Version: strings from the header to let Spamassassin teaching
    > well?
    >

    SpamAssassin will remove any headers that it added itself prior to
    learning the message, including those. So, it's fine to leave them in.

    However, SpamAssassin won't remove any nonstandard headers added by
    other spam scanning tools, or wrappers for SpamAssassin that add their
    own headers (ie: MailScanner). For those, you'll need to use a
    bayes_ignore_header directive, or strip them before feeding SA.


+ Reply to Thread