]> granicus.if.org Git - mutt/commitdiff
Compare full mailbox names when doing IMAP buffy check, not up to the length
authorBrendan Cully <brendan@kublai.com>
Wed, 21 Dec 2005 00:13:22 +0000 (00:13 +0000)
committerBrendan Cully <brendan@kublai.com>
Wed, 21 Dec 2005 00:13:22 +0000 (00:13 +0000)
of the STATUS response.

imap/command.c

index f943db3211531d92bb7e5b831cc95c4af4c5cc9e..5783b3b08d62aba9208e5ac7d5eb26df7e92db6b 100644 (file)
@@ -822,7 +822,7 @@ static void cmd_parse_status (IMAP_DATA* idata, char* s)
     }
     
     if (mutt_account_match (&idata->conn->account, &mx.account) && mx.mbox
-        && mutt_strncmp (mailbox, mx.mbox, strlen (mailbox)) == 0)
+        && imap_mxcmp (mailbox, mx.mbox) == 0)
     {
       if (olduv && olduv == status->uidvalidity)
       {