Messages are not deleted after expunge
See original GitHub issue // Mark messages for deletion on remote server
connection.seq.addFlags(uids, ['DELETED'], (err) => {
if (err) {
return console.log('Failed to mark messages for deletion:', err);
}
console.log('Messages are marked for deletion');
connection.expunge((err: Error) => {
if (err) {
return console.log(
`Failed to delete messages due to error: ${err.message}`
);
}
console.log('Deleted messages');
});
});
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Message not deleting with m.expunge - Stack Overflow
For some reason though, the mail I have selected is not being deleted. My code is: m = imaplib.IMAP4_SSL("imap-mail.outlook.com") m.login( ...
Read more >howto expunge messages marked deleted — oracle-tech
What I'm wondering about is how to set the server to expunge the messages in users mailboxes which were marked as 'deleted' but...
Read more >IMAP not reflect "EXPUNGE" when I delete message - TechNet
My problem is: Exchange 2013 does not send EXPUNGE when I delete message. According to RFC "The IDLE command is sent from the...
Read more >When is What ... Deleted, Expired, Expunged or Purged?
Messages in expunged folders, or messages that have been expunged individually, can not autonomously be restored by a user, and are gone ...
Read more >cyrus not deleting expunged messages - Server Fault
I su'd to cyrus user and ran cyr_expire manually - reducing -D to 30 removed some dead mailboxes. so I figure that's probably...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Again, it looks like you’re mixing UIDs and sequence numbers here. The
connection.seq.*
APIs deal only with sequence numbers. Ifuids
actually contains UIDs, you need to be usingconnection.addFlags()
instead.I tried
connection.addFlags()
, norDeleted
, norTrash
is working. I’ll tryBin
later.