Cannot select subfolder using -mail command when local folders is closed - error "gMsgFolderSelected is undefined"

NEW
Unassigned

Status

Thunderbird
Mail Window Front End
--
minor
10 years ago
9 years ago

People

(Reporter: Rod Whiteley, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

10 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b5pre) Gecko/2008032502 Thunderbird/3.0a1pre

A subfolder specified in a command line sometimes fails to be selected,
depending on the previous open/collapsed state of rows in the folder pane.

Reproducible: Always

Steps to Reproduce:
1. Select a subfolder in the folder pane (for example: Local Folders/Alpha/Beta)
2. Click the account twisty only, collapsing the account row.
2. Close Thunderbird.
3. Start Thunderbird from a command line, specifying the subfolder. For example:
thunderbird -mail mailbox://nobody@Local%20Folders/Alpha/Beta
Actual Results:  
The subfolder is not selected.

Expected Results:  
The previous open/collapsed state of rows should not affect the command.

In the example, this happens because EnsureFolderIndex toggles Alpha, even though Alpha is already open.  With Alpha now collapsed, it cannot find Beta.

http://lxr.mozilla.org/mailnews/source/mail/base/content/msgMail3PaneWindow.js#1609

Comment 1

9 years ago
this failed for me only when local folder *account* was collapsed.  if you check the console you probably see ...

Error: gMsgFolderSelected is undefined
Source File: chrome://messenger/content/msgMail3PaneWindow.js
Line: 225

Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b1pre) Gecko/20080928120750 Shredder/3.0b1pre
Severity: normal → minor
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Cannot select subfolder using -mail command when parent folder is open → Cannot select subfolder using -mail command when local folders is closed - error "gMsgFolderSelected is undefined"
You need to log in before you can comment on or make changes to this bug.