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
4 select INBOX
* 14 EXISTS
* 14 RECENT
* FLAGS (\Seen \Answered \Deleted \Flagged \Draft \Recent )
* OK [PERMANENTFLAGS (\Seen \Answered \Deleted \Flagged \Draft \Recent )]
* OK [UIDVALIDITY 1] UID value
4 OK [READ-WRITE] SELECT completed
5 select "Sent Items"
* 10 EXISTS
* 10 RECENT
* FLAGS (\Seen \Answered \Deleted \Flagged \Draft \Recent )
* OK [PERMANENTFLAGS (\Seen \Answered \Deleted \Flagged \Draft \Recent )]
* OK [UIDVALIDITY 4] UID value
5 OK [READ-WRITE] SELECT completed


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.)

I also tried to run the testimap script:


[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
[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
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
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

======================================================================
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 '])

======================================================================
FAIL: testLogin_cram_md5 (__main__.testImapServer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./testimap.py", line 198, in testLogin_cram_md5
    self.fail(unimplementedError)
  File "/usr/lib/python2.3/unittest.py", line 270, in fail
    raise self.failureException, msg
AssertionError: Dbmail testcase unimplemented

======================================================================
FAIL: testLsub (__main__.testImapServer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./testimap.py", line 215, in testLsub
    self.fail(unimplementedError)
  File "/usr/lib/python2.3/unittest.py", line 270, in fail
    raise self.failureException, msg
AssertionError: Dbmail testcase unimplemented

======================================================================
FAIL: testPartial (__main__.testImapServer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./testimap.py", line 231, in testPartial
    self.fail(unimplementedError)
  File "/usr/lib/python2.3/unittest.py", line 270, in fail
    raise self.failureException, msg
AssertionError: Dbmail testcase unimplemented

======================================================================
FAIL: testProxyauth (__main__.testImapServer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./testimap.py", line 239, in testProxyauth
    self.fail(unimplementedError)
  File "/usr/lib/python2.3/unittest.py", line 270, in fail
    raise self.failureException, msg
AssertionError: Dbmail testcase unimplemented

======================================================================
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

======================================================================
FAIL: testSetquota (__main__.testImapServer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./testimap.py", line 317, in testSetquota
    self.fail(unimplementedError)
  File "/usr/lib/python2.3/unittest.py", line 270, in fail
    raise self.failureException, msg
AssertionError: Dbmail testcase unimplemented

======================================================================
FAIL: testSort (__main__.testImapServer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./testimap.py", line 337, in testSort
    self.fail(unimplementedError)
  File "/usr/lib/python2.3/unittest.py", line 270, in fail
    raise self.failureException, msg
AssertionError: Dbmail testcase unimplemented

======================================================================
FAIL: testStore (__main__.testImapServer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./testimap.py", line 352, in testStore
    self.fail(unimplementedError)
  File "/usr/lib/python2.3/unittest.py", line 270, in fail
    raise self.failureException, msg
AssertionError: Dbmail testcase unimplemented

======================================================================
FAIL: testSubscribe (__main__.testImapServer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./testimap.py", line 359, in testSubscribe
    self.fail(unimplementedError)
  File "/usr/lib/python2.3/unittest.py", line 270, in fail
    raise self.failureException, msg
AssertionError: Dbmail testcase unimplemented

======================================================================
FAIL: testUid (__main__.testImapServer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./testimap.py", line 369, in testUid
    self.fail(unimplementedError)
  File "/usr/lib/python2.3/unittest.py", line 270, in fail
    raise self.failureException, msg
AssertionError: Dbmail testcase unimplemented

======================================================================
FAIL: testUnsubscribe (__main__.testImapServer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./testimap.py", line 376, in testUnsubscribe
    self.fail(unimplementedError)
  File "/usr/lib/python2.3/unittest.py", line 270, in fail
    raise self.failureException, msg
AssertionError: Dbmail testcase unimplemented

----------------------------------------------------------------------
Ran 29 tests in 6.227s

FAILED (failures=12, errors=1)
[EMAIL PROTECTED] test-scripts]#


Any pointer to find out what's wrong?

thanks,
Alessandro

Reply via email to