On 09/09/2007, <b class="gmail_sendername">George Cooke</b> <<a href="mailto:geocoo@gmail.com">geocoo@gmail.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks alot Michael, I have backed up that users spool mailbox directory, then removed all mail files in that spool directory, leaving the cyrus* files, then ran <br><br># reconstruct -r user<br><br>which outputted the users root mailbox path and its default trash inbox and sent paths
<br>Then I did the quota command to fix the quota<br># quota -f<br>Which strangley doesn't seem to reset the quota, it still prints theat user having 1755656kbytes which is the hard limit of 2GB they got to.. hence why I'm doing this.
<br><br>The IMAP mailbox looks good and empty so I guess reconstruct worked fine, but cyrus IMAP still thinks that user is over quota becuase it can't send mail.<br><br>Could you possibly see what I did wrong or how I can reset the quota?
</blockquote><div><br>I can't say why, but after completley clearing the directory again, and running reconstruct -rf user, and then quota -f, the quota got reset correctly, perhaps i'll test this again to see why but the relationshiop between the cyrus files, the
mailboxes.db and the quota root files need to become clearer to me.<br><br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Any ideas?
<br><br>PS. I actually did another test while not leaving the cyrus* files in there, in case they stored any storage information, but the same problem occurs with the quota not being reset and staying at 2GB.
<br><br>Thanks for your help!<br><br><div><div><span class="e" id="q_114ebca360040036_1"><span class="gmail_quote">On 06/09/07, <b class="gmail_sendername">Michael Menge</b> <<a href="mailto:michael.menge@zdv.uni-tuebingen.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
michael.menge@zdv.uni-tuebingen.de</a>> wrote:</span>
</span></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><span class="e" id="q_114ebca360040036_3">If you change something on the spool, without using the cyrus tools,
<br>you need to run reconstruct to update the cyrus.* files in that
<br>folder. After this you can update the quota with quota -f<br><br><br>Quoting George Cooke <<a href="mailto:geocoo@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">geocoo@gmail.com</a>
>:<br><br>> Is it possible to archive a whole mailbox and then empty it (on a filesystem
<br>> level), and get cyrus to realise the physical changes (ie recognise there is<br>> no mail in the mailbox, and reset the quota etc), I can't find a way of<br>> doing this, after moving mail from the mailbox and running quota -f, it
<br>> doesn't realise there is no mail in the mailbox and still thinks there is<br>> 2GB of mail in there (hard limit quota).<br>><br>> I guess this is where I need to know the architecture of cyrus's mailboxes.
<br>><br>> i don't mind using cyrus-admin or command line to do this, just would rather<br>> not use IMAP to do it.<br>><br>> Any pointers to relevant docs would be great if you can't provide direct
<br>> instructions.<br>><br>> Thanks alot, hope to speak to some of you soon.<br>><br><br><br><br>--------------------------------------------------------------------------------<br>M.Menge Tel.: (49) 7071/29-70316
<br>Universitaet Tuebingen Fax.: (49) 7071/29-5912<br>Zentrum fuer Datenverarbeitung mail:<br><a href="mailto:michael.menge@zdv.uni-tuebingen.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
michael.menge@zdv.uni-tuebingen.de</a><br>Waechterstrasse 76
<br>72074 Tuebingen<br><br></span></div><span class="q">----<br>Cyrus Home Page: <a href="http://cyrusimap.web.cmu.edu/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://cyrusimap.web.cmu.edu/
</a><br>Cyrus Wiki/FAQ: <a href="http://cyrusimap.web.cmu.edu/twiki" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://cyrusimap.web.cmu.edu/twiki
</a><br>List Archives/Info: <a href="http://asg.web.cmu.edu/cyrus/mailing-list.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://asg.web.cmu.edu/cyrus/mailing-list.html</a><br><br></span>
</blockquote>
</div><br>
</blockquote></div><br>Thanks all for your help, I think I might try the ipurge next time
instead of manipulating the mechanisms separatley, but this time I read
Leaons post too late.