#45 FAQ on Spamassassin training correction

closed
nobody
None
5
2003-05-31
2003-05-26
stktrc
No

The Bogofilter FAQ has an entry "How can I use
SpamAssassin to train Bogofilter?" with an example
procmail recipe.

Two lines in the beginning says"

:0
* ? $SPAMASSASSIN -e

but it should most likely be:

:0 HBc
* ? $SPAMASSASSIN -e

Otherwise non-spam mail would never pass the
registration to Bogofilter and Spamassassin would only
be passed the headers.

Discussion

  • David Relson

    David Relson - 2003-05-26

    Logged In: YES
    user_id=30510

    The procmail recipe works fine for me. The goal is to use
    the SpamAssassin return code to train bogofilter, i.e. to
    tell bogofilter whether to add the message to the wordlist
    for spam or the wordlist for ham. The training wants the
    original message, not a copy that's been modified by
    SpamAssassin.

    Hope this helps.

     
  • stktrc

    stktrc - 2003-05-26

    Logged In: YES
    user_id=787101

    I understand that the goal is to use the return code, and
    the proposed changes do not change that goal.

    But, if the 'HB' flags are not specified only the headers of
    the message will be passed to Spamassassin, which surely
    can't be what's intended!

    Also, if the 'c' flag isn't specified, the message will not
    be delivered to a mailbox (as the bogofilter registration
    will count as a delivering recipe). That is, the user will
    never see the non-spam message.

    Using procmail v3.22.

     
  • David Relson

    David Relson - 2003-05-26

    Logged In: YES
    user_id=30510

    Good reply! Info appreciated.

    I was operating under the mistaken understanding that HB was
    the default. Rereading the man page shows you are correct.

    The recipe was intended as informational and worked for
    demonstration purposes. I've added your changes and update
    the FAQ on SourceForge.

    Thanks for spotting the problem, informing me (and educating
    me).

    Cheers!

    David

     
  • David Relson

    David Relson - 2003-05-31
    • status: open --> closed
     

Log in to post a comment.