I've never run reconstruct from within cyradm, so cannot speak to
that, although I will note that in my version (2.4.17) the help fro
cyradm says this (emphasis mine):
reconstruct reconstruct mailbox (if
supported)
Look for the binary 'reconstruct' on your system. On a
Fedora/RedHat/CentOS system it might be here:
/usr/lib/cyrus-imapd/reconstruct
You should run this as the cyrus user. For example, as root do
this:
$ su cyrus -c "/usr/lib/cyrus-imapd/reconstruct -r -f user.USER"
If you don't run the command as the syruc user, the perms on the
files (if any) it creates will be wrong.
Cheers,
-nic
On 09/15/2014 09:12 AM, Tom Plancon
wrote:
I inherited this installation,
unfortunately!
I'm running "reconstruct" inside cyradm. Running "version"
inside cyradm I get this:
name : Cyrus IMAPD
version : v2.3.16-Fedora-RPM-2.3.16-6.el6_2.5 2010/01/06
17:01:32
vendor : Project Cyrus
support-url: http://cyrusimap.web.cmu.edu
os : Linux
os-version : 2.6.32-279.22.1.el6.x86_64
environment: Built w/Cyrus SASL 2.1.23
Running w/Cyrus SASL 2.1.23
Built w/Berkeley DB 4.7.25: (November 12, 2010)
Running w/Berkeley DB 4.7.25: (April 4, 2012)
Built w/OpenSSL 1.0.0-fips 29 Mar 2010
Running w/OpenSSL 1.0.0-fips 29 Mar 2010
Built w/zlib 1.2.3
Running w/zlib 1.2.3
CMU Sieve 2.3
TCP Wrappers
mmap = shared
lock = fcntl
nonblock = fcntl
idle = idled
Is it possible install a version of cyradm, or is it only
installed with the cyrus-imad package?
Thomas Plancon
CAD/IT Manager
B K A Architects, Inc.
142 Crescent Street
Brockton, MA 02302
tel: 508 .
583 . 5603 ext 313
fax: 508 . 584 . 2914
www.bkaarchitects.com
On 9/15/2014 9:56 AM, Nic Bernstein wrote:
Are you sure you've running a version of reconstruct which
matches your installation? I ask because the man page for
reconstruct from 2.3.16 shows both -r and -f as permissible:
−r
Recursively reconstruct all sub-mailboxes of the mailboxes or
mailbox prefixes given as arguments.
−f
Examine the filesystem underneath mailbox, adding all
directories with a cyrus.header found there as new mailboxes.
Useful for restoring mailboxes from backups.
from http://www.cyrusimap.org/docs/cyrus-imapd/2.3.16/man/reconstruct.8.php
Depending upon how you installed Cyrus, from package or source,
and which OS/distro you're using, there may be versions of
binary utilities laying around from older versions of the
software. We've certainly seen that before.
Cheers,
-nic
On 09/15/2014 08:43 AM, Tom Plancon
wrote:
Version 2.3.16
myEMAILsignature
Thomas Plancon
CAD/IT Manager
B K A Architects, Inc.
142 Crescent Street
Brockton, MA 02302
tel: 508
. 583 . 5603 ext 313
fax: 508 . 584 . 2914
www.bkaarchitects.com
On 9/15/2014 9:40 AM, Egoitz Aurrekoetxea wrote:
That’s estrange the -r is recursive…. that should work….
Which Cyrus version are you running?
Hello,
Thanks for the response.
When I run "reconstruct -rf mailbox" the response
is "usage: reconstruct [-r] mailbox". I assume
that means it doesn't like the syntax.
Thomas
Plancon
CAD/IT
Manager
B
K A Architects, Inc.
142 Crescent Street
Brockton, MA 02302
tel: 508 . 583 . 5603 ext 313
fax: 508 . 584 . 2914
www.bkaarchitects.com
On 9/15/2014 3:15 AM, Egoitz Aurrekoetxea wrote:
Hi,
try reconstruct -rf mailbox
Regards,
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
--
Nic Bernstein nic@xxxxxxxxxxx
Onlight, Inc. www.onlight.com
219 N. Milwaukee St., Suite 2a v. 414.272.4477
Milwaukee, Wisconsin 53202
--
Nic Bernstein nic@xxxxxxxxxxx
Onlight, Inc. www.onlight.com
219 N. Milwaukee St., Suite 2a v. 414.272.4477
Milwaukee, Wisconsin 53202
|