X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/19304f7c526fbe36ba0db2fb80bcaf3bd974d81d..2df9cdc41c20e4e6afd99c0ae688c7c7baa4343b:/imap/command.c?ds=sidebyside diff --git a/imap/command.c b/imap/command.c index 304ae6e..3330d98 100644 --- a/imap/command.c +++ b/imap/command.c @@ -233,9 +233,6 @@ int imap_exec (IMAP_DATA* idata, const char* cmdstr, int flags) int rc; if ((rc = cmd_start (idata, cmdstr, flags)) < 0) - return rc; - - if (rc < 0) { cmd_handle_fatal (idata); return -1; @@ -993,14 +990,19 @@ static void cmd_parse_status (IMAP_DATA* idata, char* s) dprint (3, (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) - inc->new = status->unseen; - } - else if (!olduv && !oldun) - /* first check per session, use recent. might need a flag for this. */ - inc->new = status->recent; + if (option(OPTMAILCHECKRECENT)) + { + if (olduv && olduv == status->uidvalidity) + { + if (oldun < status->uidnext) + inc->new = status->unseen; + } + else if (!olduv && !oldun) + /* first check per session, use recent. might need a flag for this. */ + inc->new = status->recent; + else + inc->new = status->unseen; + } else inc->new = status->unseen;