<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Thomas,<br>
Thanks for your response.<br>
<br>
ITSEF Admin schreef:
<blockquote cite="mid:200903041016.40118.itsef-admin@brightsight.com"
 type="cite">
  <pre wrap="">On Wednesday 4 March 2009 09:45:36 Jacques Hylkema wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I have problems restoring a folder of one of my users, which he
accidentally deleted.

I tried the following:
- Restored the folder from a backup using scp
- The folder in question is:
/kolab/var/imapd/spool/domain/intronics.nl/user/j^m^dekker/Leveranciers/R--
S - Changed the owner and group of the folder and all subfolders and files
to kolab-r / kolab-r
- su - kolab-r
- /kolab/bin/cyrreconstruct -r -f 
    </pre>
  </blockquote>
  <pre wrap=""><!----><a class="moz-txt-link-abbreviated"
 href="mailto:user/j%5Em%5Edekker/Leveranciers/*@intronics.nl">user/j^m^dekker/Leveranciers/*@intronics.nl</a>

Have you tried reconstructing the top level folder? I.e.:

/kolab/bin/cyrreconstruct -r -f <a class="moz-txt-link-abbreviated"
 href="mailto:user/j%5Em%5Edekker/Leveranciers@intronics.nl">user/j^m^dekker/Leveranciers@intronics.nl</a>
  </pre>
</blockquote>
This gives the following result:<br>
<a class="moz-txt-link-abbreviated"
 href="mailto:user/j.m.dekker/Leveranciers@intronics.nl">user/j.m.dekker/Leveranciers@intronics.nl</a><br>
<br>
If I use:<br>
<pre wrap="">/kolab/bin/cyrreconstruct -r -f <a
 class="moz-txt-link-abbreviated"
 href="mailto:user/j%5Em%5Edekker/Leveranciers/*@intronics.nl">user/j^m^dekker/Leveranciers/*@intronics.nl</a></pre>
then I see all folders and subfolders below Leveranciers in the result.
(not Leveranciers itself) so I tried:<br>
<br>
/kolab/bin/cyrreconstruct -r -f
<a class="moz-txt-link-abbreviated"
 href="mailto:user/j%5Em%5Edekker/Leveranciers*@intronics.nl">user/j^m^dekker/Leveranciers*@intronics.nl</a>
<br>
<br>
which does the same as above, but does include the Leveranciers folder
itself.<br>
However, still no sign of the R--S folder...<br>
<blockquote cite="mid:200903041016.40118.itsef-admin@brightsight.com"
 type="cite">
  <pre wrap="">As far as I remember this is necessary to tell Cyrus about the new folder - it 
will not recognise it automatically.

Also, I strongly recommend to re-calculate your quotas after you have restored 
your folders, otherwise they can get quite out of whack. Cyrus does not do 
this for you if you add/delete mail "manually" to/from the spool. The command 
is:   su - kolab-r -c "/kolab/bin/cyrquota -f"
A word of caution: This will recalculate *all* quotas - there seems to be no 
easy way to recalculate the quota for only one user. Also, if you already 
have restored/deleted manually in the spool in the past, your quotas may 
already be wrong. If this is  the case, the recalculation can produce very 
strange results. Running it more than once can help, or, if that does not 
help, reconstruct the complete mailbox of any user whose quota is off, then 
re-run the quota command.
  </pre>
</blockquote>
OK, That's good to know. In this case, the user in question has no
quota set, because his mailbox is about 6GB. I have found that setting
a quota larger than 3GB gives problems on Kolab 2.0.4.<br>
<br>
<blockquote cite="mid:200903041016.40118.itsef-admin@brightsight.com"
 type="cite">
  <pre wrap="">Regards,

Thomas
  </pre>
</blockquote>
I think I have to follow another procedure:<br>
<br>
Create a (temporary) kolab mailserver with the latest version of kolab.<br>
Create the user in kolab, and restore the folder to that mailserver.<br>
reconstruct the folder on that mailserver.<br>
Add a new account to Thunderbird for the temporary mailserver<br>
Drag and drop the folder from the new temporary account to the original
account<br>
<br>
Does this seem to be a good workaround to you?<br>
<br>
Thanks for your co-operation.<br>
<br>
Jacques<br>
<br>

<BR>
______________________________________________________________________________________<BR>
This outbound message from Intronics B.V. has been checked for all known<BR>
viruses by KPN MailScan (IV-Scan), powered by MessageLabs.<BR>
______________________________________________________________________________________<BR>
</body>
</html>