-
-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to delete messages By UID? #206
Comments
It appears you are unable to make any sort of mailbox interaction until you have finished fetching messages with This seems to be a pretty existential bug and makes using the library difficult. The source of this issue comes from the Line 413 in 5f257a3
If you start fetching messages with You will either need to drain the generator and then do operations on what you got (such as deleting) or you could try to queue up any operations as promises and don't await them until after you have finished iterating all the messages from fetch. |
@Remscar Yes, you are correct. However, the issue is not the |
That's some really great context, didn't know about the IMAP serial command requirement, thanks for the explanation! |
for await (let message of client.fetch('1:*', { envelope: true, uid: true })) {
console.log(
${message.uid}: ${message.envelope.subject}
);Can I Use messageDelete to Delete Email?
The text was updated successfully, but these errors were encountered: