31.3.2012 19:17, joea kirjoitti: > Beyond that, where can I find the difference, in a SPAM learning sense, > between "sa-learn --spam filename" and "spamassassin -r < filename"? > > If I do the sa-learn on the same file, after doing spamassassin, it tells me > 0 tokens. > If I then do "sa-learn --forget filename", then "sa-learn --spam filename" it > tells me 1 token learned. > > I infer from this they perform similar or the same function, from a Bayes > sense.
Sometimes, yes. If autolearn was activated, spamassassin learned this automatically. But only if. sa-learn learns always, if the message is not already learned to be spam|ham as passed in (that is checked by examining the message-id property of the smtp-message against the database). And it does not tell how many tokens it learned, but how many messages. A token is something like a word (not exactly, but close), and one message of course may contain many tokens. -- Be careful! UGLY strikes 9 out of 10!
signature.asc
Description: OpenPGP digital signature