Closed
Bug 1110095
Opened 10 years ago
Closed 10 years ago
Messages -> Create filter from message broken by bug 1085205
Categories
(Thunderbird :: Filters, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 37.0
People
(Reporter: aceman, Assigned: aceman)
References
Details
Attachments
(1 file, 2 obsolete files)
2.88 KB,
patch
|
aceman
:
review+
|
Details | Diff | Splinter Review |
If the "Create filter from message" is invoked from the Message menu, not from message header view, the filter editor comes up empty, due to an error: Error: NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIMsgSearchTerm.getAttributeFromString] Source File: chrome://messenger/content/FilterEditor.js Line: 96 Presumably because this method sends and empty field which should be prefilled in the editor. It should default to "Sender" in that case.
Attachment #8535089 -
Flags: review?(mkmelin+mozilla)
Status: NEW → ASSIGNED
OS: Windows XP → All
Hardware: x86 → All
Version: Trunk → 37
The previous version wouldn't work if fieldName is Subject as that has an attrib value of 0.
Attachment #8535089 -
Attachment is obsolete: true
Attachment #8535089 -
Flags: review?(mkmelin+mozilla)
Attachment #8535181 -
Flags: review?(mkmelin+mozilla)
Comment 3•10 years ago
|
||
Comment on attachment 8535181 [details] [diff] [review] patch v2 Review of attachment 8535181 [details] [diff] [review]: ----------------------------------------------------------------- Please rephrase the commit message. Besides that and a nit, looks good to me. r=mkmelin ::: mail/base/content/mailWindowOverlay.js @@ +2298,5 @@ > // We have to do prefill filter so we are going to launch the > // filterEditor dialog and prefill that with the emailAddress. > args = { filterList: folder.getEditableFilterList(msgWindow), > + filterName: emailAddress }; > + if (fieldName) maybe add a comment about what this is ::: mailnews/base/search/content/FilterEditor.js @@ +90,5 @@ > > var term = gFilter.createTerm(); > > + term.attrib = Components.interfaces.nsMsgSearchAttrib.Default; > + if (("fieldName" in args) && (args.fieldName != "")) { && args.fieldName
Attachment #8535181 -
Flags: review?(mkmelin+mozilla) → review+
Thanks.
Attachment #8535181 -
Attachment is obsolete: true
Attachment #8539699 -
Flags: review+
Keywords: checkin-needed
Comment 5•10 years ago
|
||
https://hg.mozilla.org/comm-central/rev/8d3f8239c7b7 -> FIXED
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 37.0
You need to log in
before you can comment on or make changes to this bug.
Description
•