Closed Bug 510703 Opened 16 years ago Closed 16 years ago

NEW Message filters are created with garbage names

Categories

(MailNews Core :: Filters, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 3.0rc1

People

(Reporter: davidsen, Assigned: mdudziak)

References

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3pre) Gecko/20090814 SeaMonkey/2.0b2pre Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3pre) Gecko/20090814 SeaMonkey/2.0b2pre Creating any new message filter generates a filter rule which uses the first match rule as the name of the filter. Creating multiple filters with the same first rule creates multiple rules with the same name. Reproducible: Always Steps to Reproduce: 1.click tools->message filters from mail/news 2.create a filter with name and at least one rule 3.save the rule Actual Results: filter appears named something like "Subject: dog ****" instead of the name chosen at creation. Expected Results: The contents of the "filter name" box would be used as the name of the filter
This bug is a regression from bug 457745, as noted in bug 457745 comment 61. I'm not aware of any other filings of this though that could be used to track the fix.
Blocks: 457745
Status: UNCONFIRMED → NEW
Component: MailNews: General → Filters
Ever confirmed: true
Keywords: regression
OS: Linux → All
Product: SeaMonkey → MailNews Core
QA Contact: mail → filters
Hardware: x86 → All
Target Milestone: --- → Thunderbird 3.0b4
Version: unspecified → Trunk
Matt: from bug 457745.
There isn't enough information to create a "meaningful name" for a filter if the user doesn't provide one. The old behavior, calling to an "unnamed filter" with a unique number was actually a more meaningful name! Therefore: 1 - revert 457745, it wasn't a bug and isn't a solution 2 - is user supplied names are a big deal, use a pop-up with the OLD default name and a "is this what you really want?" prompt. The user can click OKAY, or ENTER to use the default, or type over the default name, as "save" does in the browser. If it's not broke, don't fix it!
Assignee: nobody → mozilla-bugs
(In reply to comment #3) [...] > If it's not broke, don't fix it! and in particular, if the user does provide a meaningful and unique name, don't override it with something less meaningful and possibly not even unique!
A patch to fix the problem stated in this bug where a user-defined name is overwritten. Also addresses the problems Neil pointed out in https://bugzilla.mozilla.org/show_bug.cgi?id=457745#c64
Attachment #400908 - Flags: superreview?(bienvenu)
Attachment #400908 - Flags: review?(neil)
Attachment #400908 - Flags: superreview?(bienvenu) → superreview+
Comment on attachment 400908 [details] [diff] [review] Patch to avoid override of user-selected name and to handle Attachment and Junk Status rules correctly >+ gFilter = gFilterList.createFilter(filtername); filterName has a capital N. r=me with that fixed.
Attachment #400908 - Flags: review?(neil) → review+
Attachment #401041 - Flags: review?(neil) → review+
Keywords: checkin-needed
Comment on attachment 401041 [details] [diff] [review] Patch to avoid override of user-selected name and to handle Attachment and Junk Status rules correctly. With proper capitalization this time. [Checkin: Comment 10] The tree policy currently requires approval for checkin (as mentioned on the newsgroups and tinderboxes). It is helpful if you can request that before checkin-needed.
Attachment #401041 - Flags: approval-thunderbird3+
Comment on attachment 401041 [details] [diff] [review] Patch to avoid override of user-selected name and to handle Attachment and Junk Status rules correctly. With proper capitalization this time. [Checkin: Comment 10] http://hg.mozilla.org/comm-central/rev/dfca16744cae
Attachment #401041 - Attachment description: Patch to avoid override of user-selected name and to handle Attachment and Junk Status rules correctly. With proper capitalization this time. → Patch to avoid override of user-selected name and to handle Attachment and Junk Status rules correctly. With proper capitalization this time. [Checkin: Comment 10]
Status: NEW → RESOLVED
Closed: 16 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: Thunderbird 3.0b4 → Thunderbird 3.0rc1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: