[spambayes-dev] [ spambayes-Bugs-721664 ] mboxtrain.py doesn't find
Maildir tmp/ directory properly
SourceForge.net
noreply at sourceforge.net
Tue Jun 3 08:10:54 EDT 2003
Bugs item #721664, was opened at 2003-04-15 10:10
Message generated for change (Comment added) made by avalon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=721664&group_id=61702
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: David M. Cooke (dmcooke)
Assigned to: Nobody/Anonymous (nobody)
Summary: mboxtrain.py doesn't find Maildir tmp/ directory properly
Initial Comment:
The Maildir handler for mboxtrain.py tries to use a
tmp/ under
the directory passed to it. It should use a tmp/
directory at the same level (so given a ~/Maildir/cur,
it should use ~/Maildir/tmp).
----------------------------------------------------------------------
Comment By: Daniel Buchmann (avalon)
Date: 2003-06-03 16:10
Message:
Logged In: YES
user_id=184577
Hi, just wanted to confirm this bug as of CVS 2003-06-03.
The patch attached by dmcooke fixes the bug for me too, so I
agree with dripton, it would be nice if the patch could be
applied.
Thanks. :)
----------------------------------------------------------------------
Comment By: David Ripton (dripton)
Date: 2003-05-17 14:26
Message:
Logged In: YES
user_id=9425
This is still broken as of latest CVS on 2003-05-17
Example output from an mboxtrain cron job very similar to
the one in HAMMIE.txt:
Training ham (/home/dripton/Maildir/):
Reading as Maildir
1052838601.29078_0.ludo:2,RS
1052472674.1616_0.ludo:2,RS
1049307199.16131_1.dydimus,S=829:2,S
1047587487.1367_2.hoggle:2,S
1051558961.21629_2.willum:2,RS
1053034631.15484_1.willum:2,S
Traceback (most recent call last):
File "/home/dripton/src/spambayes/mboxtrain.py", line 294,
in ?
main()
File "/home/dripton/src/spambayes/mboxtrain.py", line 281,
in main
train(h, g, False, force, trainnew)
File "/home/dripton/src/spambayes/mboxtrain.py", line 216,
in train
maildir_train(h, os.path.join(path, "cur"), is_spam, force)
File "/home/dripton/src/spambayes/mboxtrain.py", line 113,
in maildir_train
f = file(tfn, "wb")
IOError: [Errno 2] No such file or directory:
'/home/dripton/Maildir/cur/tmp/1053163264.21320_6.vidar'
The one-line patch already attached to this bug works for
me. Please apply it to CVS.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=721664&group_id=61702
More information about the spambayes-dev
mailing list