Closed
Bug 97530
Opened 23 years ago
Closed 23 years ago
Filter disables in this case of rename destination folder - exit after rename.
Categories
(MailNews Core :: Filters, defect)
MailNews Core
Filters
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.5
People
(Reporter: laurel, Assigned: naving)
Details
(Whiteboard: PDT+)
Attachments
(2 files)
5.07 KB,
patch
|
Details | Diff | Splinter Review | |
4.07 KB,
patch
|
Details | Diff | Splinter Review |
Related bug 41720 Using aug29 commercial trunk build: win98, linux rh6.2, mac OS 9.0 Happens for IMAP or POP filters/folders The fix for bug 41720 made it so that filters would work after renaming a folder which was involved as a filter destination. That works when the rename takes place in the same session as getting/filtering a new message. The scenario below causes filter to be disabled and therefore the message doesn't get moved to the intended destination folder. Steps: 1. Set up a simple filter on POP or IMAP account with an action to Move To Folder. Specify a folder (top level or sub) on that same account as the destination for the filter action. 2. Send yourself a message which will match the filter criteria, get the message and verify it is indeed moved to the destination folder properly. 3. Rename the destination folder. 4. Exit, then launch to mail, login to the account and send yourself a message which will match the filter criteria. 5. Get that message and note it is not moved from the inbox. 6. Check the filter dialog and note the filter has been disabled.
Assignee | ||
Updated•23 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•23 years ago
|
||
This is happening because we are not able to get the filter service during shutdown. Looks like we release the service manager and then try to get the filterService so we get ns_errror_failure and null. I will work on the fix.
Assignee | ||
Comment 2•23 years ago
|
||
Assignee | ||
Comment 3•23 years ago
|
||
The current code tries to save the filter list in the nsMsgIncomingServer destructor. Well that is not very safe, if there is leak it will never be called, there could be other cases besides this bug where filterlist may never gets saved. So, I moved it to account manager code and upon exit we now save the filter list. This is the correct way of doing it. cc sspitzer and cavin for review.
Comment 4•23 years ago
|
||
r=cavin.
Assignee | ||
Comment 5•23 years ago
|
||
cc bienvenu for sr.
Comment 6•23 years ago
|
||
if I understand correctly, when you rename the folder, we adjust the filter, right? If that's the case, you should be saving the filters at that point. Moving the filter saving code around won't fix the problem if you crash after renaming the folder.
Assignee | ||
Comment 7•23 years ago
|
||
we can also save just after renaming, but we will still need this patch to save any other session changes. We do save on New filter and Edit Filter... I cannot think of any other situation right away.
Comment 8•23 years ago
|
||
I think I'm not being really clear - we should always save when something changes about the filters - the save in the destructor was just a temporary catch-all because originally the filter editing code did not save the filters at all.
Assignee | ||
Comment 9•23 years ago
|
||
Comment 10•23 years ago
|
||
looks good, sr=bienvenu
Assignee | ||
Comment 11•23 years ago
|
||
fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 12•23 years ago
|
||
This scenario working OK with sep5 commercial trunk build: mac OS 9.0, linux rh6.2 and win98. Any other scenarios found to be a problem involving renaming and filters will be logged separately.
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 13•23 years ago
|
||
Reopening... this fix never made it to the branch and is needed to make fix for bug 98391 (and bug 41720) work effectively on the branch.
Comment 14•23 years ago
|
||
Unfortunately it's a bit late in the game to be trying to take this fix. If we tried last week I'm sure we could have gotten it in. I'll try to take it to PDT but I'm not hopeful.
Assignee | ||
Comment 16•23 years ago
|
||
fixed on branch
Status: REOPENED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 17•23 years ago
|
||
OK using sep26 commercial 0.9.4 build: win98, linux rh6.2, mac OS X
Status: RESOLVED → VERIFIED
Comment 18•23 years ago
|
||
removing link to this fixed bug from mozilla 0.9.6 release notes.
Updated•20 years ago
|
Product: MailNews → Core
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•