Closed Bug 280804 Opened 17 years ago Closed 12 years ago

Delete a folder, Empty Trash and Compact Folders are disabled


(Thunderbird :: Mail Window Front End, defect)

Not set


(Not tracked)



(Reporter: SkewerMZ, Unassigned)



User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Thunderbird version 0.6+ (20050131) and 1.0

Deleting a folder causes Empty Trash and Compact Folders to be disabled, even
when both are currently valid options

(Occurred within Local Folders, using primary POP3 mail account. Also have two
newsgroup accounts.)

Reproducible: Always

Steps to Reproduce:
1. Does not matter whether trash folder is empty or not.
2. Create a folder under Local Folders. Does not matter whether the folder is
empty or not.
3. Note that Empty Trash is a valid option at this step if the trash is not
already empty.
4. Delete folder.
5. Empty Trash is disabled when trash is not empty.

Actual Results:  
The Empty Trash and Compact Folders options in the menu are grayed out and disabled.

Expected Results:  
Empty Trash and Compact Folders should not be disabled when trash is non-empty
and folders are not already compacted.

Standard theme, no add-ins.

To work around the bug: Click any message or folder, and the menu options will
be re-enabled.
Ever confirmed: true
Version: unspecified → Trunk
Status update... Identical behavior is still happening in Thunderbird 1.0+
20050408 - Same behavior...
Keywords: helpwanted
This is closely related to bug 254946, actually it has the same cause: There is
no folder selected.

Disabling the commands makes sense: there might be several mail accounts and
when no folder is selected, Mozilla does not know whose account's Trash to
empty/whose account's folders to compact. Just emptying all Trash folders might
cause unexpected dataloss.

A solution might be to automatically select another folder if one is selected
(or the Trash emptied, which also works this way, see bug 254946).
QA Contact: front-end
david comment 4
Severity: normal → minor
Depends on: 254946
Keywords: helpwanted
OS: Windows XP → All
Hardware: PC → All
Gary, are this and bug 254946 backend?
Assignee: mscott → nobody
Still reproducible in the latest or trunk nightlies?
Yes, reproduced on, always. Both win and linux.
WFM in version 3
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv: Gecko/20091127 Shredder/3.0.1pre

please reopen if you can reproduce in v3
Closed: 12 years ago
Resolution: --- → WORKSFORME
Version: Trunk → 2.0
You need to log in before you can comment on or make changes to this bug.