-
Notifications
You must be signed in to change notification settings - Fork 155
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
Rename between users #4758
Rename between users #4758
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks sane to me, but its failing CI
cb08357
to
9752dd1
Compare
CI is fully passing now on my machine (including JMAP-Tester, I added that to my machine). The issue was setting the foldermodseq for the newmbentry too early, so it didn't get included in changes correctly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This all looks sane to me, and if it works, it works
@elliefm I've added backport tags to this - it fixes an otherwise bad bug that came in with uuid mailboxes |
will make rename_nocopy code align
We need the new mbentry since we're not creating a full mailbox; and we also need to syntheticaly make sure we're updating the new conversations db. This mirrors the logic from mailbox_rename_copy.
9752dd1
to
a6535bb
Compare
This doesn't backport well to 3.6, because the test Quota.storage_convquota_immediate relies on the If we do want to backport this to 3.6, we'll either also need #4203 and #4209 (at least), or need to drop this test |
We found an issue in Fastmail production where a user had done:
rename user.A.foo user.B.foo
followed by
rename user.B.foo user.A.foo
Which had caused conversations to be all broken because we weren't correctly detecting this case in the mailbox_rename_nocopy (uuid paths) case.
This PR adds a test for the case, then code to make it work (and yes, I did tdd this!)