Closed Bug 498415 Opened 15 years ago Closed 15 years ago

"N" for next message jumps to next folder, but does not open first unread message there when mailnews.nav_crosses_folders 0 is set

Categories

(Thunderbird :: Folder and Message Lists, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 3.0b4

People

(Reporter: billb, Assigned: mkmelin)

References

(Blocks 1 open bug)

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

User-Agent:       Opera/9.80 (Windows NT 5.1; U; en) Presto/2.2.15 Version/10.00
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1pre) Gecko/20090615 Shredder/3.0b3pre

When all messages in a folder have been read, "N" for next unread message used to jump to the next folder and open the first unread message there.  Now it jumps to the folder and displays the message headers, but the first unread message is not opened unless "N" is pressed again.

Reproducible: Always

Steps to Reproduce:
1.Create two folders with unread messages
2.Read all messages in the first folder
3.Use "N" to jump to next folder.
Actual Results:  
Folder message headers are displayed, but message body pane remains blank until "N" is pressed again.

Expected Results:  
First message in next folder should have been opened.
asuth, bienvenu, was the behaviour meant to be changed in this way? (i.e. to display the folder message summaries instead of the next unread message by pressing "N")
No, the intent was that when next unread made us go to a different folder, we would still expand the thread w/ new messages - I believe I had this working, but it might have regressed.
This behaviour was introduced with bug 474701. I suppose this Bug should be dependent to bug 497199.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Version: unspecified → Trunk
Keywords: regression
OS: Windows XP → All
Hardware: x86 → All
I can't reproduce this in a current nightly build on Mac.  Can anyone else?
Keywords: qawanted
I can, every time (now on Windows). It just opens the folder, but doesn't select an unread message. A 2nd press will though...

Offline IMAP server (gmx.net).
(In reply to comment #5)
> I can, every time (now on Windows). It just opens the folder, but doesn't
> select an unread message. A 2nd press will though...
> 
> Offline IMAP server (gmx.net).

Just to double-check I confirmed the behavior in safe-mode. I only have Lightning, NTT and ViewAbout installed anyway...
(In reply to comment #4)
> I can't reproduce this in a current nightly build on Mac.  Can anyone else?
I can reproduce it on Linux nightly build (this bug also presents in safe mode)
I can't reproduce this on Windows either; I suspect there needs to be some particular preference or setting in effect to trigger it.

Do you guys see it in a clean profile?
Flags: blocking1.9.1.1-
Flags: blocking1.9.1.1-
What's your value for "mailnews.nav_crosses_folders"? I have it set not to prompt, i.e. "0".
(In reply to comment #8, comment #9)
I really should have checked this right away, but using the pref's default value of "1" the next unread message is selected and displayed after the prompt to change the folder.
I confirm this behaviour on WinXP. I have this set to "0"; when I change it to "1" the next unread message is selected and displayed after the prompt
to change the folder.  Changing it back to "0" restores the problem I reported.
Yeah I see that. Trivial fix coming up.
Assignee: nobody → mkmelin+mozilla
Keywords: qawanted
Summary: "N" for next message jumps to next folder, but does not open first unread message there → "N" for next message jumps to next folder, but does not open first unread message there when mailnews.nav_crosses_folders 0 is set
Target Milestone: --- → Thunderbird 3.0b4
Attached patch proposed fix (obsolete) — Splinter Review
No, no tests, yet ;)
Attachment #388743 - Flags: review?(bugmail)
Status: NEW → ASSIGNED
Attachment #388743 - Flags: review?(bugmail) → review+
Comment on attachment 388743 [details] [diff] [review]
proposed fix

If you could change the code so that the "gFolderDisplay.pushNavigation(...); SelectFolder" block only happens once, that would be preferable.  (I would lose the switch, and add an if nextMode == 0 case that does the prompt and returns out of the function if they don't confirm.)

That way it's the same logic and although I would still love a unit test, arguably the non-default case will not be any more prone to breakage than the default case.
Carrying fwd r=asuth
Attachment #388743 - Attachment is obsolete: true
Attachment #388755 - Flags: review+
FYI, I'm still seeing this with 3.0b3
changeset:   3137:3338453a6e27
http://hg.mozilla.org/comm-central/rev/3338453a6e27

->FIXED
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Confirmed as fixed, but the focus in the message header pane does not jump to the selected message until N is pressed or the current message is deleted.
Unfortunately, this problem continues, but I've been able to more readily reproduce it.

By selecting the first item in an RSS folder, and then shift selecting the remainder of items, and hitting the Delete key, the Space key will not then advance to the next RSS folder with items.

There may be some relation to the number of items that were selected - I was able to repeat when the number of items fit within the size of the list window (i.e. scrolling not required).  I was able to repeat this time and again on various RSS folders.

Can somebody reopen this?
Reproducing this is even easier than I wrote above.  Simply select all messages, hit the Delete key, and try to use Space to advance to the next group.  Fails constantly.
Seems WFM for me, but either way, that would be another bug, so please file one if you still see it.
The regression persists, and bug 509393 still exists.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: