[Spambayes] Problem with imap under linux.-part 6

akonstam at trinity.edu akonstam at trinity.edu
Fri Aug 6 18:24:38 CEST 2004


On Fri, Aug 06, 2004 at 05:08:40PM +1200, Tony Meyer wrote:
> > Ok, I tried your test. Everything went as you indicate above
> > until the i.list. The result was lots of lines of stuff I 
> > can't understand, maybe you'all can. I include it bellow with 
> > trepidation for reasons that you will understand when your 
> > see it. The @ symols seem to be nulls which do not take up 
> > real space. Any help would be appreciated.
> 
> I didn't anticipate it being so long (see below), or would have asked for it
> offlist, but yes, this contains what I needed.  The problem is that it's all
> strings, and then one tuple:
> 
>    ('(\\NoInferiors \\UnMarked) "/" {29}', 'Local/HTML-Documents/ga2col/\\')
> 
> And this is what it is crashing on.  This is because the code is just plain
> incorrect where it's meant to handle this.  If you change line 288 from "
> if isinstance(fol, ()):" to "            if isinstance(fol,
> types.TupleType):" it should work.  I'll check this change in to CVS as
> well.
> 
Well things improved but I am still making some cosmic mistake in
using sb_imapfilter.py. I will record what happened and will accept
advise but I think I need to rethink what I am doing.

Clicking: Configure folders to filter or  Configure folders to train
results now in the browser trying to retrieve something but it does not
succeed.

The python test sequence went like below this time:
[akonstam at Hardy akonstam]$ python
Python 2.3.3 (#1, May  7 2004, 10:31:40) 
[GCC 3.3.3 20040412 (Red Hat Linux 3.3.3-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import imaplib
>>> i = imaplib.IMAP4("mail.cs.trinity.edu")
>>> i.login("akonstam", "manool07")
('OK', ['[CAPABILITY IMAP4REV1 IDLE NAMESPACE MAILBOX-REFERRALS SCAN
SORT THREAD=REFERENCES THREAD=ORDEREDSUBJECT MULTIAPPEND] User
akonstam authenticated'])
>>> i.list
<bound method IMAP4.list of <imaplib.IMAP4 instance at 0xf6f6edac>>
>>> i.logout()
('BYE', ['Sol.CS.Trinity.Edu IMAP4rev1 server terminating
connection'])
>>> 
-- 
-------------------------------------------
Aaron Konstam
Computer Science
Trinity University
One Trinity Place.
San Antonio, TX 78212-7200

telephone: (210)-999-7484
email:akonstam at trinity.edu


More information about the Spambayes mailing list