> What version of SpamBayes are you using?  I know that the above string
ought to tell me, but unfortunately the version string wasn't updated
> a couple of times.  (Alternatively, if you could try the 1.0.1
release, which will give the version as 0.5, that will at least confirm
that
> this hasn't already been fixed).

The version I was using was the version that I checked out of CVS two
days ago.  I am not sure why the version number it is giving is older
than the 1.0.1 release.  I downloaded the 1.0.1 release and tried
installing it (python setup.py install) but I got a different error when
trying to run sb_imapfilter.py:

SpamBayes IMAP Filter Version 0.5 (November 2004)
and engine SpamBayes Engine Version 0.3 (January 2004).

Traceback (most recent call last):
  File "/usr/bin/sb_imapfilter.py", line 924, in ?
    run()
  File "/usr/bin/sb_imapfilter.py", line 910, in run
    imap_filter.Train()
  File "/usr/bin/sb_imapfilter.py", line 743, in Train
    num_ham_trained = folder.Train(self.classifier, False)
  File "/usr/bin/sb_imapfilter.py", line 678, in Train
    classifier.learn(msg.asTokens(), isSpam)
AttributeError: IMAPMessage instance has no attribute 'asTokens'

> This is indicating that either the IMAP server's response was not in
the expected format, or something went wrong when SpamBayes tried
> to extract the data from the response.  If 1.0.1 doesn't fix the
problem, could you run sb_imapfilter with "-i4", save the IMAP
> conversation that is output, REMOVE YOUR USERNAME AND PASSWORD FROM
IT, and then send us a copy of that?  It will help track down where
> the problem is, exactly.

I have attached the run with the 1.0.1 release using -i4.

Thanks,

David Leinbach

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.809 / Virus Database: 551 - Release Date: 09/12/2004
 
  
SpamBayes IMAP Filter Version 0.5 (November 2004)
and engine SpamBayes Engine Version 0.3 (January 2004).

  20:21.61 > BLLJ1 LOGIN username "password"
  20:21.62 < BLLJ1 OK LOGIN Ok.
  20:21.62 > BLLJ2 SELECT INBOX.Family.Eri
  20:21.63 < * FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent)
  20:21.63 < * OK [PERMANENTFLAGS (\* \Draft \Answered \Flagged \Deleted \Seen)]
 Limited
  20:21.63 < * 36 EXISTS
  20:21.63 < * 0 RECENT
  20:21.63 < * OK [UIDVALIDITY 1095737183] Ok
  20:21.63 < * OK [MYRIGHTS "acdilrsw"] ACL
  20:21.63 < BLLJ2 OK [READ-WRITE] Ok
  20:21.63 > BLLJ3 UID SEARCH UNDELETED
  20:21.63 < * SEARCH 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 
26 27 28 29 30 31 32 33 34 35 36
  20:21.63 < BLLJ3 OK SEARCH done.
  20:21.64 > BLLJ4 UID FETCH 5 RFC822.HEADER
  20:21.64 < * 5 FETCH (UID 5 RFC822.HEADER {698}
  20:21.64 read literal size 698
  20:21.64 < )
  20:21.64 < BLLJ4 OK FETCH completed.
  20:21.65 > BLLJ5 UID FETCH 5 (BODY.PEEK[])
  20:21.65 < * 5 FETCH (UID 5 BODY[] {7335}
  20:21.65 read literal size 7335
  20:21.69 < )
  20:21.69 < BLLJ5 OK FETCH completed.
  20:21.71 > BLLJ6 UID FETCH 5 (FLAGS INTERNALDATE)
  20:21.71 < * 5 FETCH (UID 5 FLAGS (\Seen) INTERNALDATE "23-Jan-2002 17:43:52 
-0800")
  20:21.71 < BLLJ6 OK FETCH completed.
  20:21.78 > BLLJ7 APPEND INBOX.Family.Eri (\Seen) "23-Jan-2002 17:43:52 -0800" 
{7371}
  20:21.79 < + OK
  20:21.79 write literal size 7371
  20:21.83 < BLLJ7 OK [APPENDUID 1095737183 37] APPEND Ok.
  20:21.83 > BLLJ8 UID STORE 5 +FLAGS.SILENT (\Deleted \Seen)
  20:21.84 < BLLJ8 OK STORE completed.
  20:21.84 untagged responses dump:
                MYRIGHTS: ""acdilrsw""
                EXISTS: "36"
                PERMANENTFLAGS: "(\* \Draft \Answered \Flagged \Deleted \Seen)"
                READ-WRITE: ""
                FLAGS: "(\Draft \Answered \Flagged \Deleted \Seen \Recent)"
                APPENDUID: "1095737183 37"
                UIDVALIDITY: "1095737183"
                RECENT: "0"
  20:21.84 > BLLJ9 NOOP
  20:21.84 < * 37 EXISTS
  20:21.84 < * 0 RECENT
  20:21.84 < BLLJ9 OK NOOP completed
  20:21.84 > BLLJ10 UID SEARCH (UNDELETED HEADER X-Spambayes-MailId 
"1103120421")
  20:21.91 < * SEARCH 37
  20:21.92 < BLLJ10 OK SEARCH done.
Traceback (most recent call last):
  File "/usr/bin/sb_imapfilter.py", line 924, in ?
    run()
  File "/usr/bin/sb_imapfilter.py", line 910, in run
    imap_filter.Train()
  File "/usr/bin/sb_imapfilter.py", line 743, in Train
    num_ham_trained = folder.Train(self.classifier, False)
  File "/usr/bin/sb_imapfilter.py", line 678, in Train
    classifier.learn(msg.asTokens(), isSpam)
AttributeError: IMAPMessage instance has no attribute 'asTokens'
_______________________________________________
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/spambayes
Check the FAQ before asking: http://spambayes.sf.net/faq.html

Reply via email to