<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">When said an alert I meant a Nagios alert for instance…<div class=""><br class=""></div><div class="">Cheers!<br class=""><div class="">
<style class="">
body {
font-family:Helvetica, Arial, sans-serif;
font-size:12px;
color:#333;
}
.moz-signature { color:#333!important; }
.firmasarenet {
font-family:Helvetica, Arial, sans-serif;
text-align:left;
color:#333333;
}
.titulosarenet {
font-family:Helvetica, Arial, sans-serif;
font-weight:bold;
font-size:12px;
color:#333333;
}
.textosarenet {
font-family:Helvetica, Arial, sans-serif;
font-weight:bold;
font-size:12px;
color:#333333;
}
.dptosarenet { }
.imgsarenet { margin:0px 0px 10px 0px }
.imgsarenet img { }
.lnksarenet {
color:#007AC4!important;
font-size:12px;
line-height:1.2;
text-decoration:underline;
}
.firmasarenet a { color:#007ac4!important }
.imprimirsarenet {
font-family:Helvetica, Arial, sans-serif;
font-weight:normal;
font-size:10px;
line-height:1.2;
color:#006600
}
</style>
<br class="">
<br class="">
<div style="clear:both; text-align:left;" class="firmasarenet">
<div style="margin:0 0 10px 0" class="imgsarenet"><img src="https://www.sarenet.es/estaticos/LogoSarenetEmails.png?newlogo" alt="sarenet" class=""></div>
<div style="font-family:Helvetica, Arial, sans-serif; font-weight:bold; font-size:14px; color:#333333" class="titulosarenet"><strong class="">Egoitz Aurrekoetxea</strong></div>
<div style="font-family:Helvetica, Arial, sans-serif; font-weight:normal; font-size:12px; color:#333333" class="dptosarenet">Dpto. de sistemas</div>
<div style="font-family:Helvetica, Arial, sans-serif; font-weight:normal; font-size:12px; color:#333333" class="textosarenet">944 209 470<br class="">Parque Tecnológico. Edificio 103<br class="">48170 Zamudio (Bizkaia)</div>
<div style="font-family:Helvetica, Arial, sans-serif; font-weight:normal; font-size:12px; color:#007AC4; line-height:1.2" class="lnksarenet"><a id="mailto" style=" font-size:12px; color:#007AC4; text-decoration:underline;" href="mailto:undefined" class=""><label id="label_email" class="">egoitz@sarenet.es</label></a></div>
<div style="font-family:Helvetica, Arial, sans-serif; font-weight:normal; font-size:12px; color:#007AC4; line-height:1.2" class="lnksarenet"><a href="http://www.sarenet.es" style=" font-size:12px; color:#007AC4; text-decoration:underline;" class="">www.sarenet.es</a></div>
<br class="">
<div style="font-family:Helvetica, Arial, sans-serif; font-weight:normal; font-size:10px; color:#A0C361" class="imprimirsarenet">Antes de imprimir este correo electrónico piense si es necesario hacerlo.</div>
</div>
</div>
<div style=""><br class=""><blockquote type="cite" class=""><div class="">El 19 jul 2019, a las 9:47, Egoitz Aurrekoetxea <<a href="mailto:egoitz@sarenet.es" class="">egoitz@sarenet.es</a>> escribió:</div><br class="Apple-interchange-newline"><div class=""><span style="caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: Helvetica, Arial, sans-serif; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; display: inline !important; float: none;" class="">Thanks a lot Bron!</span><div class="" style="caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: Helvetica, Arial, sans-serif; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;"><br class=""></div><div class="" style="caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: Helvetica, Arial, sans-serif; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;">Yeah I saw your commit in 2015… I think the idea is fine but perhaps an alert should be better for that instead of a restriction…. Normally people is not going to do this kind of silly things… And when done is normally a mua driven crazy (we know everyone which mua I’m talking about :p )….</div><div class="" style="caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: Helvetica, Arial, sans-serif; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;"><div class=""><br class="webkit-block-placeholder"></div><div class="">I’ll tell about this fix to a customer of us who removed tons of folder… weren’t at saremail_restore (our deleted items recover system) and I started taking a look at what was going and arrived to this lines of mboxlist.c (I think it was..)…</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Cheers!<br class=""><br class=""><div class="firmasarenet" style="font-family: Helvetica, Arial, sans-serif; text-align: left; color: rgb(51, 51, 51); clear: both;"><div class="imgsarenet" style="margin: 0px 0px 10px;"><img src="https://www.sarenet.es/estaticos/LogoSarenetEmails.png?newlogo" alt="sarenet" class=""></div><div class="titulosarenet" style="font-family: Helvetica, Arial, sans-serif; font-weight: bold; font-size: 14px; color: rgb(51, 51, 51);"><strong class="">Egoitz Aurrekoetxea</strong></div><div class="dptosarenet" style="font-family: Helvetica, Arial, sans-serif; font-weight: normal; font-size: 12px; color: rgb(51, 51, 51);">Dpto. de sistemas</div><div class="textosarenet" style="font-family: Helvetica, Arial, sans-serif; font-weight: normal; font-size: 12px; color: rgb(51, 51, 51);">944 209 470<br class="">Parque Tecnológico. Edificio 103<br class="">48170 Zamudio (Bizkaia)</div><div class="lnksarenet" style="font-size: 12px; line-height: 1.2; text-decoration: underline; color: rgb(0, 122, 196); font-family: Helvetica, Arial, sans-serif; font-weight: normal;"><a id="mailto" href="mailto:undefined" class="" style="color: rgb(0, 122, 196); font-size: 12px; text-decoration: underline;"><label id="label_email" class="">egoitz@sarenet.es</label></a></div><div class="lnksarenet" style="font-size: 12px; line-height: 1.2; text-decoration: underline; color: rgb(0, 122, 196); font-family: Helvetica, Arial, sans-serif; font-weight: normal;"><a href="http://www.sarenet.es/" class="" style="color: rgb(0, 122, 196); font-size: 12px; text-decoration: underline;">www.sarenet.es</a></div><br class=""><div class="imprimirsarenet" style="font-family: Helvetica, Arial, sans-serif; font-weight: normal; font-size: 10px; line-height: 1.2; color: rgb(160, 195, 97);">Antes de imprimir este correo electrónico piense si es necesario hacerlo.</div></div></div><div class=""><br class=""><blockquote type="cite" class=""><div class="">El 19 jul 2019, a las 2:13, Bron Gondwana <<a href="mailto:brong@fastmailteam.com" class="">brong@fastmailteam.com</a>> escribió:</div><br class="Apple-interchange-newline"><div class=""><div class="" style="caret-color: rgb(0, 0, 0); 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: none; font-family: Arial;"><br class="Apple-interchange-newline"><br class=""></div><div class="" style="caret-color: rgb(0, 0, 0); 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: none;">On Fri, Jul 19, 2019, at 10:09, Bron Gondwana wrote:<br class=""></div><blockquote type="cite" id="qt" class="" 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: none;"><div class="" style="font-family: Arial;">On Thu, Jul 18, 2019, at 19:09, Egoitz Aurrekoetxea wrote:<br class=""></div><blockquote id="qt-qt" type="cite" class="" style="font-family: Helvetica, Arial, sans-serif; font-size: 12px; color: rgb(51, 51, 51);"><div class="" style="font-family: Arial;">Good morning,<br class=""></div><div class="qt-qt-"><br class=""></div><div class="qt-qt-">When using delete_delayed if someone removes a big folder (that one with more than 20 subfolders anywhere below it) in mboxlist_delayed_deletemailbox() only last 20 are preserved. We think it could be a good idea to preserve all and to have a parameter for configuring it. The reason for that, is that we use delete_delayed for storing the removed content remotely with the customer hired retention period in slow disk space. Perhaps could be a good idea something like : <br class=""></div><div class="qt-qt-"><br class=""></div><div class="qt-qt-">In mboxlist_delayed_deletemailbox() : <br class=""></div><div class="qt-qt-"><br class=""></div><div class="qt-qt-"><div class="qt-qt-"><b class="qt-qt-">If (!preserve_delete_delayed_folders_always)</b><br class=""></div><div class="qt-qt-"><b class="qt-qt-">{</b><br class=""></div><div class="qt-qt-"> /* keep the last 19, so the new one is the 20th */<br class=""></div><div class="qt-qt-"> for (i = 0; i < (int)existing.count - 19; i++) {<br class=""></div><div class="qt-qt-"> const char *subname = strarray_nth(&existing, i);<br class=""></div><div class="qt-qt-"> syslog(LOG_NOTICE, "too many subfolders for %s, deleting %s (%d / %d)",<br class=""></div><div class="qt-qt-"> newname, subname, i+1, (int)existing.count);<br class=""></div><div class="qt-qt-"> r = mboxlist_deletemailbox(subname, 1, userid, auth_state, NULL, 0, 1, 1,<br class=""></div><div class="qt-qt-"> keep_intermediaries);<br class=""></div><div class="qt-qt-"> if (r) goto done;<br class=""></div><div class="qt-qt-"> }<br class=""></div><div class="qt-qt-"><b class="qt-qt-">}</b><br class=""></div></div></blockquote><div class="" style="font-family: Arial;"><br class=""></div><div class="" style="font-family: Arial;">Hmm.... yeah, OK. This is actually buggy in that case! The intended behaviour was to avoid a Denial of Service attack where you would create and delete the same mailbox name millions of times - however, the whole concept is bogus because there's nothing stopping somebody creating and deleting folder000001 through folderFFFFFF and creating the same attack.<br class=""></div><div class="" style="font-family: Arial;"><br class=""></div><div class="" style="font-family: Arial;">I suggest that we just remove this whole silly check entirely, and if we want a similar level of attack protection we do something smarter like a quota for total folders+deleted folders that haven't been cleaned up yet - set it high enough that anybody hitting that is clearly doing something wrong, and require the administrator semi-manually clean up the deleted folders in order to re-allow folder creation.<br class=""></div><div class="" style="font-family: Arial;"><br class=""></div><div class="" style="font-family: Arial;">Cheers,<br class=""></div><div class="" style="font-family: Arial;"><br class=""></div><div class="" style="font-family: Arial;">Bron.<br class=""></div></blockquote><div class="" style="caret-color: rgb(0, 0, 0); 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: none; font-family: Arial;"><br class=""></div><div class="" style="caret-color: rgb(0, 0, 0); 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: none; font-family: Arial;">I've pushed commits to master and 3.0 to remove this check.<br class=""></div><div class="" style="caret-color: rgb(0, 0, 0); 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: none; font-family: Arial;"><br class=""></div><div id="sig56629417" class="" style="caret-color: rgb(0, 0, 0); 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: none;"><div class="signature">--<br class=""></div><div class="signature"> Bron Gondwana, CEO, Fastmail Pty Ltd<br class=""></div><div class="signature"> <span class="Apple-converted-space"> </span><a href="mailto:brong@fastmailteam.com" class="">brong@fastmailteam.com</a><br class=""></div><div class="signature"><br class=""></div></div><div class="" style="caret-color: rgb(0, 0, 0); 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: none; font-family: Arial;"><br class=""></div><span class="" style="caret-color: rgb(0, 0, 0); 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: none; float: none; display: inline !important;">----</span><br class="" style="caret-color: rgb(0, 0, 0); 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: none;"><span class="" style="caret-color: rgb(0, 0, 0); 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: none; float: none; display: inline !important;">Cyrus Home Page:<span class="Apple-converted-space"> </span></span><a href="http://www.cyrusimap.org/" class="" 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;">http://www.cyrusimap.org/</a><br class="" style="caret-color: rgb(0, 0, 0); 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: none;"><span class="" style="caret-color: rgb(0, 0, 0); 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: none; float: none; display: inline !important;">List Archives/Info:<span class="Apple-converted-space"> </span></span><a href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/" class="" 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;">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a><br class="" style="caret-color: rgb(0, 0, 0); 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: none;"><span class="" style="caret-color: rgb(0, 0, 0); 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: none; float: none; display: inline !important;">To Unsubscribe:</span><br class="" style="caret-color: rgb(0, 0, 0); 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: none;"><a href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus" class="" 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;">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a></div></blockquote></div></div></div></blockquote></div><br class=""></div></body></html>