Thunderbird扩展代码不返回所有线程

时间:2013-10-05 06:08:58

标签: api native thunderbird thunderbird-addon

我正在使用以下代码并期望检索属于同一线程的所有消息。但是,它始终只返回选定的消息详细信息。该消息已经过了一个小时,因此应该完成索引。我也试过多个线程,但结果相同。请告知这里错了什么

this.query =
Gloda.getMessageCollectionForHeaders([msgHdr], {
onItemsAdded: function (aItems) {},
onItemsModified: function () {},
onItemsRemoved: function () {},
onQueryCompleted: function (aCollection) {
add("\t\t\t/---------------------------\\\n");
add("\t\t\t| vik Gloda results |\n");
add("\t\t\t\\---------------------------/\n\n");

add("Gloda found "+aCollection.items.length+" items\n");
// Iterator over the messages Gloda found...
for each (let [i, glodaMsg] in Iterator(aCollection.items)) {
add("This message is from: "+glodaMsg.from+"\n");
add("This message is to: "+glodaMsg.to+"\n");
add("This message is from lists: "+glodaMsg.mailingLists+"\n");

}
},
}, true)
;