You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2004/04/13 02:42:29 UTC

[Bug 3260] New: sa-learn --forget fails when forgetting a list of emails from a file if the first one is not in the db

http://bugzilla.spamassassin.org/show_bug.cgi?id=3260

           Summary: sa-learn --forget fails when forgetting a list of emails
                    from a file if the first one is not in the db
           Product: Spamassassin
           Version: 2.63
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Learner
        AssignedTo: spamassassin-dev@incubator.apache.org
        ReportedBy: bigbob@shideleff.com


sa-learn fails to forget a list of emails if the first email in the list is 
not in the database. This seems to go against the documentation and the spirit 
of the utility in that it will gracefully handle incomplete lists and do 
ignoring already 'learnt' emails, or switching their classification from ham 
to spam without complaint. 
 
sa-learn --forget -f file-with-list-that-contains-nonexistant-file 
 
results in: 
ERROR: the Bayes learn function returned an error, please re-run with -D for 
more information 
 
When run with the -D options it prints: 
 
debug: Score set 0 chosen. 
debug: running in taint mode? no 
debug: using "/usr/share/spamassassin" for default rules dir 
debug: using "/etc/mail/spamassassin" for site rules dir 
debug: using "/home/cnaivar/.spamassassin/user_prefs" for user prefs file 
debug: bayes: 13637 tie-ing to DB file 
R/O /home/cnaivar/.spamassassin/bayes_toks 
debug: bayes: 13637 tie-ing to DB file 
R/O /home/cnaivar/.spamassassin/bayes_seen 
debug: bayes: found bayes db version 2 
debug: Score set 2 chosen. 
debug: Initialising learner 
debug: Initialising learner 
debug: Syncing Bayes journal and expiring old tokens... 
debug: lock: 13637 
created /home/cnaivar/.spamassassin/bayes.lock.server.palowrates.com.13637 
debug: lock: 13637 trying to get lock on /home/cnaivar/.spamassassin/bayes 
with 0 retries 
debug: lock: 13637 link to /home/cnaivar/.spamassassin/bayes.lock: link ok 
debug: bayes: 13637 tie-ing to DB file 
R/W /home/cnaivar/.spamassassin/bayes_toks 
debug: bayes: 13637 tie-ing to DB file 
R/W /home/cnaivar/.spamassassin/bayes_seen 
debug: bayes: found bayes db version 2 
debug: synced Bayes databases from journal in 0 seconds: 151 unique entries 
(151 total entries) 
debug: Syncing complete. 
debug: Removing Markup 
debug: uri tests: Done uriRE 
debug: forget: message FICWKTSJJZRLNZFXMYMBWYHT@telus.net not learnt, ignored 
debug: bayes: 13637 untie-ing 
debug: bayes: 13637 untie-ing db_toks 
debug: bayes: 13637 untie-ing db_seen 
debug: bayes: files locked, now unlocking lock 
debug: unlock: 13637 unlink /home/cnaivar/.spamassassin/bayes.lock 
ERROR: the Bayes learn function returned an error, please re-run with -D for 
more information 
Learned from 0 message(s) (1 message(s) examined).



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.