You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by ole <on...@uni-c.dk> on 2004/11/22 17:16:09 UTC

Cant update bayes db from SA 2.64 to 3.0.1

As per http://spamassassin.apache.org/full/3.0.x/dist/UPGRADE I 

 - run "sa-learn --rebuild"
 - upgrade to 3.0.1
 - run "sa-learn --sync"

This seems to corrupt the bayes DB, as shown by "sa-learn dump"(output shown
below).

What happened to all my tokens? They aren't hashed are they? I have seen no
indication of that in the upgrade notes. 

Actually, I have a working copy of both SA 2.64 and 3.0.1 and I do something
like this:

- /old/bin/sa-learn --rebuild
- /new/bin/sa-learn --sync
(And of course, /new/bin/sa-learn --dump)


But I don't see why that should cause problems, do you?


===================================================

0.000          0          3          0  non-token data: bayes db version
0.000          0    9957682          0  non-token data: nspam
0.000          0    3520469          0  non-token data: nham
0.000          0     544764          0  non-token data: ntokens
0.000          0 1101072908          0  non-token data: oldest atime
0.000          0 1101135378          0  non-token data: newest atime
0.000          0 1101138102          0  non-token data: last journal sync
atime
0.000          0 1101116412          0  non-token data: last expiry atime
0.000          0      43200          0  non-token data: last expire atime
delta
0.000          0     273281          0  non-token data: last expire
reduction count
1.000        312          0 1101128235  10f08309d0
0.997         18          0 1101134267  d4ca878d56
0.985          3          0 1101107809  043dc9c10d
0.992        347          1 1101134038  923d36a817
0.958          1          0 1101073561  04449e5119
0.052         21        137 1101130984  3b8bc3e0c5
0.958          1          0 1101083649  80caa812d0
0.049          0          1 1101118503  4aba34f2ae
0.995          9          0 1101079848  a9716ffdca
0.009          0          6 1101115645  ccb1af8d17
0.049          0          1 1101115581  d2198e29c0
0.958          1          0 1101089877  129eccda52
0.049          0          1 1101110692  df935f98a5



Re: Cant update bayes db from SA 2.64 to 3.0.1

Posted by Michael Parker <pa...@pobox.com>.
This is a question better suited for the users list.

On Mon, Nov 22, 2004 at 05:16:09PM +0100, ole wrote:
> This seems to corrupt the bayes DB, as shown by "sa-learn dump"(output shown
> below).

No it doesn't.

> What happened to all my tokens? They aren't hashed are they? I have seen no
> indication of that in the upgrade notes. 

Re-read them, it does mention the change in format.

> But I don't see why that should cause problems, do you?

Nope.

Michael

Re: Cant update bayes db from SA 2.64 to 3.0.1

Posted by ole <on...@uni-c.dk>.
Theo Van Dinter wrote:

> On Mon, Nov 22, 2004 at 05:16:09PM +0100, ole wrote:
>> What happened to all my tokens? They aren't hashed are they? I have seen
>> no indication of that in the upgrade notes.
> 
> Yep.  From UPGRADE:
> 
> "In addition, a new format has been introduced for the bayes database
> that stores tokens in fixed length hashes (Bayes v3)."
> 

Eh! I missed that. Cost me hours.

Thanks. (To Michael Parker too).

- Ole.


Re: Cant update bayes db from SA 2.64 to 3.0.1

Posted by Theo Van Dinter <fe...@kluge.net>.
On Mon, Nov 22, 2004 at 05:16:09PM +0100, ole wrote:
> What happened to all my tokens? They aren't hashed are they? I have seen no
> indication of that in the upgrade notes. 

Yep.  From UPGRADE:

"In addition, a new format has been introduced for the bayes database
that stores tokens in fixed length hashes (Bayes v3)."

-- 
Randomly Generated Tagline:
"What limits how fast you type?"        - Prof. Brown
 "Ten Fingers?"                          - Steve Richardson