[Spambayes] Is this the right way to untrain a group of messages?

Skip Montanaro skip at pobox.com
Sat Dec 7 20:12:18 EST 2002


I just realized I fed the wrong mbox file to hammie.  After poking around a
bit I came up with this untrain sequence:

    mbox = mboxutils.getmbox("/Users/skip/tmp/newham")
    h = hammie.open("hammie.db", mode='w')
    for msg in mbox:
        h.untrain_ham(msg)
    h.store()

It seemed to work, but is that the right way to untrain an mbox file?

Skip



More information about the Spambayes mailing list