"Run filters on message" doesn't work for message in global search view-as-list synthetic folder
Categories
(Thunderbird :: Filters, defect)
Tracking
(thunderbird_esr153 wontfix, thunderbird160 wontfix, thunderbird161 wontfix, thunderbird162 affected)
People
(Reporter: mozilla-sp, Assigned: welpy-cw)
Details
(Keywords: reproducible, Whiteboard: [filterfail])
Attachments
(1 file, 2 external files, 1 obsolete file)
|
172.83 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/115.0
Steps to reproduce:
- Create a filter "Move to github" with criteria:
- run manually, getting new mail (before junk classification), after sending
- ANY
-From: contains notifications@github.com
-Action: move to existing folder "Github" in same account
- Move filter to top of filter list
- Restart Thunderbird in Troubleshoot mode
- Navigate to a folder containing emails from notifications@github.com
- Open filters dialog and clear Filter Log, make sure it's enabled
- Select "Move to Github" and "run now" next to "run selected filter(s) on:" with current folder selected
- Open Filter Log and look at it
- Clear Filter log
- Close Filters dialog
- Open the Error Console
- Clear the Error Console and close it
- Do a global search for "notifications@github.com"
- Click "view as list"
- Sort list by folder
- Select one or multiple results from "notifications@github.com" that are not in "Github" folder
- Select "run filters on message" from the menu
- Open the Filters dialog and look at the Filter Log
- Open the error console and look at it
- Repeat this entire process several times, restarting in Troubleshoot Mode between each try.
Actual results:
In Step 6, the filter runs, all messages in current folder from "notifications@github.com" are moved to the "Github" folder, and the filter action is noted in the filter log, all as expected, confirming that the filter works.
In Step 16, nothing at all happens. Filters do not run. Selected emails are not filtered, and not moved.
In Step 17, Filter Log is seen to be completely blank.
In Step 18, The error console says:
22:03:26.443 An error occurred executing the cmd_applyFiltersToSelection command: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIMsgFilterService.applyFilters]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: chrome://messenger/content/mailCommon.js :: cmd_applyFiltersToSelection :: line 387" data: no] globalOverlay.js:102:13
goDoCommand chrome://messenger/content/globalOverlay.js:102
oncommand chrome://messenger/content/messenger.xhtml:1
Expected results:
In Step 16, the filters should have run. Emails should have been moved into the "Github" folder.
In Step 17, the filtering should have been noted in the filter log.
In Step 18, there should have been no error noted in the error console produced by trying to filter one or multiple messages.
The result was the same in several different tries, with a Thunderbird restart in Troubleshoot mode between each one.
Updated•2 years ago
|
Comment 1•2 years ago
|
||
Just an idea: Maybe the global search index hasn't been updated yet to account for messages that were already moved to the "github" folder? I would suggest to try a restart/reindexing inbetween. Can you confirm the messages that were found by global search and trigger the error are in fact outside of the github folder?
Updated•2 years ago
|
Updated•2 years ago
|
Can reproduce on win10-64bit in
TB 115.6.1
TB 130.0a1 (2024-07-18)
Run filters on message doesn't seem to work at all for messages in global search > show results as list
my steps to reproduce
tools►message filters►newwith these options:apply filter when: [x]manually run- ⦿
match all messages perform these actions►add star
- select message in INBOX
tools►run filters on messageCTRL+K(global search) ► enter search term- click on
show results as list tools►run filters on message
actual results
step 3: star is added (expected)
step 6: star is not added (bug)
Comment 3•1 year ago
|
||
Does this still reproduce when newer version?
| Assignee | ||
Comment 4•1 year ago
|
||
Comment 5•1 year ago
|
||
So this is really feasible, without side effects?
Comment 6•1 year ago
|
||
(In reply to Wayne Mery (:wsmwk) from comment #5)
So this is really feasible, without side effects?
I mean, not feasible?
| Assignee | ||
Comment 7•1 year ago
|
||
(In reply to Wayne Mery (:wsmwk) from comment #6)
(In reply to Wayne Mery (:wsmwk) from comment #5)
So this is really feasible, without side effects?
I mean, not feasible?
I guess this wouldn't be a trivial change. The question is how much effort we want to put into nsMsgXFVirtualFolderDBView and nsMsgSearchDBView now that Panorama is on its way.
Updated•18 days ago
|
| Assignee | ||
Updated•18 days ago
|
| Assignee | ||
Comment 8•18 days ago
|
||
Use the selected messages' real folder for filtering and error reporting.
Allow one selected message in any view, and restrict multiple-message filtering
to single-folder views.
Add browser coverage for real folders, saved searches, synthetic views, and
message tabs, including selection of the correct account's filters.
| Assignee | ||
Comment 9•18 days ago
|
||
Disable Run Filters on Folder for virtual folder views, including single-folder
saved searches, rather than passing a virtual folder to the filter service.
Cover disabled command state in saved searches and synthetic results, and
verify real-folder filtering still processes unselected messages.
Updated•17 days ago
|
Updated•17 days ago
|
| Assignee | ||
Updated•13 days ago
|
Comment 10•13 days ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/e45e51898af6
Fix manual filtering of selected messages in search views. r=mkmelin
https://hg.mozilla.org/comm-central/rev/de7244fe0230
Disable folder-wide filtering in saved searches. r=mkmelin
Description
•