Closed N-pharmarack closed 2 years ago
imap.openBox('INBOX', true, ...)
opens the inbox in read-only mode. With that set, you won't be able to update anything (e.g. message statuses) in the mailbox.
https://github.com/mscdex/node-imap/issues/407#issuecomment-1096557833
This helped me to achieve my use case, please refer to this
I'm able to download attachments from this code, but the problem is, it is downloading all attachments in Inbox, My use case is to download attachments only from unread Mails and then mark them read.