matcha
matcha copied to clipboard
BUG: POP3 batch delete is inefficient
Describe the bug
The POP3 provider's DeleteEmails implementation calls DeleteEmail in a loop. Each call to DeleteEmail creates a new connection, sends a DELE command, and then QUITs to commit. This is extremely inefficient for batch deletions.
To reproduce
- Use a POP3 account.
- Select multiple emails and delete them.
- Observe multiple connection/authentication cycles.
Expected behavior
DeleteEmails should create a single connection, send all DELE commands, and then QUIT once.
Additional context
Relevant code in backend/pop3/pop3.go.
This has had no activity for 30 days. It will be closed in 14 days unless updated. Comment or remove the stale label to keep it open.