Closed
Bug 98391
Opened 23 years ago
Closed 23 years ago
Case where filter disables with rename destination -- local parent folder renamed
Categories
(MailNews Core :: Filters, defect, P3)
MailNews Core
Filters
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla1.0.1
People
(Reporter: laurel, Assigned: naving)
References
Details
(Whiteboard: PDT+)
Attachments
(1 file)
(deleted),
patch
|
Details | Diff | Splinter Review |
Using sep5 commercial trunk build
related bugs: bug 41720, bug 97530
Another rename folder case which doesn't work: If you have a local subfolder
(POP account folder or under Local Folders) specified as a filter destination
and you rename the parent of the destination folder, the filter will not work
and will disable on attempted firing.
Steps:
1. In Local Folders, create a folder and a subfolder.
2. Create a filter for a mail account (either IMAP or POP) which specifies
action as Move To Folder and select the local subfolder as the destination.
Confirm OK from both filter rules dialog and the main filter dialog.
3. Send a message which will match the filter criteria, get the message and
verify the filter is indeed working.
4. Rename the parent folder, leaving the subfolder name as is.
5. Send yourself another message which matches the filter criteria, get the
message. Note is is not filtered as expected. Check the rules.dat and see the
filter path shows the old name for the parent folder, check the filters ui and
see the filter has been disabled.
To clarify: the rename parent situation is ok for imap destination folders --
the change path name is recorded in rules.dat.
Assignee | ||
Comment 2•23 years ago
|
||
I know there could be some problems with local rename because of rdf resource
leaks.
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•23 years ago
|
||
Assignee | ||
Comment 4•23 years ago
|
||
The problem was that we were deleting the subfolders w/o creating new renamed
ones. This is necessary because uri will change if parent is renamed.
Also this patch includes the fix for bug 98470, where subfolders disappeared
until you click on the twisty. The fix for this problem is to notify the
addition of subfolders.
cc bienvenu for review.
Comment 5•23 years ago
|
||
Is the whole purpose of adding RenameSubfolders so that we can track filter
moves, and fix the twisty? It seems like there might be an easier way of doing
that without changing so much code.
But if not, what code is RenameSubFolder copied from? Why do you do a
GetDatabase() after calling SetFlags()? Is there a reason, or was the code
copied from somewhere else?
Assignee | ||
Comment 6•23 years ago
|
||
RenameSubfolders is needed because we have to recursively create subfolders
i.e transfer subfolders from old folder to new folder
The GetDatabase() and SetFlags call are needed so that the new sub-folder has
correct flags and also for making it in sync w/ db and the summarycounts,
We can avoid GetDatabase calls but we will have to depend upon the user to click
the folders.
Comment 7•23 years ago
|
||
could you add a comment as to why GetDatabase() is called where it is and what
it does? Otherwise, r=bienvenu
Assignee | ||
Comment 8•23 years ago
|
||
cc sspitzer for sr
Comment 9•23 years ago
|
||
sr=sspitzer. if you check in the call to GetDatabase() make sure to add a
comment (like bienvenu requested)
Assignee | ||
Comment 10•23 years ago
|
||
fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 11•23 years ago
|
||
was this checked in for both trunk and branch?
Reporter | ||
Comment 12•23 years ago
|
||
I can't get this to work in today's branch build (all platforms). Will try the
trunk, too.
Reporter | ||
Comment 13•23 years ago
|
||
OK, it's working on today's trunk build... are we going to have this for the
branch?
Added nsbranch keyword to get evaluation. Reopening to catch attention.
Comment 14•23 years ago
|
||
thanks laurel. this wasn't showing up on my radar because it was marked fixed.
I'll add it to 99508 and take it to PDT today.
Assignee | ||
Comment 16•23 years ago
|
||
fixed on trunk
Status: REOPENED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 17•23 years ago
|
||
err, fixed on branch.
Reporter | ||
Comment 18•23 years ago
|
||
OK using sep24 commercial 0.9.4 branch build win98
Reporter | ||
Comment 19•23 years ago
|
||
Well, this has the same kind of problem we had in 97830. If I rename the parent
folder then exit before getting another message, when I relaunch and get a
message which matches the filter, the filter is disabled and message doesn't
move and the rules.dat shows the old parent/path.
So, scenario withing session works, exiting after rename parent doesn't work. I
will double-check the exact destination folder as was bug 97830.
Reporter | ||
Comment 20•23 years ago
|
||
So, it's 98730 exactly... no matter what level, exact destination folder or
parent, is renamed it will not be recorded properly in filters if you exit after
rename. Reopen 98730 or this one?
Reporter | ||
Comment 21•23 years ago
|
||
Sorry, slip of the fingers... that last bug number should be 97530. And since
it doesn't have the PDT+ (fixed trunk before branch), I'll reopen this one. I'll
double check on today's trunk build, too
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Reporter | ||
Comment 22•23 years ago
|
||
Marking this fixed again, we've decided to reopen 97530 since that more
specifically describes the problem. Will wait for 97530 to test this one again.
Status: REOPENED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 23•23 years ago
|
||
Usin sep26 branch: Bug 97530 is now fixed and verified on the branch. Also
revisited this rename issue and this bug is still OK on today's branch. Marking
verified for branch.
Even though I did some testing on trunk several days ago, I'll check again and
on all platforms after branch release, so adding vtrunk keyword.
Keywords: vtrunk
Comment 24•23 years ago
|
||
removing link to this fixed bug from mozilla 0.9.6 release notes.
Reporter | ||
Comment 25•23 years ago
|
||
Reopened...
Using nov19 commercial trunk build:
After renaming parent to filter destination folder I do not get any alert that
associated filter(s) will be affected. Sending another message which matches the
filter in the same session will result in an alert that the folder could not be
found and filter(s) will be disabled. I even tried collapsing and expanding
Local Folders after rename and before sending another message to try to force
folder (changes) discovery. This parent scenario is not working properly.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Updated•23 years ago
|
Target Milestone: --- → mozilla0.9.9
Updated•23 years ago
|
Assignee | ||
Comment 27•23 years ago
|
||
bug 120203 will fix this.
Status: REOPENED → ASSIGNED
Depends on: 120203
Assignee | ||
Comment 29•23 years ago
|
||
fixed
Status: ASSIGNED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 30•23 years ago
|
||
OK using feb 01 commercial trunk build: win98, linux rh6.2, mac OS 10.1
Status: RESOLVED → VERIFIED
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
•