<!DOCTYPE html><html><head><title></title><style type="text/css">#qt {font-family:Helvetica, Arial, sans-serif;font-size:12px;color:rgb(51, 51, 51);}
#qt .qt-firmasarenet{font-family:Helvetica, Arial, sans-serif;text-align:left;color:rgb(51, 51, 51);}
#qt .qt-textosarenet,#qt .qt-titulosarenet{font-family:Helvetica, Arial, sans-serif;font-weight:bold;font-size:12px;color:rgb(51, 51, 51);}
#qt .qt-imgsarenet{margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;}
#qt .qt-lnksarenet{color:rgb(0, 122, 196) !important;font-size:12px;line-height:1.2;text-decoration-line:underline;text-decoration-style:solid;text-decoration-color:currentcolor;}
#qt .qt-firmasarenet a{color:rgb(0, 122, 196) !important;}
#qt .qt-imprimirsarenet{font-family:Helvetica, Arial, sans-serif;font-weight:normal;font-size:10px;line-height:1.2;color:rgb(0, 102, 0);}
p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div style="font-family:Arial;">Sorry for not getting back to you yesterday. I was on my way back from vacation and had family commitments all last night.<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">Regarding contribution - the very best thing to do for a case like this is to build Cassandane tests which isolate the issue :) I'll see if I can get that done today.<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">Cheers,<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">Bron.<br></div><div style="font-family:Arial;"><br></div><div>On Tue, Jul 16, 2019, at 02:34, Egoitz Aurrekoetxea wrote:<br></div><blockquote type="cite" id="qt"><div style="font-family:Arial;">Hi Bron!<br></div><div class="qt-"><br></div><div class="qt-">Sorry for answering so late I had the thought I answered you before…. I’m slightly stressed these days...<br></div><div class="qt-"><br></div><div class="qt-"><div style="font-family:Arial;">I answer below in green bold for instance…..<br></div><div class="qt-"><div style="font-family:Arial;"><br></div><div style="font-family:Arial;"><br></div><div class="qt-firmasarenet" style="clear:both;text-align:left;"><div class="qt-imgsarenet" style="margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;"><img class="qt-" alt="sarenet" src="https://www.sarenet.es/estaticos/LogoSarenetEmails.png?newlogo"><br></div><div class="qt-titulosarenet" style="font-family:Helvetica, Arial, sans-serif;font-weight:bold;font-size:14px;color:rgb(51, 51, 51);"><b>Egoitz Aurrekoetxea</b><br></div><div class="qt-dptosarenet" style="font-family:Helvetica, Arial, sans-serif;font-weight:normal;font-size:12px;color:rgb(51, 51, 51);">Dpto. de sistemas<br></div><div class="qt-textosarenet" style="font-family:Helvetica, Arial, sans-serif;font-weight:normal;font-size:12px;color:rgb(51, 51, 51);"><div style="font-family:Arial;">944 209 470<br></div><div style="font-family:Arial;">Parque Tecnológico. Edificio 103<br></div><div style="font-family:Arial;">48170 Zamudio (Bizkaia)<br></div></div><div class="qt-lnksarenet" style="font-family:Helvetica, Arial, sans-serif;font-weight:normal;font-size:12px;color:rgb(0, 122, 196);line-height:1.2;"><label class="qt-" id="qt-label_email">egoitz@sarenet.es<br></label></div><div class="qt-lnksarenet" style="font-family:Helvetica, Arial, sans-serif;font-weight:normal;font-size:12px;color:rgb(0, 122, 196);line-height:1.2;"><a class="qt-" style="font-size:12px;color:rgb(0, 122, 196);text-decoration-line:underline;text-decoration-style:solid;text-decoration-color:currentcolor;" href="http://www.sarenet.es">www.sarenet.es</a><br></div><div style="font-family:Arial;"><br></div><div class="qt-imprimirsarenet" style="font-family:Helvetica, Arial, sans-serif;font-weight:normal;font-size:10px;color:rgb(160, 195, 97);">Antes de imprimir este correo electrónico piense si es necesario hacerlo.<br></div></div></div><div><div style="font-family:Arial;"><br></div><blockquote class="qt-" type="cite"><div class="qt-">El 14 jul 2019, a las 14:36, Bron Gondwana <<a class="qt-" href="mailto:brong@fastmailteam.com">brong@fastmailteam.com</a>> escribió:<br></div><div style="font-family:Arial;"><br></div><div class="qt-"><div class="qt-" style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;-webkit-text-stroke-width:0px;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:currentcolor;font-family:Arial;">On Wed, Jul 10, 2019, at 19:11, Egoitz Aurrekoetxea wrote:<br></div><blockquote class="qt-" style="font-family:Helvetica, Arial, sans-serif;font-size:12px;color:rgb(51, 51, 51);font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;-moz-text-size-adjust:auto;-webkit-text-stroke-width:0px;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:currentcolor;" id="qt-qt" type="cite"><div class="qt-" style="font-family:Arial;">Good morning,<br></div><div class="qt-qt-"><br></div><div class="qt-qt-">In previous thread (with the title slightly incorrect) I talk about an issue suffered some day with Sieve script and folder subscriptions. The Sieve part, was related to the migration, so for the moment let’s forget about it (for me at least) as it has never reproduced again since then.<br></div></blockquote><div class="qt-" style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;-webkit-text-stroke-width:0px;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:currentcolor;font-family:Arial;"><br></div><div class="qt-" style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;-webkit-text-stroke-width:0px;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:currentcolor;font-family:Arial;">Sorry, I missed the previous thread. Did you mention which version of Cyrus you are running? There's clearly a bug and it would be good to know which version(s) it affects.<br></div></div></blockquote><div><br></div><div><br></div><div><span style="color:#669c35" class="colour"><b class="qt-">I think I have specified all these details (including what the previous thread was saying) in the answered mail this morning… I think it's all there… the version was 3.0.8…. If is not all or you need something, please tell me and I’ll try my bests for providing you all the info you need..</b></span><br></div><div><br></div><div style="font-family:Arial;"><br></div><blockquote class="qt-" type="cite"><div class="qt-"><div class="qt-" style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;-webkit-text-stroke-width:0px;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:currentcolor;font-family:Arial;"><br></div><blockquote class="qt-" style="font-family:Helvetica, Arial, sans-serif;font-size:12px;color:rgb(51, 51, 51);font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;-moz-text-size-adjust:auto;-webkit-text-stroke-width:0px;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:currentcolor;" id="qt-qt" type="cite"><div class="qt-qt-">About the folder subscription issue, I think I got something, at least a close approximation... When a user causes in mua a rename mailbox (a rename for a folder caused by a folder move in hierarchy), after the own rename, if folders were subscribed “should” (for the "plain user" at least) become subscribed in the new path. It seems that after a user rename in Cyrus the new folder is automatically subscribed (even if no subscribe command is sent by the mua). But this, does not cause in the replica (in the slave, if SUB is not sent by the client) a sync_apply_changesub() or something like entering in the “ move_subscription” condition in mboxlist_renamemailbox(), and then, the folder is properly renamed but not subscribed in the slave. I think this is what I’m suffering. Obviously, if after a rename the mua sends a subscribe too, no issue is seen. I think the problem happens when a mailbox rename happens and a SUB is not send later.<br></div></blockquote><div class="qt-" style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;-webkit-text-stroke-width:0px;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:currentcolor;font-family:Arial;"><br></div><div class="qt-" style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;-webkit-text-stroke-width:0px;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:currentcolor;font-family:Arial;">Subscriptions aren't automatically renamed when a folder is renamed, but they should be automatically renamed for a user rename. Intermediate replicated states can be bit messy due to race conditions with replication, but I believe it should always wind up in the final correct state. If not, that's a bug for sure!<br></div></div></blockquote><div><br></div><div><span style="color:#669c35" class="colour"><b class="qt-">This tests are some days ago… I’m slightly confused now because I don’t remember it exactly… </b></span><br></div><div><br></div><blockquote class="qt-" type="cite"><div class="qt-"><div class="qt-" style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;-webkit-text-stroke-width:0px;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:currentcolor;font-family:Arial;"><br></div><blockquote class="qt-" style="font-family:Helvetica, Arial, sans-serif;font-size:12px;color:rgb(51, 51, 51);font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;-moz-text-size-adjust:auto;-webkit-text-stroke-width:0px;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:currentcolor;" id="qt-qt" type="cite"><div class="qt-qt-">An example : <br></div><div class="qt-qt-"><br></div><div class="qt-qt-">The folder<span class="qt-Apple-converted-space"> </span><a href="http://domain.com/" class="qt-qt-">domain.com</a>!user.parta^partb.Archives.2019.TRAFICO.CHINA.XINGANG is moved (renamed) to trash.<br></div><div class="qt-qt-"><br></div><div class="qt-qt-"><div class="qt-qt-">May 16 16:16:50 mx6c imap[83976]: conversations_rename_folder: renamed<span class="qt-Apple-converted-space"> </span><a href="http://domain.com/" class="qt-qt-">domain.com</a>!user.parta^partb.Archives.2019.TRAFICO.CHINA.XINGANG to<span class="qt-Apple-converted-space"> </span><a href="http://domain.com/" class="qt-qt-">domain.com</a>!user.parta^partb.Trash.XINGANG<br></div><div class="qt-qt-">May 16 16:16:50 mx6c imap[83976]: Rename:<span class="qt-Apple-converted-space"> </span><a href="http://domain.com/" class="qt-qt-">domain.com</a>!user.parta^partb.Archives.2019.TRAFICO.CHINA.XINGANG -><span class="qt-Apple-converted-space"> </span><a href="http://domain.com/" class="qt-qt-">domain.com</a>!user.parta^partb.Trash.XINGANG<br></div><div class="qt-qt-">May 16 16:16:50 mx6c imap[83976]: Deleted mailbox<span class="qt-Apple-converted-space"> </span><a href="http://domain.com/" class="qt-qt-">domain.com</a>!user.parta^partb.Archives.2019.TRAFICO.CHINA.XINGANG<br></div></div><div class="qt-qt-"><br></div><div class="qt-qt-">In the master (sync), the folder in Trash is subscribed but in the slave it is not, and remains subscribed the folder in the original location in the “____.sub” file.<br></div></blockquote><div class="qt-" style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;-webkit-text-stroke-width:0px;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:currentcolor;font-family:Arial;"><br></div><div class="qt-" style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;-webkit-text-stroke-width:0px;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:currentcolor;font-family:Arial;">This might just be a matter of failing to sync_log the subscription in that codepath. Hmm...<br></div><div class="qt-" style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;-webkit-text-stroke-width:0px;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:currentcolor;font-family:Arial;"><br></div><div class="qt-" style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;-webkit-text-stroke-width:0px;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:currentcolor;font-family:Arial;">But there is a question of whether we should even be renaming the subscription - RFC3501 is a little silent on this issue, but it does say in a couple of places that the server MUST NOT remove a subscription even if the mailbox with that name doesn't exist, which makes renaming subscriptions a bit unclear. I'll check in with the authors of draft-ietf-extra-imap4rev2 and ask for this to be clarified next time around!<br></div></div></blockquote><div><br></div><div><br></div><div><span style="color:#4f7a28" class="colour"><b class="qt-">That’s it Bron.. it was strange… anyway… you know, when you try to debug an issue like the commented you do a closer inspection to all this behaviour, you know…. </b><b class="qt-">Although as said before, perhaps it’s better to talk about today's examples… I got them more recent….</b></span><br></div><div><br></div><div style="font-family:Arial;"><br></div><blockquote class="qt-" type="cite"><div class="qt-"><div class="qt-" style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;-webkit-text-stroke-width:0px;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:currentcolor;font-family:Arial;"><br></div><blockquote class="qt-" style="font-family:Helvetica, Arial, sans-serif;font-size:12px;color:rgb(51, 51, 51);font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;-moz-text-size-adjust:auto;-webkit-text-stroke-width:0px;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:currentcolor;" id="qt-qt" type="cite"><div class="qt-qt-">A diff between the master (replication client) .sub file and the slave’s one is (mx5 is the master, the client and 6 the slave): <br></div><div class="qt-qt-"><br></div><div class="qt-qt-"><div class="qt-qt-">--- subscripciones-mx5c/parta.partb.sub<span style="white-space:pre;" class="qt-qt-Apple-tab-span"> </span>2019-07-10 08:47:29.000000000 +0200<br></div><div class="qt-qt-">+++ subscripciones-mx6c/parta.partb.sub<span style="white-space:pre;" class="qt-qt-Apple-tab-span"> </span>2019-07-10 08:48:08.000000000 +0200<br></div><div class="qt-qt-"><br></div><div class="qt-qt-">+<a href="http://domain.com/" class="qt-qt-">domain.com</a>!user.parta^partb.Archives.2019.TRAFICO.CHINA.XINGANG<span style="white-space:pre;" class="qt-qt-Apple-tab-span"></span><br></div><div class="qt-qt-">-<a href="http://domain.com/" class="qt-qt-">domain.com</a>!user.parta^partb.Trash.XINGANG<span style="white-space:pre;" class="qt-qt-Apple-tab-span"></span><br></div></div><div class="qt-qt-"><br></div><div class="qt-qt-">Perhaps a move_subscription to one or sync_apply_changesub should be forced in order to fix it?. I have seen issues with Outlook 2016 and Thunderbird… both mua… perhaps by RFC they should send the SUB command but… it’s the only theory I could arrive to… I have a ton more cases like this one.. Data gets properly handled but subscriptions have this issue (perhaps we could say is a mua issue but….)..<br></div></blockquote><div class="qt-" style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;-webkit-text-stroke-width:0px;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:currentcolor;font-family:Arial;"><br></div><div class="qt-" style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;-webkit-text-stroke-width:0px;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:currentcolor;font-family:Arial;">Bron.<br></div></div></blockquote><div><br></div><div><br></div><div style="font-family:Arial;"><span style="color:#669c35" class="colour"><b class="qt-">Thanks a lot!</b></span><br></div><blockquote class="qt-" type="cite"><div class="qt-"><div class="qt-" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;-webkit-text-stroke-width:0px;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:currentcolor;" 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"> <span class="qt-Apple-converted-space"> </span><a class="qt-" href="mailto:brong@fastmailteam.com">brong@fastmailteam.com</a><br></div><div class="qt-signature"><br></div></div><div class="qt-" style="font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;-webkit-text-stroke-width:0px;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:currentcolor;font-family:Arial;"><br></div><div style="font-family:Arial;"><span style="font-family:Helvetica" class="font"><span style="font-size:12px" class="size">----</span></span><br></div><div style="font-family:Arial;"><span style="font-family:Helvetica" class="font"><span style="font-size:12px" class="size">Cyrus Home Page:<span class="qt-Apple-converted-space"> </span></span></span><a class="qt-" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;-moz-text-size-adjust:auto;-webkit-text-stroke-width:0px;" href="http://www.cyrusimap.org/">http://www.cyrusimap.org/</a><br></div><div style="font-family:Arial;"><span style="font-family:Helvetica" class="font"><span style="font-size:12px" class="size">List Archives/Info:<span class="qt-Apple-converted-space"> </span></span></span><a class="qt-" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;-moz-text-size-adjust:auto;-webkit-text-stroke-width:0px;" href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a><br></div><div style="font-family:Arial;"><span style="font-family:Helvetica" class="font"><span style="font-size:12px" class="size">To Unsubscribe:</span></span><br></div><div style="font-family:Arial;"><a class="qt-" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;-moz-text-size-adjust:auto;-webkit-text-stroke-width:0px;" href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a><br></div></div></blockquote></div></div><div>----<br></div><div>Cyrus Home Page: http://www.cyrusimap.org/<br></div><div>List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/<br></div><div>To Unsubscribe:<br></div><div>https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus<br></div></blockquote><div style="font-family:Arial;"><br></div><div id="sig567075"><div class="signature">-- <br></div><div class="signature"> Bron Gondwana<br></div><div class="signature"> brong@fastmail.fm<br></div><div class="signature"><br></div></div><div style="font-family:Arial;"><br></div></body></html>