meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
linux:spamassassin [2024/08/07 09:20] – niziak | linux:spamassassin [2024/08/11 19:41] (current) – niziak | ||
---|---|---|---|
Line 61: | Line 61: | ||
</ | </ | ||
+ | ====== bayes: tok_get_all: | ||
+ | <code bash> | ||
+ | spamassassin -D --lint 2>&1 | grep bayes | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | Aug 11 18: | ||
+ | Aug 11 18: | ||
+ | Aug 11 18: | ||
+ | </ | ||
+ | |||
+ | It was running on very old system, upgraded multiple times. Nowadays other encodings are added to MySQL database. | ||
+ | |||
+ | <code sql> | ||
+ | ALTER DATABASE sa CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; | ||
+ | </ | ||
+ | Not possible to convert bayes databases to new charset: | ||
+ | <code sql> | ||
+ | ALTER TABLE awl CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; | ||
+ | </ | ||
+ | |||
+ | Recreate tables with new character set (prebiously set for '' | ||
+ | * backup bayes '' | ||
+ | * drop 5 '' | ||
+ | * create it again from scheme: ''/ | ||
+ | * '' | ||
+ | |||
+ | Another problem: | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | For me it was faster to train bayes again: | ||
+ | <code bash> | ||
+ | sa-learn --ham --progress ./hamdir | ||
+ | sa-learn --spam --progress ./spamdir | ||
+ | </ | ||