<!DOCTYPE html><html><head><title></title><style type="text/css">
p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>"x RENAME old new" is now fixed such that the renamed mailbox will remain on its original partition (on both the master and cyrus-imapd-3.0 branches), instead of accidentally going through the choose-a-partition logic.<br></div><div><br></div><div>You still can't provide an explicit partition unless the mailbox name isn't changing, even if the partition you name is the original partition.<br></div><div><br></div><div>On Tue, Nov 5, 2019, at 7:08 PM, Bron Gondwana wrote:<br></div><blockquote type="cite" id="qt"><div style="font-family:Arial;">Wow - this looks like a bug in partition selection for user rename then :(  We should fix that.<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;"><a href="https://github.com/cyrusimap/cyrus-imapd/issues/2907">https://github.com/cyrusimap/cyrus-imapd/issues/2907</a><br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">Cheers,<br></div><div style="font-family:Arial;"><div><br></div><div>Bron.<br></div></div><div style="font-family:Arial;"><br></div><div>On Tue, Nov 5, 2019, at 17:30, Thomas Cataldo wrote:<br></div><blockquote id="qt-qt" type="cite"><div style="font-family:Arial;"><br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">> On 29 Oct 2019, at 13:13, Ken Murchison <murch@fastmail.com> wrote:<br></div><div style="font-family:Arial;">> <br></div><div style="font-family:Arial;">> x RENAME <old> <new> <partition><br></div><div style="font-family:Arial;">> <br></div><div style="font-family:Arial;">> <br></div><div style="font-family:Arial;">> should work<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">Agree, but it does not :-)<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">At least with version 3.0.8 :<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">localhost> info user/ren@devenv.blue<br></div><div style="font-family:Arial;">{user/ren@devenv.blue}:<br></div><div style="font-family:Arial;">private:<br></div><div style="font-family:Arial;">  check: NIL<br></div><div style="font-family:Arial;">  checkperiod: NIL<br></div><div style="font-family:Arial;">  comment: NIL<br></div><div style="font-family:Arial;">  sort: NIL<br></div><div style="font-family:Arial;">  specialuse: NIL<br></div><div style="font-family:Arial;">  thread: NIL<br></div><div style="font-family:Arial;">  expire: NIL<br></div><div style="font-family:Arial;">  news2mail: NIL<br></div><div style="font-family:Arial;">  sieve: NIL<br></div><div style="font-family:Arial;">  squat: NIL<br></div><div style="font-family:Arial;">shared:<br></div><div style="font-family:Arial;">  check: NIL<br></div><div style="font-family:Arial;">  checkperiod: NIL<br></div><div style="font-family:Arial;">  comment: NIL<br></div><div style="font-family:Arial;">  sort: NIL<br></div><div style="font-family:Arial;">  specialuse: NIL<br></div><div style="font-family:Arial;">  thread: NIL<br></div><div style="font-family:Arial;">  annotsize: 0<br></div><div style="font-family:Arial;">  duplicatedeliver: false<br></div><div style="font-family:Arial;">  expire: NIL<br></div><div style="font-family:Arial;">  lastpop: NIL<br></div><div style="font-family:Arial;">  lastupdate:  4-Nov-2019 15:32:13 +0000<br></div><div style="font-family:Arial;">  news2mail: NIL<br></div><div style="font-family:Arial;">  partition: bm-master__devenv_blue<br></div><div style="font-family:Arial;">  pop3newuidl: true<br></div><div style="font-family:Arial;">  pop3showafter: NIL<br></div><div style="font-family:Arial;">  sharedseen: false<br></div><div style="font-family:Arial;">  sieve: NIL<br></div><div style="font-family:Arial;">  size: 32310<br></div><div style="font-family:Arial;">  squat: NIL<br></div><div style="font-family:Arial;">  synccrcs: 2599665889 0<br></div><div style="font-family:Arial;">  uniqueid: ee8ede37-153a-4650-bf94-3da7d4f52043<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">An IMAP session as admin :<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">telnet localhost 1143<br></div><div style="font-family:Arial;">Trying ::1...<br></div><div style="font-family:Arial;">Trying 127.0.0.1...<br></div><div style="font-family:Arial;">Connected to localhost.<br></div><div style="font-family:Arial;">Escape character is '^]'.<br></div><div style="font-family:Arial;">* OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE AUTH=PLAIN SASL-IR] server ready<br></div><div style="font-family:Arial;">. login admin0 admin<br></div><div style="font-family:Arial;">. OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxten QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SEARCH=FUZZY SORT SORT=MODSEQ SORT=DISPLAY SORT=UID THREAD=ORDEREDSUBJECT THREAD=REFERENCES THREAD=REFS ANNOTATEMORE ANNOTATE-EXPERIMENT-1 METADATA LIST-EXTENDED LIST-STATUS LIST-MYRIGHTS LIST-METADATA WITHIN QRESYNC SCAN XLIST XMOVE MOVE SPECIAL-USE CREATE-SPECIAL-USE DIGEST=SHA1 X-REPLICATION URLAUTH URLAUTH=BINARY LOGINDISABLED COMPRESS=DEFLATE X-QUOTA=STORAGE X-QUOTA=MESSAGE X-QUOTA=X-ANNOTATION-STORAGE X-QUOTA=X-NUM-FOLDERS IDLE] User logged in SESSIONID=<cyrus-26086-1572885470-1-16005178469193034866><br></div><div style="font-family:Arial;">. RENAME user/ren@devenv.blue user/rename@devenv.blue bm-master__devenv_blue<br></div><div style="font-family:Arial;">. NO Cross-server or cross-partition move w/rename not supported<br></div><div style="font-family:Arial;">. RENAME user/ren@devenv.blue user/rename@devenv.blue<br></div><div style="font-family:Arial;">* OK rename user/ren@devenv.blue user/rename@devenv.blue<br></div><div style="font-family:Arial;">* OK rename user/ren/Drafts@devenv.blue user/rename/Drafts@devenv.blue<br></div><div style="font-family:Arial;">* OK rename user/ren/Junk@devenv.blue user/rename/Junk@devenv.blue<br></div><div style="font-family:Arial;">* OK rename user/ren/Outbox@devenv.blue user/rename/Outbox@devenv.blue<br></div><div style="font-family:Arial;">* OK rename user/ren/Sent@devenv.blue user/rename/Sent@devenv.blue<br></div><div style="font-family:Arial;">* OK rename user/ren/Trash@devenv.blue user/rename/Trash@devenv.blue<br></div><div style="font-family:Arial;">. OK Completed<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">But if I use the version without an explicit partition, the new mailbox ends up in :<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">> info user/rename@devenv.blue<br></div><div style="font-family:Arial;">{user/rename@devenv.blue}:<br></div><div style="font-family:Arial;">private:<br></div><div style="font-family:Arial;">  check: NIL<br></div><div style="font-family:Arial;">  checkperiod: NIL<br></div><div style="font-family:Arial;">  comment: NIL<br></div><div style="font-family:Arial;">  sort: NIL<br></div><div style="font-family:Arial;">  specialuse: NIL<br></div><div style="font-family:Arial;">  thread: NIL<br></div><div style="font-family:Arial;">  expire: NIL<br></div><div style="font-family:Arial;">  news2mail: NIL<br></div><div style="font-family:Arial;">  sieve: NIL<br></div><div style="font-family:Arial;">  squat: NIL<br></div><div style="font-family:Arial;">shared:<br></div><div style="font-family:Arial;">  check: NIL<br></div><div style="font-family:Arial;">  checkperiod: NIL<br></div><div style="font-family:Arial;">  comment: NIL<br></div><div style="font-family:Arial;">  sort: NIL<br></div><div style="font-family:Arial;">  specialuse: NIL<br></div><div style="font-family:Arial;">  thread: NIL<br></div><div style="font-family:Arial;">  annotsize: 0<br></div><div style="font-family:Arial;">  duplicatedeliver: false<br></div><div style="font-family:Arial;">  expire: NIL<br></div><div style="font-family:Arial;">  lastpop: NIL<br></div><div style="font-family:Arial;">  lastupdate:  4-Nov-2019 16:43:36 +0000<br></div><div style="font-family:Arial;">  news2mail: NIL<br></div><div style="font-family:Arial;">  partition: default<br></div><div style="font-family:Arial;">  pop3newuidl: true<br></div><div style="font-family:Arial;">  pop3showafter: NIL<br></div><div style="font-family:Arial;">  sharedseen: false<br></div><div style="font-family:Arial;">  sieve: NIL<br></div><div style="font-family:Arial;">  size: 32310<br></div><div style="font-family:Arial;">  squat: NIL<br></div><div style="font-family:Arial;">  synccrcs: 2599665889 0<br></div><div style="font-family:Arial;">  uniqueid: ee8ede37-153a-4650-bf94-3da7d4f52043<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">which forces me issue a second command in my imap session :<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">. RENAME user/rename@devenv.blue user/rename@devenv.blue bm-master__devenv_blue<br></div><div style="font-family:Arial;">* OK rename user/rename@devenv.blue user/rename@devenv.blue<br></div><div style="font-family:Arial;">* OK rename user/rename/Drafts@devenv.blue user/rename/Drafts@devenv.blue<br></div><div style="font-family:Arial;">* OK rename user/rename/Junk@devenv.blue user/rename/Junk@devenv.blue<br></div><div style="font-family:Arial;">* OK rename user/rename/Outbox@devenv.blue user/rename/Outbox@devenv.blue<br></div><div style="font-family:Arial;">* OK rename user/rename/Sent@devenv.blue user/rename/Sent@devenv.blue<br></div><div style="font-family:Arial;">* OK rename user/rename/Trash@devenv.blue user/rename/Trash@devenv.blue<br></div><div style="font-family:Arial;">. OK Completed<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">Which moves the mailbox to the partition where I want it (its original one).<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">The problem with the non-atomic rename is that our replication target receives data belonging to the default partition, which is not desired or expected.<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">Thomas Cataldo<br></div><div style="font-family:Arial;">Directeur Technique <br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">(+33) 6 42 25 91 38<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">BlueMind<br></div><div style="font-family:Arial;">+33 (0)5 81 91 55 60<br></div><div style="font-family:Arial;">Hotel des Télécoms, 40 rue du village d'entreprises<br></div><div style="font-family:Arial;">31670 Labège, France<br></div><div style="font-family:Arial;">www.bluemind.net / https://blog.bluemind.net/fr/<br></div><div style="font-family:Arial;"><br></div></blockquote><div style="font-family:Arial;"><br></div><div id="qt-sig56629417"><div class="qt-signature">--<br></div><div class="qt-signature">  Bron Gondwana, CEO, Fastmail Pty Ltd<br></div><div class="qt-signature">  brong@fastmailteam.com<br></div><div class="qt-signature"><br></div></div><div style="font-family:Arial;"><br></div></blockquote><div><br></div></body></html>