diff --git a/packages/nylas-sync/imap/fetch-folder-list.js b/packages/nylas-sync/imap/fetch-folder-list.js index d59d5794e..36675fb16 100644 --- a/packages/nylas-sync/imap/fetch-folder-list.js +++ b/packages/nylas-sync/imap/fetch-folder-list.js @@ -57,6 +57,12 @@ class FetchFolderList { continue; } + this._logger.info({ + box_name: boxName, + attributes: JSON.stringify(box.attribs), + }, `FetchFolderList: Box Information`) + + if (box.children && box.attribs.includes('\\HasChildren')) { Object.keys(box.children).forEach((subname) => { stack.push([`${boxName}${box.delimiter}${subname}`, box.children[subname]]);