Closed Bug 450897 Opened 16 years ago Closed 16 years ago

"Delete Mail marked as Junk in Folder" doesn't work with views / quicksearch

Categories

(Thunderbird :: Mail Window Front End, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 3.0a3

People

(Reporter: mkmelin, Assigned: rkent)

Details

(Keywords: regression)

Attachments

(1 file)

Was going to verify bug 312853 comment 7 but I notice "Delete Mail marked as Junk in Folder" doesn't work at all now for message views or if the quicksearch limits the displayed items. 

STR: 
1) have a few junk mails
2) quick search so you only have one mail showing
3) run the "Delete Mail...." command

Error: gDBView.viewFolder is null
Source File: chrome://messenger/content/junkCommands.js
Line: 410
Assignee: nobody → kent
OK I see this, and have a patch I'm testing.
Status: NEW → ASSIGNED
With this patch, behavior should be:

1) When a virtual search folder is selected in the folder tree, Delete Junk in Folder (using the view) only deletes messages that appear in the virtual folder.

2) When a normal folder has a restricted view selected (for example, with tag "Important"), Delete Junk in Folder ignores the restriction, and deletes junk in the entire folder.

3) Delete Junk in Folder is disabled for cross-folder virtual views.
Attachment #334642 - Flags: superreview?(neil)
Attachment #334642 - Flags: review?(neil)
Comment on attachment 334642 [details] [diff] [review]
Use gMsgFolderSelected

Why do quick search views sometimes not have a view folder but regular and cross-folder views do?
Attachment #334642 - Flags: superreview?(neil) → superreview?(bienvenu)
nsMsgQuickSearchDBView::Open sets m_viewFolder to null so that we can distinguish between the case of a saved search over a single folder (which has a view folder and a backing db to store attributes in), and a true quick search, which doesn't have a backing db.
Attachment #334642 - Flags: superreview?(bienvenu) → superreview+
Attachment #334642 - Flags: review?(neil) → review+
Keywords: checkin-needed
Checked in, changeset id: 165:7c012b1cf8db
Keywords: checkin-needed
Target Milestone: --- → Thunderbird 3.0b1
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
OS: Linux → All
Hardware: PC → All
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: