Bug 3260 - sa-learn --forget fails when forgetting a list of emails from a file if the first one is not in the db
Summary: sa-learn --forget fails when forgetting a list of emails from a file if the f...
Status: RESOLVED DUPLICATE of bug 3024
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Learner (show other bugs)
Version: 2.63
Hardware: PC Linux
: P5 normal
Target Milestone: 3.0.0
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-12 17:42 UTC by Robert Shideleff
Modified: 2004-04-13 00:59 UTC (History)
0 users



Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Shideleff 2004-04-12 17:42:28 UTC
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).
Comment 1 Theo Van Dinter 2004-04-13 08:59:02 UTC

*** This bug has been marked as a duplicate of 3024 ***