Closed Bug 358909 Opened 19 years ago Closed 18 years ago

Message filter "Age" only allows positive values

Categories

(MailNews Core :: Search, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9alpha8

People

(Reporter: michael.letzgus, Assigned: mkmelin)

References

Details

Attachments

(2 files)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1) Gecko/20061010 Firefox/2.0 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1) Gecko/20061010 Firefox/2.0 The message filter "Age" only allows positive values. Negative values would be nice to deal with junk mail sent with a wrong date from the future. Alternative: Add "today"-type date to the "date"-filter. Reproducible: Always Steps to Reproduce: nothing at all
-> new, valid rfe.
Severity: normal → enhancement
Status: UNCONFIRMED → NEW
Ever confirmed: true
*** Bug 356026 has been marked as a duplicate of this bug. ***
Taking.
Assignee: mscott → mkmelin+mozilla
DUP of Bug 174294, isn't it?
Effectively, yes... but this bug is so uncluttered;)
I see. Setting dependency.
Blocks: 94789, 174294
Attached patch proposed fixSplinter Review
This makes search/filters accept negative age. So age > -3 means more than three days in the future. Age < -3 means date is before three days in the future. (Removing the headersString variable as it wasn't used.)
Attachment #269691 - Flags: superreview?(bienvenu)
Attachment #269691 - Flags: review?(bienvenu)
Comment on attachment 269691 [details] [diff] [review] proposed fix nice, thx, Magnus.
Attachment #269691 - Flags: superreview?(bienvenu)
Attachment #269691 - Flags: superreview+
Attachment #269691 - Flags: review?(bienvenu)
Attachment #269691 - Flags: review+
oh, you should gen a new uuid for the nsIMsgSearchValue
Fix as checked in, with new uuid
Checking in base/search/public/nsIMsgSearchValue.idl; /cvsroot/mozilla/mailnews/base/search/public/nsIMsgSearchValue.idl,v <-- nsIMsgSearchValue.idl new revision: 1.10; previous revision: 1.9 done Checking in base/search/public/nsMsgSearchCore.idl; /cvsroot/mozilla/mailnews/base/search/public/nsMsgSearchCore.idl,v <-- nsMsgSearchCore.idl new revision: 1.31; previous revision: 1.30 done Checking in base/search/src/nsMsgSearchAdapter.cpp; /cvsroot/mozilla/mailnews/base/search/src/nsMsgSearchAdapter.cpp,v <-- nsMsgSearchAdapter.cpp new revision: 1.92; previous revision: 1.91 done Checking in base/search/src/nsMsgSearchTerm.cpp; /cvsroot/mozilla/mailnews/base/search/src/nsMsgSearchTerm.cpp,v <-- nsMsgSearchTerm.cpp new revision: 1.143; previous revision: 1.142 done Checking in base/search/src/nsMsgSearchValue.cpp; /cvsroot/mozilla/mailnews/base/search/src/nsMsgSearchValue.cpp,v <-- nsMsgSearchValue.cpp new revision: 1.28; previous revision: 1.27 done ->FIXED
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 3
No longer blocks: 174294
Component: General → MailNews: Search
Product: Thunderbird → Core
Target Milestone: Thunderbird 3 → mozilla1.9beta1
QA Contact: general → search
Version: unspecified → Trunk
Is this fix in TB-2? If not, will it be incorporated into it? Sorry if this is not the right place to ask this.
No sorry, you'll have to wait for tb3.
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: