Closed Bug 60904 Opened 24 years ago Closed 24 years ago

impossible to modify a filter (OK edit rules doesn't work)

Categories

(MailNews Core :: Filters, defect, P1)

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: matp75zilla, Assigned: vparthas)

References

Details

(Keywords: regression)

Attachments

(1 file)

creating a new filter works, ie when mail arrives, it goes in the good folder
It works when creating with one or more criteria
But when I wan't to modify the criteria of a existing filter, it never works
when I press Ok, it prints in the console window :
JavaScript error:
chrome://messenger/content/FilterEditor.js line 100: myFilterList has no properties
and the only possibility is to press cancel
I'm using the nighty build 20001121 (8h30)
I've just converted my mail from netscape 4, so I never had to use filters in
mozilla before
Yes, can reproduce on linux rh6.0, win98, mac os 9.0 using commercial trunk
build 11/21 -- OK when editing a filter doesn't work.  OK when creating new does
work.
Severity: normal → major
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
OS: Linux → All
Priority: P3 → P1
QA Contact: esther → laurel
Hardware: PC → All
Summary: impossible to modify a filter → impossible to modify a filter (OK edit rules doesn't work)
*** Bug 61303 has been marked as a duplicate of this bug. ***
Yes, I can confirm this bug on Mandrake 7.2, build 2000112821. 
Can we get a fix for this pretty soon?  Thanks.
Confirmed this bug on 2000113004, WinNT 4.0, too. In addition, it seems the OK
button does not work at all, neither does the Return or Enter key.
*** Bug 61981 has been marked as a duplicate of this bug. ***
*** Bug 62143 has been marked as a duplicate of this bug. ***
Keywords: mail3
reassigning to varada.
Assignee: gayatrib → varada
You can see the problematic file at
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/mailnews/base/search/resources/content/FilterEditor.js

I tried a nighty from beginning of october and it was working
I think the problem was introduced with the addition of a check for duplicate
filter names, which was introduced on november 17
the diff can be seen at
http://bonsai.mozilla.org/cvsview2.cgi?diff_mode=context&whitespace_mode=show&root=/cvsroot&subdir=mozilla/mailnews/base/search/resources/content&command=DIFF_FRAMESET&file=FilterEditor.js&rev2=1.34&rev1=1.33

I grabbed the source and did the whole painful compilation just to find it
coredump at startup :-( (perhaps this is related to the gcc version shipped with
RH7.0)
As I didn't find any way to make a modification to this file without recompiling
the whole (which is stupid because javascript is interpreted !), I think the
following patch could solve the problem (untested)
I hope somebody can test this

Marking Fixed.
Review/SR = Alecf.
Thanks to araman@cyber-networks.fr for the helpful patch.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
OK using:
2000-12-12-04 commercial trunk build win98
2000-12-12-09 commercial trunk build linux rh6.0
2000-12-12-08 commercial trunk build mac os 9.0
Status: RESOLVED → VERIFIED
*** Bug 62404 has been marked as a duplicate of this bug. ***
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: