Skip to content

Commit 7ed7343

Browse files
authored
Added thread data to FETCH command (#786)
* Added thread data to FETCH command * Added missing thread projection
1 parent 8ff3925 commit 7ed7343

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

lib/api/messages.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -3069,7 +3069,8 @@ module.exports = (db, server, messageHandler, userHandler, storageHandler, setti
30693069
returnDocument: 'after',
30703070
projection: {
30713071
uid: true,
3072-
flags: true
3072+
flags: true,
3073+
thread: true,
30733074
}
30743075
}
30753076
);

lib/handlers/on-fetch.js

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ module.exports = (server, messageHandler, userCache) => (mailbox, options, sessi
6161
let projection = {
6262
_id: true,
6363
uid: true,
64+
thread: true,
6465
modseq: true
6566
};
6667

lib/handlers/on-store.js

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ module.exports = server => (mailbox, update, session, callback) => {
8686
_id: true,
8787
uid: true,
8888
flags: true,
89+
thread: true,
8990
modseq: true
9091
})
9192
.maxTimeMS(consts.DB_MAX_TIME_MESSAGES)

lib/message-handler.js

+1
Original file line numberDiff line numberDiff line change
@@ -1842,6 +1842,7 @@ class MessageHandler {
18421842
projection: {
18431843
_id: true,
18441844
uid: true,
1845+
thread: true,
18451846
flags: true
18461847
},
18471848
returnDocument: 'after'

0 commit comments

Comments
 (0)