Skip to content

Commit 79e59f8

Browse files
committed
feat: added default SPECIAL-USE when given params to list
1 parent b63657c commit 79e59f8

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
- 1.0.116 - 2022-11-30
4+
5+
- Added `SPECIAL-USE` flag by default when given parameters to `Imap#list`
6+
37
- 1.0.113 - 2022-10-21
48

59
- Added `stats()` method to get the count of bytes sent and received

lib/commands/list.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ module.exports = async (connection, reference, mailbox, options) => {
4444

4545
if (listCommand === 'LIST' && connection.capabilities.has('LIST-STATUS') && statusQueryAttributes.length) {
4646
returnArgs.push({ type: 'ATOM', value: 'STATUS' }, statusQueryAttributes);
47+
returnArgs.push({ type: 'ATOM', value: 'SPECIAL-USE' });
4748
}
4849

4950
let runList = async (reference, mailbox) => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "imapflow",
3-
"version": "1.0.115",
3+
"version": "1.0.116",
44
"description": "IMAP Client for Node",
55
"main": "./lib/imap-flow.js",
66
"scripts": {

0 commit comments

Comments
 (0)