Closed Bug 239181 Opened 20 years ago Closed 20 years ago

IMAP STATUS command should not be used on selected mailbox

Categories

(MailNews Core :: Networking: IMAP, defect)

x86
Windows XP
defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emaijala+moz, Assigned: Bienvenu)

Details

(Whiteboard: fixed-aviary1.0)

Attachments

(1 file, 1 obsolete file)

Running trunk build 2004032208 on WinXP. The server is running uw-imapd.

I was logging my IMAP traffic and noticed that Mozilla tries to query status of
a selected folder. In a few minutes I got quite a few lines like this:
1256[248d208]: 3475890:atp.fi:S-Mail/SPAM:CreateNewLineFromSocket: * NO CLIENT
BUG DETECTED: STATUS on selected mailbox: Mail/SPAM

According to the log file, the connection had Mail/SPAM already selected and it
had been IDLE before that (previously issued commands were IDLE and DONE). 

RFC 3501 states, that "the STATUS command SHOULD NOT be used on the currently
selected mailbox".

Setting severity to major as this could cause severe problems with some servers.
Flags: blocking1.7?
Comment on attachment 149082 [details] [diff] [review]
use NOOP instead of STATUS if we're selected

I think this will do the right thing when new messages come in, but it would be
great if you could try it out, Ere. I'm pretty sure we won't be doing STATUS on
selected folders, and * think we'll update the counts for unread and recent
correctly.
Attachment #149082 - Flags: superreview?(mscott)
Attachment #149082 - Flags: superreview?(mscott) → superreview+
Attachment #149082 - Attachment is obsolete: true
Comment on attachment 149102 [details] [diff] [review]
whoops, correct fix.

that was a patch from a different tree, for a different bug...
Attachment #149102 - Flags: superreview?(mscott)
Attachment #149102 - Flags: superreview?(mscott) → superreview+
fixed on trunk.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Whiteboard: fixed-aviary1.0
Flags: blocking1.7? → blocking1.7-
re-opening, because I'm going to back out this fix. It caused the regression
http://bugzilla.mozilla.org/show_bug.cgi?id=245044?
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
fixed by fix in bug 245769
Status: REOPENED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → FIXED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: