Saved search/virtual folder fails to automatically update when incoming POP3 messages are moved by filters
Categories
(Thunderbird :: Filters, defect)
Tracking
(Not tracked)
People
(Reporter: bugzilla, Assigned: welpy-cw, NeedInfo)
References
(Regression)
Details
(Keywords: regression, Whiteboard: [regression:tb12])
Attachments
(1 external file)
Comment 2•14 years ago
|
||
Comment 3•14 years ago
|
||
Updated•14 years ago
|
Comment 5•14 years ago
|
||
Comment 7•9 years ago
|
||
Updated•4 years ago
|
| Assignee | ||
Updated•7 months ago
|
| Assignee | ||
Comment 10•7 months ago
|
||
This patch fixes a race condition in nsParseNewMailState::MoveIncorporatedMessage
where Virtual Folders (Saved Searches) failed to display newly filtered messages,
particularly those utilizing 'New' status or body-content search criteria.
-
Corrects Notification Timing for Search Sessions:
Changes CopyHdrFromExistingHdr to not notify listeners prematurely (notify=false).
Previously, OnHdrAdded was broadcast before AppendMsgFromStream had written the
message to the store, causing body-content searches to fail. By deferring the
notification to AttachHdr, we ensure the message body is fully streamed to disk
and flags are set before Virtual Folders attempt to match the header. -
Ensures UI Visibility:
Calls SetHasNewMessages(true) on the destination folder immediately after
attachment. This ensures the folder pane correctly reflects the arrival of
new mail without requiring user interaction or a manual folder click. -
Improves Key Safety and Database Integration:
Switches from m_new_key to nsMsgKey_None in CopyHdrFromExistingHdr. This
prevents potential key collisions by allowing the destination database to
assign a fresh, valid message key from its own sequence. -
Formalizes Header Attachment:
Explicitly utilizes AttachHdr with notification enabled (notify=true) to
integrate the detached header into the target database, ensuring all subsequent
processing flags and UI updates are applied to the live header instance.
Updated•7 months ago
|
Updated•7 months ago
|
| Assignee | ||
Updated•7 months ago
|
Comment 11•7 months ago
|
||
Pushed by sking@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/9d18f0290fcf
Ensure Virtual Folders and UI update correctly for filtered POP3 moves. r=BenC
Description
•