以下のコードを使用して、同じスレッドに属するすべてのメッセージを取得することを期待しています。ただし、常に選択したメッセージの詳細のみが返されます。メッセージはすでに 1 時間経過しているため、インデックスを作成する必要があります。また、複数のスレッドでこれを試しましたが、同じ結果でした。ここで間違っていることを教えてください
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)
;