Leif,

You're tree is not in sync. This patch doesn't apply to 2472 at all.

The lines in svn look like this:

        /* show idx of first unseen msg (if present) */
        if (ud->mailbox.exists) {
                key = db_first_unseen(ud->mailbox.uid);
                if ( (key > 0) && (msn =
g_tree_lookup(self->mailbox->ids, &key))) {
                        dbmail_imap_session_printf(self,
                                "* OK [UNSEEN %llu] first unseen
message\r\n", *msn);
                }
        }





Leif Jackson wrote:
> 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/[email protected]/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
> [email protected]
> http://twister.fastxs.net/mailman/listinfo/dbmail-dev
> 


-- 
  ________________________________________________________________
  Paul Stevens                                      paul at nfg.nl
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands________________________________http://www.nfg.nl
_______________________________________________
Dbmail-dev mailing list
[email protected]
http://twister.fastxs.net/mailman/listinfo/dbmail-dev

Reply via email to