Closed
Bug 1546840
Opened 6 years ago
Closed 6 years ago
It should be possible to do a gloda query for unread messages
Categories
(MailNews Core :: Database, enhancement)
MailNews Core
Database
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 68.0
People
(Reporter: darktrojan, Assigned: darktrojan)
References
Details
Attachments
(1 file)
1.34 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
There is a "read" attribute, but it's not possible to query it. As I understand it, setting canQuery
on the attribute to a truthy-but-not-true value will do the trick:
From gloda.js:
the new canQuery property has to be set to true to generate entries
in the messageAttributes table. Any other truthy value (like a non
empty string), will still make the message query-able but without
using the database.
I just wonder if there's a reason it hasn't been done before.
Assignee | ||
Comment 1•6 years ago
|
||
Assignee: nobody → geoff
Status: NEW → ASSIGNED
Attachment #9063150 -
Flags: review?(mkmelin+mozilla)
Comment 2•6 years ago
|
||
Comment on attachment 9063150 [details] [diff] [review]
1546840-gloda-canquery-1.diff
Review of attachment 9063150 [details] [diff] [review]:
-----------------------------------------------------------------
::: mailnews/db/gloda/modules/explattr.js
@@ +88,5 @@
> provider: this,
> extensionName: Gloda.BUILT_IN,
> attributeType: Gloda.kAttrExplicit,
> attributeName: "read",
> + // See the note in grokNounItem about canQuery.
Can you copy over the comment too?
Attachment #9063150 -
Flags: review?(mkmelin+mozilla) → review+
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/305d1bc1bda9
Allow GloDa queries for read or unread messages; r=mkmelin
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•6 years ago
|
Target Milestone: --- → Thunderbird 68.0
You need to log in
before you can comment on or make changes to this bug.
Description
•