This was a show stopper when I did an upgrade used svn to get the other minor fixes, this was first talked about for dbmail 2.2.3 did this somehow get back into svn? I found it at http://www.mail-archive.com/dbmail-dev@dbmail.org/msg08488.html anyway when a user was selecting their Sent mailbox is was doing a SELECT ALL for non-seen messages and the DB sent back NULL which was correct but the code below was disconnecting the client rather than showing 0 msgs as not-seen..etc.
diff -urN dbmail-svn-2.2.4-2472.orig/imapcommands.c dbmail-svn-2.2.4-2472.new/imapcommands.c --- dbmail-svn-2.2.4-2472.orig/imapcommands.c 2007-03-17 23:21:45.000000000 -0400 +++ dbmail-svn-2.2.4-2472.new/imapcommands.c 2007-03-19 13:37:38.000000000 -0400 @@ -240,7 +240,7 @@ /* show idx of first unseen msg (if present) */ if (ud->mailbox.exists) { - if (! (key = db_first_unseen(ud->mailbox.uid))) { + if ((key = db_first_unseen(ud->mailbox.uid)) == (u64_t) (-1)) { dbmail_imap_session_printf(self, "* BYE internal dbase error\r\n"); return -1; } Thanks, Leif Jackson _______________________________________________ Dbmail-dev mailing list Dbmail-dev@dbmail.org http://twister.fastxs.net/mailman/listinfo/dbmail-dev