More logging in STATUS parser to track down new mail detection problems.
authorBrendan Cully <brendan@kublai.com>
Thu, 22 Dec 2005 16:58:08 +0000 (16:58 +0000)
committerBrendan Cully <brendan@kublai.com>
Thu, 22 Dec 2005 16:58:08 +0000 (16:58 +0000)
imap/command.c

index f928542a509542dcb4b037d29df9ecd52ac3966b..d4369240d24ee961058caf87b9688158ffe70ca7 100644 (file)
@@ -811,6 +811,8 @@ static void cmd_parse_status (IMAP_DATA* idata, char* s)
     return;
   }
 
+  dprint (2, (debugfile, "Running default STATUS handler\n"));
+
   /* should perhaps move this code back to imap_buffy_check */
   for (inc = Incoming; inc; inc = inc->next)
   {
@@ -826,6 +828,9 @@ static void cmd_parse_status (IMAP_DATA* idata, char* s)
     if (mutt_account_match (&idata->conn->account, &mx.account) && mx.mbox
         && imap_mxcmp (mailbox, mx.mbox) == 0)
     {
+      dprint (2, (debugfile, "Found %s in buffy list (OV: %d ON: %d U: %d)\n",
+                  mailbox, olduv, oldun, status->unseen));
+
       if (olduv && olduv == status->uidvalidity)
       {
         if (oldun < status->uidnext)