Meta: Multiple IMAP connections using same mailbox are unsafe #188
Labels
bug
Something isn't working.
go-imap
Issue that is caused by a problem in go-imap.
go-imap-sql
Issue that is caused by a problem in go-imap-sql.
imap
Related to IMAP server implementation
ready-for-release
Feature is implemented and available for testing in dev branch. It will be included in the next rele
Milestone
Given 2 clients (A & B) connected and using the same mailbox. Deleting (expunging, in terms of IMAP) messages by client A can make client B act on wrong messages unless there is an explicit synchronization (e.g. CHECK, NOOP, IDLE) before action.
Clients that maintain persistent connections are likely to use IDLE and so will consume any pending updates before doing anything. This greatly reduces the chance of hitting this problem: both clients should do something at the same time and this is unlikely if the account is used only by a single person.
This should still be addressed in the long-term, since the current behavior breaks RFC 3501 by sending EXPUNGE updates when it is not allowed.
This is the meta-issue to link issues in different repositories and also to make it more visible for maddy users. There are changes need for all components (maddy, go-imap-sql backend, go-imap) to actually fix it.
References
The text was updated successfully, but these errors were encountered: