Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Cc: ding@gnus.org
Subject: Re: [nnimap] "UID SEARCH" on closed folder
Date: Sat, 27 Sep 2003 18:50:42 +0200	[thread overview]
Message-ID: <iluzngqkwf1.fsf@latte.josefsson.org> (raw)
In-Reply-To: <yszisnelkuu.fsf@king.swox.se> (Linus Nordberg's message of "Sat, 27 Sep 2003 09:54:52 +0200")

Linus Nordberg <linus@nordberg.se> writes:

> 17 STATUS "INBOX" (unseen)
> * STATUS INBOX (UNSEEN 0)
> 17 OK Completed
> 18 EXPUNGE
> 19 CLOSE
> 20 UID SEARCH UNSEEN UNDELETED
> * 4 EXISTS
> * 0 RECENT
> 18 OK Completed
> 19 OK Completed
> 20 BAD Please select a mailbox first
> 21 SELECT "INBOX"

There may be a race condition between imap-mailbox-close in
asynchronous mode, and the code that send the UID SEARCH; the latter
code first check if the requested mailbox was already selected, and
then continue by sending the UID SEARCH command.  If the CLOSE command
was still pending when the code checked for the current mailbox, the
UID SEARCH code might get the wrong idea that the mailbox is still
selected.

Try toggling `nnimap-close-asynchronous'.

It should be possible to set a variable in the asynch
imap-mailbox-close mode to let other code know that it is closing a
mailbox, and add a check for that variable to `imap-mailbox-current',
although that is left as an exercise.




  reply	other threads:[~2003-09-27 16:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-27  7:54 Linus Nordberg
2003-09-27 16:50 ` Simon Josefsson [this message]
2003-09-29 15:06   ` Linus Nordberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=iluzngqkwf1.fsf@latte.josefsson.org \
    --to=jas@extundo.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).