better support for gloda/message search
Categories
(Thunderbird :: Add-Ons: Extensions API, enhancement)
Tracking
(Not tracked)
People
(Reporter: buecher, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0
Steps to reproduce:
-
messages.json does not allow to query for tags.
needed is something like
"tags": {
"type": ??, ??required nsIMsgTags for gloda query??
"optional": true,
"description": "Returns only messages with the given tags."},
and in ext-messages.js in async query(queryInfo) something like
if (queryInfo.tags) {
query.tags(queryInfo.tags);
}
- Gloda queries are limited to 300 (??) return values. I remember that can be set somewhere but don't remember where. Does that work with webextensions?
it seems that doesn't go well with MessageTag in webapi - that would need to be converted to an nsIMsgTags?
Comment 2•6 years ago
|
||
The first issue is being handled in bug 1600547.
For the second, the limit is set by mailnews.database.global.search.msg.limit and appears to be 1000 by default. That will also apply to WebExtensions.
Thanks for adding that functionality.
a) mailnews.database.global.search.msg.limit: it should be possible to set that from an addon. (when doing backup of something with many returned messages.)
b) At minimum, one needs to be able to read the pref, then one could test whether number returned === pref and notify the user. Better if combined with a), because it is not clear whether end user is capable to change the pref (my wife might need the backup but would not be able to set the pref)
Comment 4•4 years ago
|
||
We no longer use gloda for message search in the WebExt API, so the preference mailnews.database.global.search.msg.limit is no longer relevant.
Description
•