Alessandro,

your LIST result is off. Please post a debug level 5 syslog trace of a LIST 
command.

Also, what platform and build are you running on, and cvs up to what day?



Alessandro Magnolo wrote:
I installed dbmail-2.0-cvs, and when I try to connect with an IMAP
client I can't get the list of folders. I tried with Outlook Express
and with Thunderbird, but with no success.

Here is a transcript of a telnet session:

* OK dbmail imap (protocol version 4r1) server 2.0 ready to run
1 login "ale" "ale"
1 OK LOGIN completed
2 lsub "" "*"
2 OK LSUB completed
3 list "" "*"
3 OK LIST completed

this aint right.

As you can see, some folders exist, but they are not listed (I'm not
sure that the IMAP commands are correct, but they should be.)

nothing wrong with your commands. I just tested this agains the debian builds 
cvs as of today. No problems here.


I also tried to run the testimap script:

great :)



[EMAIL PROTECTED] test-scripts]# dbmail-users -a testuser -w test -g 0 -m 25M
Opening connection to database...
Opening connection to authentication...
Ok. Connected
Adding user testuser with password type ,26214400 bytes mailbox limit
and clientid 0... Ok, user added id [10]
Adding INBOX for new user
Ok. added
Done
[EMAIL PROTECTED] test-scripts]# dbmail-users -a testuser1 -w test -g 0 -m 25M
Opening connection to database...
Opening connection to authentication...
Ok. Connected
Adding user testuser1 with password type ,26214400 bytes mailbox limit
and clientid 0... Ok, user added id [11]
Adding INBOX for new user
Ok. added
Done

Ah. No testuser2 was created.



[EMAIL PROTECTED] test-scripts]# ./testimap.py
testAppend (__main__.testImapServer) ... ok
testCheck (__main__.testImapServer) ... ok
testClose (__main__.testImapServer) ... ok
testCopy (__main__.testImapServer) ... ok
testCreate (__main__.testImapServer) ... ok
testDelete (__main__.testImapServer) ... ok
testExpunge (__main__.testImapServer) ... ok
testFetch (__main__.testImapServer) ... ok
testGetacl (__main__.testImapServer) ... FAIL
testList (__main__.testImapServer) ... ok

So this is a false negative.

testLogin (__main__.testImapServer) ... ok
testLogin_cram_md5 (__main__.testImapServer) ... FAIL
testLogout (__main__.testImapServer) ... ok
testLsub (__main__.testImapServer) ... FAIL
testNoop (__main__.testImapServer) ... ok
testPartial (__main__.testImapServer) ... FAIL
testProxyauth (__main__.testImapServer) ... FAIL
testRecent (__main__.testImapServer) ... ok
testRename (__main__.testImapServer) ... FAIL
testSearch (__main__.testImapServer) ... ok
testSelect (__main__.testImapServer) ... ok
testSetacl (__main__.testImapServer) ... ERROR

This should work.

testSetquota (__main__.testImapServer) ... FAIL
testSort (__main__.testImapServer) ... FAIL
testStatus (__main__.testImapServer) ... ok
testStore (__main__.testImapServer) ... FAIL
testSubscribe (__main__.testImapServer) ... FAIL
testUid (__main__.testImapServer) ... FAIL
testUnsubscribe (__main__.testImapServer) ... FAIL



======================================================================
ERROR: testSetacl (__main__.testImapServer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./testimap.py", line 302, in testSetacl
    p.login('testuser2','test'),('OK',['LOGIN completed'])
  File "/usr/lib/python2.3/imaplib.py", line 473, in login
    raise self.error(dat[-1])
error: login rejected

You missed a user here.


======================================================================
FAIL: testGetacl (__main__.testImapServer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./testimap.py", line 140, in testGetacl
    self.assertEquals(self.o.getacl('INBOX'),('OK', ['"INBOX"
testuser1 lrswipcda ']))
  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
    raise self.failureException, \
AssertionError: ('OK', ['"INBOX" testuser1 lrswipcda']) != ('OK',
['"INBOX" testuser1 lrswipcda '])

Ok. this was a bug in the output of results, the testframe in current cvs now 
passes this one ok.



======================================================================
FAIL: testRename (__main__.testImapServer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./testimap.py", line 256, in testRename
    self.failUnless('() "/" "testrename1"' in self.o.list()[1])
  File "/usr/lib/python2.3/unittest.py", line 278, in failUnless
    if not expr: raise self.failureException, msg
AssertionError

This could be related to the missing testuser2.






--
  ________________________________________________________________
  Paul Stevens                                  mailto:[EMAIL PROTECTED]
  NET FACILITIES GROUP                     PGP: finger [EMAIL PROTECTED]
  The Netherlands________________________________http://www.nfg.nl

Reply via email to