-
Notifications
You must be signed in to change notification settings - Fork 22
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
Bad tests in COPY and MOVE commands #37
Comments
COPY: I guess it's not prevented by RFCs, but I've a feeling it's not going to be nice client/user behavior. I wouldn't be surprised if it breaks some clients. MOVE: Here I think even the RFC disagrees. It says MOVE is the same behavior as:
So the 1. step already tells it to assign a new UID, because two message instances can't have the same UID. |
For 2, you are right I guess. For 1, I can't comprehend why.
Any other way will be very convoluted, in fact I can't see how a client may do it any other way. |
For 1 I'm mainly thinking that if there are no other IMAP servers copying out-of-order, the existing client implementationa may never have tested whether it works. Anyway, I guess I could do some change in that test, but first I'd want to ask from imap-protocol mailing list whether someone else can think of a reason why the order would actually have to be preserved. IMAP RFC is sometimes hiding information in a bit random places. |
Makes sense, thanks! |
These following tests have expectations nowhere defined in RFCs:
Test copy command 17/24 (line 32)
A->B
, equivalent UIDs in B will be1->1, 2->2, 4->3
1->2, 2->1. 3->2
is also validTest move command 12/13 (line 44)
Again, happy to raise a PR fixing these. Let me know.
The text was updated successfully, but these errors were encountered: