Closed Bug 1834606 Opened 2 years ago Closed 2 years ago

In Unified Folders mode, Empty Junk folder on context menu throw error in console and cannot be emptied

Categories

(Thunderbird :: Folder and Message Lists, defect)

Thunderbird 114
defect

Tracking

(thunderbird_esr102 unaffected, thunderbird115 fixed)

VERIFIED FIXED
116 Branch
Tracking Status
thunderbird_esr102 --- unaffected
thunderbird115 --- fixed

People

(Reporter: Aureliano, Assigned: darktrojan)

References

(Blocks 1 open bug)

Details

(Keywords: regression, Whiteboard: [Supernova3p])

Attachments

(1 file)

In Unified Folders mode, Empty Junk folder has no effect. In console I see this error:

Uncaught NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIMsgFolder.deleteMessages]
emptyJunk chrome://messenger/content/about3Pane.js:2346
onCommand chrome://messenger/content/about3Pane.js:506
handleEvent chrome://messenger/content/about3Pane.js:263
about3Pane.js:2346
emptyJunk chrome://messenger/content/about3Pane.js:2346
onCommand chrome://messenger/content/about3Pane.js:506
handleEvent chrome://messenger/content/about3Pane.js:263

It happens both TB 114.0b4 (64-bit) and Daily

This still happens for me only when emptying the junk in unified mode.
Ben, can you take a look?

Flags: needinfo?(benc)

Probably unrelated, but even if the trash is emptied the counter of unread messages is not refreshed.

This could be related to bug 1835358

See Also: → 1835358
Summary: In Unified Folders mode, Empty Junk folder on context menu throw error in console → In Unified Folders mode, Empty Junk folder on context menu throw error in console and cannot be emptied
Duplicate of this bug: 1835358

Two problems here:

  • We're trying to empty a virtual folder instead of the folders it searches.
  • Attempting to delete zero messages throws an error.
Assignee: nobody → geoff
Status: NEW → ASSIGNED
Target Milestone: --- → 116 Branch

Pushed by martin@humanoids.be:
https://hg.mozilla.org/comm-central/rev/ab0b6cede71f
Fix emptying the Unified junk folder. r=john.bieling

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED

Comment on attachment 9337983 [details]
Bug 1834606 - Fix emptying the Unified junk folder. r=#thunderbird-reviewers

[Triage Comment]
Approved for beta w/ wsmwk via Matrix.

Attachment #9337983 - Flags: approval-comm-beta+
Status: RESOLVED → VERIFIED
Duplicate of this bug: 556757
Flags: needinfo?(benc)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: