-
Notifications
You must be signed in to change notification settings - Fork 379
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
Delete email messages #47
Comments
You should be closing the box first before logging out. |
I try that but it not works. Any other suggestion? |
Oops, overlooked the part where you were adding the flag. Here's the simplest way to delete a message and then log out: imap.addFlags(req.params.id, 'Deleted', function(err) {
if (err) return cb(err);
imap.closeBox(function(err) {
if (err) return cb(err);
imap.logout(cb);
});
}); |
Thanks a lot. :) |
I use the node 0.10.5 , imap@0.7.11. yahoo email ssl:993. get this error: Error: The flag "Deleted" is not allowed by the server for this mailbox |
imap._state.box.permFlags is empty. |
@AndreLigeiro Would it be possible to show how you initialized 'req' here? I'm trying to achieve something similar but I'm unsure of what object would have the params.id. I do a call like 'f.on('message', function(msg, seqno) {' but msg doesn't seem to have it. I'm trying to build off of the example listed in https://github.com/mscdex/node-imap Thanks!! |
fix(open): this months revenue not showing subs revenue
Hi,
How can I delete an email?
What I'm doing wrong?
Thks.
fetch = imap.fetch(req.params.id, {request: {headers:true, body:false } });
}
The text was updated successfully, but these errors were encountered: