<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix"><br>
      <div class="moz-signature">
        <title>myEMAILsignature</title>
        <meta http-equiv="Content-Type" content="text/html;
          charset=utf-8">
        <style type="text/css">
        body {
                font-family:'Gill Sans MT', 'arial', 'helvetica';
        }
        .name {
                font-size:14px;
                font-weight:bold;
                line-height:1.0em;
                color:#2a56a4;
        }
        .address {
                width:140px;
                text-align: justify;
                font-size:14px;
                line-height:1.0em;
                color:#2a56a4;
                }
        .info {
                font-size:14px;
                line-height:1.0em;
                color:#2a56a4;
        }
        .cntct {
                word-spacing:2px;
                font-size:14px;
                line-height:1.0em;
                color:#2a56a4;
        }
    .label {
        letter-spacing:1px;
        font-size:14px;
        line-height:1.0em;
        color:#2a56a4;
    } </style><span class="info"></span>On 9/15/2014 11:14 AM, Nic
        Bernstein wrote:<br>
      </div>
    </div>
    <blockquote cite="mid:54170268.4030703@onlight.com" type="cite">
      <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
      Tom,<br>
      Glad to hear it.  Please post this to the list so other folks in a
      similar situation will find it in the future.<br>
          -nic<br>
      <br>
      <div class="moz-cite-prefix">On 09/15/2014 09:51 AM, Tom Plancon
        wrote:<br>
      </div>
      <blockquote cite="mid:5416FCFD.3030408@bkaarchs.com" type="cite">
        <meta content="text/html; charset=utf-8"
          http-equiv="Content-Type">
        <div class="moz-cite-prefix">Nic,<br>
          <br>
          Thanks for that! I got /usr/lib/cyrus-imapd/reconstruct to run
          as the cyrus user. However, the output is this:<br>
          <br>
          reconstruct: fopen() failed for '8114.' [error=13] --
          skipping.<br>
          reconstruct: fopen() failed for '8115.' [error=13] --
          skipping.<br>
          reconstruct: fopen() failed for '8116.' [error=13] --
          skipping.<br>
          reconstruct: fopen() failed for '8117.' [error=13] --
          skipping.<br>
          .....etc.<br>
          <br>
          Ran ls -al on the Sent folder and saw that all of the emails
          recovered from rsync were owned by root! Did a "chown
          cyrus.mail" on all the files, ran reconstruct again, worked
          like a charm!<br>
          <br>
          Nice lesson here! Thank you all for the great help! My job is
          secure!<br>
          <br>
          <div class="moz-signature">
            <title>myEMAILsignature</title>
            <meta http-equiv="Content-Type" content="text/html;
              charset=utf-8">
            <style type="text/css">
        body {
                font-family:'Gill Sans MT', 'arial', 'helvetica';
        }
        .name {
                font-size:14px;
                font-weight:bold;
                line-height:1.0em;
                color:#2a56a4;
        }
        .address {
                width:140px;
                text-align: justify;
                font-size:14px;
                line-height:1.0em;
                color:#2a56a4;
                }
        .info {
                font-size:14px;
                line-height:1.0em;
                color:#2a56a4;
        }
        .cntct {
                word-spacing:2px;
                font-size:14px;
                line-height:1.0em;
                color:#2a56a4;
        }
    .label {
        letter-spacing:1px;
        font-size:14px;
        line-height:1.0em;
        color:#2a56a4;
    }

</style> <span class="name">Thomas Plancon</span><br>
            <span class="info">CAD/IT Manager</span><br>
            <p class="address">B K A Architects, Inc.<br>
              142 Crescent Street<br>
              Brockton, MA 02302</p>
            <span class="label">tel: </span><span class="cntct"> 508 .
              583 . 5603 ext 313</span><br>
            <span class="cntct">fax: 508 . 584 . 2914</span><br>
            <span class="info"><a moz-do-not-send="true"
                href="http://www.bkaarchs.com/">www.bkaarchitects.com</a></span>
          </div>
          On 9/15/2014 10:21 AM, Nic Bernstein wrote:<br>
        </div>
        <blockquote cite="mid:5416F5FC.7090807@onlight.com" type="cite">
          <meta content="text/html; charset=utf-8"
            http-equiv="Content-Type">
          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):<br>
          <blockquote>reconstruct                       reconstruct
            mailbox <i>(if supported)</i><br>
          </blockquote>
          Look for the binary 'reconstruct' on your system.  On a
          Fedora/RedHat/CentOS system it might be here:<br>
              /usr/lib/cyrus-imapd/reconstruct<br>
          <br>
          You should run this as the cyrus user.  For example, as root
          do this:<br>
              $ su cyrus -c "/usr/lib/cyrus-imapd/reconstruct -r -f
          user.USER"<br>
          <br>
          If you don't run the command as the syruc user, the perms on
          the files (if any) it creates will be wrong.<br>
          <br>
          Cheers,<br>
              -nic<br>
          <br>
          <div class="moz-cite-prefix">On 09/15/2014 09:12 AM, Tom
            Plancon wrote:<br>
          </div>
          <blockquote cite="mid:5416F3C8.8000403@bkaarchs.com"
            type="cite">
            <meta content="text/html; charset=utf-8"
              http-equiv="Content-Type">
            <div class="moz-cite-prefix">I inherited this installation,
              unfortunately! <br>
              <br>
              I'm running "reconstruct" inside cyradm. Running "version"
              inside cyradm I get this:<br>
              <br>
              name       : Cyrus IMAPD<br>
              version    : v2.3.16-Fedora-RPM-2.3.16-6.el6_2.5
              2010/01/06 17:01:32<br>
              vendor     : Project Cyrus<br>
              support-url: <a moz-do-not-send="true"
                class="moz-txt-link-freetext"
                href="http://cyrusimap.web.cmu.edu">http://cyrusimap.web.cmu.edu</a><br>
              os         : Linux<br>
              os-version : 2.6.32-279.22.1.el6.x86_64<br>
              environment: Built w/Cyrus SASL 2.1.23<br>
                           Running w/Cyrus SASL 2.1.23<br>
                           Built w/Berkeley DB 4.7.25: (November 12,
              2010)<br>
                           Running w/Berkeley DB 4.7.25: (April  4,
              2012)<br>
                           Built w/OpenSSL 1.0.0-fips 29 Mar 2010<br>
                           Running w/OpenSSL 1.0.0-fips 29 Mar 2010<br>
                           Built w/zlib 1.2.3<br>
                           Running w/zlib 1.2.3<br>
                           CMU Sieve 2.3<br>
                           TCP Wrappers<br>
                           mmap = shared<br>
                           lock = fcntl<br>
                           nonblock = fcntl<br>
                           idle = idled<br>
              <br>
              Is it possible install a version of cyradm, or is it only
              installed with the cyrus-imad package?<br>
              <div class="moz-signature">
                <title>myEMAILsignature</title>
                <meta http-equiv="Content-Type" content="text/html;
                  charset=utf-8">
                <style type="text/css">
        body {
                font-family:'Gill Sans MT', 'arial', 'helvetica';
        }
        .name {
                font-size:14px;
                font-weight:bold;
                line-height:1.0em;
                color:#2a56a4;
        }
        .address {
                width:140px;
                text-align: justify;
                font-size:14px;
                line-height:1.0em;
                color:#2a56a4;
                }
        .info {
                font-size:14px;
                line-height:1.0em;
                color:#2a56a4;
        }
        .cntct {
                word-spacing:2px;
                font-size:14px;
                line-height:1.0em;
                color:#2a56a4;
        }
    .label {
        letter-spacing:1px;
        font-size:14px;
        line-height:1.0em;
        color:#2a56a4;
    }

</style> <span class="name">Thomas Plancon</span><br>
                <span class="info">CAD/IT Manager</span><br>
                <p class="address">B K A Architects, Inc.<br>
                  142 Crescent Street<br>
                  Brockton, MA 02302</p>
                <span class="label">tel: </span><span class="cntct">
                  508 . 583 . 5603 ext 313</span><br>
                <span class="cntct">fax: 508 . 584 . 2914</span><br>
                <span class="info"><a moz-do-not-send="true"
                    href="http://www.bkaarchs.com/">www.bkaarchitects.com</a></span>
              </div>
              On 9/15/2014 9:56 AM, Nic Bernstein wrote:<br>
            </div>
            <blockquote cite="mid:5416EFFB.6000004@onlight.com"
              type="cite">
              <meta content="text/html; charset=utf-8"
                http-equiv="Content-Type">
              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:<br>
              <blockquote>−r       <br>
                <br>
                Recursively reconstruct all sub-mailboxes of the
                mailboxes or mailbox prefixes given as arguments.<br>
                    <br>
                <br>
                −f     <br>
                <br>
                Examine the filesystem underneath mailbox, adding all
                directories with a cyrus.header found there as new
                mailboxes. Useful for restoring mailboxes from backups.<br>
                <br>
                from <a moz-do-not-send="true"
                  class="moz-txt-link-freetext"
href="http://www.cyrusimap.org/docs/cyrus-imapd/2.3.16/man/reconstruct.8.php">http://www.cyrusimap.org/docs/cyrus-imapd/2.3.16/man/reconstruct.8.php</a><br>
              </blockquote>
              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.<br>
              <br>
              Cheers,<br>
                  -nic<br>
              <br>
              <div class="moz-cite-prefix">On 09/15/2014 08:43 AM, Tom
                Plancon wrote:<br>
              </div>
              <blockquote cite="mid:5416ED0C.3080305@bkaarchs.com"
                type="cite">
                <meta content="text/html; charset=utf-8"
                  http-equiv="Content-Type">
                <div class="moz-cite-prefix">Version 2.3.16<br>
                  <br>
                  <div class="moz-signature">
                    <title>myEMAILsignature</title>
                    <meta http-equiv="Content-Type" content="text/html;
                      charset=utf-8">
                    <style type="text/css">
        body {
                font-family:'Gill Sans MT', 'arial', 'helvetica';
        }
        .name {
                font-size:14px;
                font-weight:bold;
                line-height:1.0em;
                color:#2a56a4;
        }
        .address {
                width:140px;
                text-align: justify;
                font-size:14px;
                line-height:1.0em;
                color:#2a56a4;
                }
        .info {
                font-size:14px;
                line-height:1.0em;
                color:#2a56a4;
        }
        .cntct {
                word-spacing:2px;
                font-size:14px;
                line-height:1.0em;
                color:#2a56a4;
        }
    .label {
        letter-spacing:1px;
        font-size:14px;
        line-height:1.0em;
        color:#2a56a4;
    }

</style> <span class="name">Thomas Plancon</span><br>
                    <span class="info">CAD/IT Manager</span><br>
                    <p class="address">B K A Architects, Inc.<br>
                      142 Crescent Street<br>
                      Brockton, MA 02302</p>
                    <span class="label">tel: </span><span class="cntct">
                      508 . 583 . 5603 ext 313</span><br>
                    <span class="cntct">fax: 508 . 584 . 2914</span><br>
                    <span class="info"><a moz-do-not-send="true"
                        href="http://www.bkaarchs.com/">www.bkaarchitects.com</a></span>
                  </div>
                  On 9/15/2014 9:40 AM, Egoitz Aurrekoetxea wrote:<br>
                </div>
                <blockquote
                  cite="mid:3040F106-73B1-4FDE-8AE1-D62CFAF2973E@ramattack.net"
                  type="cite">
                  <meta http-equiv="Content-Type" content="text/html;
                    charset=utf-8">
                  That’s estrange the -r is recursive…. that should
                  work….
                  <div><br>
                  </div>
                  <div>Which Cyrus version are you running?</div>
                  <div><br>
                  </div>
                  <div><br>
                    <div>
                      <div>El 15/09/2014, a las 15:38, Tom Plancon &lt;<a
                          moz-do-not-send="true"
                          href="mailto:tplancon@bkaarchs.com">tplancon@bkaarchs.com</a>&gt;






                        escribió:</div>
                      <br class="Apple-interchange-newline">
                      <blockquote type="cite">
                        <div bgcolor="#FFFFFF" text="#000000"
                          style="font-family: 'Gill Sans MT', arial,
                          helvetica; font-size: 12px; font-style:
                          normal; font-variant: normal; font-weight:
                          normal; letter-spacing: normal; line-height:
                          normal; orphans: auto; text-align: start;
                          text-indent: 0px; text-transform: none;
                          white-space: normal; widows: auto;
                          word-spacing: 0px; -webkit-text-stroke-width:
                          0px;">
                          <div class="moz-cite-prefix">Hello,<br>
                            <br>
                            Thanks for the response.<span
                              class="Apple-converted-space"> </span><br>
                            When I run "reconstruct -rf mailbox" the
                            response is "usage: reconstruct [-r]
                            mailbox". I assume that means it doesn't
                            like the syntax.<br>
                            <br>
                            <div class="moz-signature"><span
                                class="name" style="font-size: 14px;
                                font-weight: bold; line-height: 1em;
                                color: rgb(42, 86, 164);">Thomas Plancon</span><br>
                              <span class="info" style="font-size: 14px;
                                line-height: 1em; color: rgb(42, 86,
                                164);">CAD/IT Manager</span><br>
                              <p class="address" style="width: 140px;
                                text-align: justify; font-size: 14px;
                                line-height: 1em; color: rgb(42, 86,
                                164);">B K A Architects, Inc.<br>
                                142 Crescent Street<br>
                                Brockton, MA 02302</p>
                              <span class="label" style="letter-spacing:
                                1px; font-size: 14px; line-height: 1em;
                                color: rgb(42, 86, 164);">tel:<span
                                  class="Apple-converted-space"> </span></span><span
                                class="cntct" style="word-spacing: 2px;
                                font-size: 14px; line-height: 1em;
                                color: rgb(42, 86, 164);">508 . 583 .
                                5603 ext 313</span><br>
                              <span class="cntct" style="word-spacing:
                                2px; font-size: 14px; line-height: 1em;
                                color: rgb(42, 86, 164);">fax: 508 . 584
                                . 2914</span><br>
                              <span class="info" style="font-size: 14px;
                                line-height: 1em; color: rgb(42, 86,
                                164);"><a moz-do-not-send="true"
                                  href="http://www.bkaarchs.com/">www.bkaarchitects.com</a></span></div>
                            On 9/15/2014 3:15 AM, Egoitz Aurrekoetxea
                            wrote:<br>
                          </div>
                          <blockquote
                            cite="mid:2F08A0B7-F107-4666-8659-2938279560B8@ramattack.net"
                            type="cite">Hi,
                            <div><br>
                            </div>
                            <div>try reconstruct -rf mailbox</div>
                            <div><br>
                            </div>
                            <div>Regards,</div>
                            <div><br>
                              <div>
                                <div>El 14/09/2014, a las 03:05, Tom
                                  Plancon &lt;<a moz-do-not-send="true"
                                    href="mailto:tplancon@bkaarchs.com">tplancon@bkaarchs.com</a>&gt;






                                  escribió:</div>
                                <br class="Apple-interchange-newline">
                                <blockquote type="cite">Hello,<br>
                                  <br>
                                  I have a user that deleted all mail
                                  from his Sent folder. I restored it
                                  from a rsync backup, ran "reconstruct
                                  user.name.Sent". the reconstruct
                                  finished instantly, and no emails from
                                  the restore can be seen in the user's
                                  mail agent, (thunderbird). I konow
                                  I've run into this before but can't
                                  remember the solution. Any help is
                                  greatly appreciated!<br>
                                  <br>
                                  Thanks!<br>
                                  Tom Plancon<br>
                                  <hr style="width: 1133px; border: 1px
                                    dotted silver;">
                                  <p><small><span style="color: rgb(0,
                                        0, 255);"><strong>Thomas Plancon</strong></span><span
                                        style="color: rgb(51, 102,
                                        255);"><br>
                                        CAD/IT Manager<br>
                                      </span></small></p>
                                  <small><span style="color: rgb(51,
                                      102, 255);">B K A  Architects,
                                      Inc.<br>
                                      142 Crescent Street<br>
                                      Brockton, MA 02302<br>
                                      <br>
                                      tel: 508 . 583 . 5603 ext 313<br>
                                      fax: 508 . 584 . 2914<br>
                                      <a moz-do-not-send="true"
                                        href="http://www.bkaarchitects.com/">www.bkaarchitects.com</a></span></small><br>
                                  ----<br>
                                  Cyrus Home Page:<span
                                    class="Apple-converted-space"> </span><a
                                    moz-do-not-send="true"
                                    href="http://www.cyrusimap.org/">http://www.cyrusimap.org/</a><br>
                                  List Archives/Info:<span
                                    class="Apple-converted-space"> </span><a
                                    moz-do-not-send="true"
                                    href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a><br>
                                  To Unsubscribe:<br>
                                  <a moz-do-not-send="true"
                                    href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a></blockquote>
                              </div>
                              <br>
                            </div>
                          </blockquote>
                          <br>
                        </div>
                        <br class="Apple-interchange-newline">
                      </blockquote>
                    </div>
                    <br>
                  </div>
                </blockquote>
                <br>
                <br>
                <fieldset class="mimeAttachmentHeader"></fieldset>
                <br>
                <pre wrap="">----
Cyrus Home Page: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.cyrusimap.org/">http://www.cyrusimap.org/</a>
List Archives/Info: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a>
To Unsubscribe:
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a></pre>
              </blockquote>
              <br>
              <pre class="moz-signature" cols="72">-- 
Nic Bernstein                             <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:nic@onlight.com">nic@onlight.com</a>
Onlight, Inc.                             <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.onlight.com">www.onlight.com</a>
219 N. Milwaukee St., Suite 2a            v. 414.272.4477
Milwaukee, Wisconsin  53202
</pre>
            </blockquote>
            <br>
          </blockquote>
          <br>
          <pre class="moz-signature" cols="72">-- 
Nic Bernstein                             <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:nic@onlight.com">nic@onlight.com</a>
Onlight, Inc.                             <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.onlight.com">www.onlight.com</a>
219 N. Milwaukee St., Suite 2a            v. 414.272.4477
Milwaukee, Wisconsin  53202
</pre>
        </blockquote>
        <br>
      </blockquote>
      <br>
      <pre class="moz-signature" cols="72">-- 
Nic Bernstein                             <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:nic@onlight.com">nic@onlight.com</a>
Onlight, Inc.                             <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.onlight.com">www.onlight.com</a>
219 N. Milwaukee St., Suite 2a            v. 414.272.4477
Milwaukee, Wisconsin  53202
</pre>
    </blockquote>
    <br>
  </body>
</html>