| 1 |
<!DOCTYPE html> |
| 2 |
<html class="writer-html5" lang="en" data-content_root="../../../../"> |
| 3 |
<head> |
| 4 |
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 5 |
|
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 7 |
<title>reconstruct — Cyrus IMAP 3.12.3 documentation</title> |
| 8 |
<link rel="stylesheet" type="text/css" href="../../../../_static/pygments.css?v=fa44fd50" /> |
| 9 |
<link rel="stylesheet" type="text/css" href="../../../../_static/css/theme.css?v=86f27845" /> |
| 10 |
<link rel="stylesheet" type="text/css" href="../../../../_static/graphviz.css?v=eafc0fe6" /> |
| 11 |
<link rel="stylesheet" href="../../../../_static/cyrus.css" type="text/css" /> |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
<script src="../../../../_static/jquery.js?v=8dae8fb0"></script> |
| 16 |
<script src="../../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script> |
| 17 |
<script src="../../../../_static/documentation_options.js?v=2c828074"></script> |
| 18 |
<script src="../../../../_static/doctools.js?v=888ff710"></script> |
| 19 |
<script src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script> |
| 20 |
<script src="../../../../_static/js/theme.js"></script> |
| 21 |
<link rel="index" title="Index" href="../../../../genindex.html" /> |
| 22 |
<link rel="search" title="Search" href="../../../../search.html" /> |
| 23 |
<link rel="next" title="rehash" href="rehash.html" /> |
| 24 |
<link rel="prev" title="quota" href="quota.html" /> |
| 25 |
</head> |
| 26 |
|
| 27 |
<body class="wy-body-for-nav"> |
| 28 |
<div class="wy-grid-for-nav"> |
| 29 |
<nav data-toggle="wy-nav-shift" class="wy-nav-side"> |
| 30 |
<div class="wy-side-scroll"> |
| 31 |
<div class="wy-side-nav-search" > |
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
<a href="../../../../index.html" class="icon icon-home"> |
| 36 |
Cyrus IMAP |
| 37 |
</a> |
| 38 |
<div class="version"> |
| 39 |
3.12.3 |
| 40 |
</div> |
| 41 |
<div role="search"> |
| 42 |
<form id="rtd-search-form" class="wy-form" action="../../../../search.html" method="get"> |
| 43 |
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" /> |
| 44 |
<input type="hidden" name="check_keywords" value="yes" /> |
| 45 |
<input type="hidden" name="area" value="default" /> |
| 46 |
</form> |
| 47 |
</div> |
| 48 |
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu"> |
| 49 |
<p class="caption" role="heading"><span class="caption-text">Cyrus IMAP</span></p> |
| 50 |
<ul class="current"> |
| 51 |
<li class="toctree-l1"><a class="reference internal" href="../../../../download.html">Download</a></li> |
| 52 |
<li class="toctree-l1"><a class="reference internal" href="../../../../quickstart.html">Quickstart Guide</a></li> |
| 53 |
<li class="toctree-l1"><a class="reference internal" href="../../../../overview.html">Overview</a></li> |
| 54 |
<li class="toctree-l1"><a class="reference internal" href="../../../../setup.html">Setup</a></li> |
| 55 |
<li class="toctree-l1 current"><a class="reference internal" href="../../../../operations.html">Operations</a><ul class="current"> |
| 56 |
<li class="toctree-l2 current"><a class="reference internal" href="../index.html">Man pages</a><ul class="current"> |
| 57 |
<li class="toctree-l3"><a class="reference internal" href="../index.html#configuration-files">(5) Configuration Files</a></li> |
| 58 |
<li class="toctree-l3 current"><a class="reference internal" href="../index.html#system-commands">(8) System Commands</a><ul class="current"> |
| 59 |
<li class="toctree-l4"><a class="reference internal" href="arbitron.html"><strong>arbitron</strong></a></li> |
| 60 |
<li class="toctree-l4"><a class="reference internal" href="calalarmd.html"><strong>calalarmd</strong></a></li> |
| 61 |
<li class="toctree-l4"><a class="reference internal" href="chk_cyrus.html"><strong>chk_cyrus</strong></a></li> |
| 62 |
<li class="toctree-l4"><a class="reference internal" href="ctl_conversationsdb.html"><strong>ctl_conversationsdb</strong></a></li> |
| 63 |
<li class="toctree-l4"><a class="reference internal" href="ctl_cyrusdb.html"><strong>ctl_cyrusdb</strong></a></li> |
| 64 |
<li class="toctree-l4"><a class="reference internal" href="ctl_deliver.html"><strong>ctl_deliver</strong></a></li> |
| 65 |
<li class="toctree-l4"><a class="reference internal" href="ctl_mboxlist.html"><strong>ctl_mboxlist</strong></a></li> |
| 66 |
<li class="toctree-l4"><a class="reference internal" href="ctl_zoneinfo.html"><strong>ctl_zoneinfo</strong></a></li> |
| 67 |
<li class="toctree-l4"><a class="reference internal" href="cvt_cyrusdb.html"><strong>cvt_cyrusdb</strong></a></li> |
| 68 |
<li class="toctree-l4"><a class="reference internal" href="cvt_xlist_specialuse.html"><strong>cvt_xlist_specialuse</strong></a></li> |
| 69 |
<li class="toctree-l4"><a class="reference internal" href="cyr_buildinfo.html"><strong>cyr_buildinfo</strong></a></li> |
| 70 |
<li class="toctree-l4"><a class="reference internal" href="cyr_dbtool.html"><strong>cyr_dbtool</strong></a></li> |
| 71 |
<li class="toctree-l4"><a class="reference internal" href="cyr_deny.html"><strong>cyr_deny</strong></a></li> |
| 72 |
<li class="toctree-l4"><a class="reference internal" href="cyr_df.html"><strong>cyr_df</strong></a></li> |
| 73 |
<li class="toctree-l4"><a class="reference internal" href="cyr_expire.html"><strong>cyr_expire</strong></a></li> |
| 74 |
<li class="toctree-l4"><a class="reference internal" href="cyr_info.html"><strong>cyr_info</strong></a></li> |
| 75 |
<li class="toctree-l4"><a class="reference internal" href="cyr_ls.html"><strong>cyr_ls</strong></a></li> |
| 76 |
<li class="toctree-l4"><a class="reference internal" href="cyr_synclog.html"><strong>cyr_synclog</strong></a></li> |
| 77 |
<li class="toctree-l4"><a class="reference internal" href="cyr_userseen.html"><strong>cyr_userseen</strong></a></li> |
| 78 |
<li class="toctree-l4"><a class="reference internal" href="cyr_virusscan.html"><strong>cyr_virusscan</strong></a></li> |
| 79 |
<li class="toctree-l4"><a class="reference internal" href="cyr_withlock_run.html"><strong>cyr_withlock_run</strong></a></li> |
| 80 |
<li class="toctree-l4"><a class="reference internal" href="cyradm.html"><strong>cyradm</strong></a></li> |
| 81 |
<li class="toctree-l4"><a class="reference internal" href="cyrdump.html"><strong>cyrdump</strong></a></li> |
| 82 |
<li class="toctree-l4"><a class="reference internal" href="deliver.html"><strong>deliver</strong></a></li> |
| 83 |
<li class="toctree-l4"><a class="reference internal" href="fetchnews.html"><strong>fetchnews</strong></a></li> |
| 84 |
<li class="toctree-l4"><a class="reference internal" href="fud.html"><strong>fud</strong></a></li> |
| 85 |
<li class="toctree-l4"><a class="reference internal" href="httpd.html"><strong>httpd</strong></a></li> |
| 86 |
<li class="toctree-l4"><a class="reference internal" href="idled.html"><strong>idled</strong></a></li> |
| 87 |
<li class="toctree-l4"><a class="reference internal" href="imapd.html"><strong>imapd</strong></a></li> |
| 88 |
<li class="toctree-l4"><a class="reference internal" href="ipurge.html"><strong>ipurge</strong></a></li> |
| 89 |
<li class="toctree-l4"><a class="reference internal" href="lmtpd.html"><strong>lmtpd</strong></a></li> |
| 90 |
<li class="toctree-l4"><a class="reference internal" href="lmtpproxyd.html"><strong>lmtpproxyd</strong></a></li> |
| 91 |
<li class="toctree-l4"><a class="reference internal" href="masssievec.html"><strong>masssievec</strong></a></li> |
| 92 |
<li class="toctree-l4"><a class="reference internal" href="master.html"><strong>master</strong></a></li> |
| 93 |
<li class="toctree-l4"><a class="reference internal" href="mbexamine.html"><strong>mbexamine</strong></a></li> |
| 94 |
<li class="toctree-l4"><a class="reference internal" href="mbpath.html"><strong>mbpath</strong></a></li> |
| 95 |
<li class="toctree-l4"><a class="reference internal" href="mbtool.html"><strong>mbtool</strong></a></li> |
| 96 |
<li class="toctree-l4"><a class="reference internal" href="mkimap.html"><strong>mkimap</strong></a></li> |
| 97 |
<li class="toctree-l4"><a class="reference internal" href="mknewsgroups.html"><strong>mknewsgroups</strong></a></li> |
| 98 |
<li class="toctree-l4"><a class="reference internal" href="mupdate.html"><strong>mupdate</strong></a></li> |
| 99 |
<li class="toctree-l4"><a class="reference internal" href="nntpd.html"><strong>nntpd</strong></a></li> |
| 100 |
<li class="toctree-l4"><a class="reference internal" href="notifyd.html"><strong>notifyd</strong></a></li> |
| 101 |
<li class="toctree-l4"><a class="reference internal" href="pop3d.html"><strong>pop3d</strong></a></li> |
| 102 |
<li class="toctree-l4"><a class="reference internal" href="pop3proxyd.html"><strong>pop3proxyd</strong></a></li> |
| 103 |
<li class="toctree-l4"><a class="reference internal" href="promstatsd.html"><strong>promstatsd</strong></a></li> |
| 104 |
<li class="toctree-l4"><a class="reference internal" href="proxyd.html"><strong>proxyd</strong></a></li> |
| 105 |
<li class="toctree-l4"><a class="reference internal" href="ptdump.html"><strong>ptdump</strong></a></li> |
| 106 |
<li class="toctree-l4"><a class="reference internal" href="ptexpire.html"><strong>ptexpire</strong></a></li> |
| 107 |
<li class="toctree-l4"><a class="reference internal" href="ptloader.html"><strong>ptloader</strong></a></li> |
| 108 |
<li class="toctree-l4"><a class="reference internal" href="quota.html"><strong>quota</strong></a></li> |
| 109 |
<li class="toctree-l4 current"><a class="current reference internal" href="#"><strong>reconstruct</strong></a></li> |
| 110 |
<li class="toctree-l4"><a class="reference internal" href="rehash.html"><strong>rehash</strong></a></li> |
| 111 |
<li class="toctree-l4"><a class="reference internal" href="relocate_by_id.html"><strong>relocate_by_id</strong></a></li> |
| 112 |
<li class="toctree-l4"><a class="reference internal" href="sievec.html"><strong>sievec</strong></a></li> |
| 113 |
<li class="toctree-l4"><a class="reference internal" href="sieved.html"><strong>sieved</strong></a></li> |
| 114 |
<li class="toctree-l4"><a class="reference internal" href="smmapd.html"><strong>smmapd</strong></a></li> |
| 115 |
<li class="toctree-l4"><a class="reference internal" href="squatter.html"><strong>squatter</strong></a></li> |
| 116 |
<li class="toctree-l4"><a class="reference internal" href="sync_client.html"><strong>sync_client</strong></a></li> |
| 117 |
<li class="toctree-l4"><a class="reference internal" href="sync_reset.html"><strong>sync_reset</strong></a></li> |
| 118 |
<li class="toctree-l4"><a class="reference internal" href="sync_server.html"><strong>sync_server</strong></a></li> |
| 119 |
<li class="toctree-l4"><a class="reference internal" href="timsieved.html"><strong>timsieved</strong></a></li> |
| 120 |
<li class="toctree-l4"><a class="reference internal" href="tls_prune.html"><strong>tls_prune</strong></a></li> |
| 121 |
<li class="toctree-l4"><a class="reference internal" href="translatesieve.html"><strong>translatesieve</strong></a></li> |
| 122 |
<li class="toctree-l4"><a class="reference internal" href="unexpunge.html"><strong>unexpunge</strong></a></li> |
| 123 |
</ul> |
| 124 |
</li> |
| 125 |
<li class="toctree-l3"><a class="reference internal" href="../index.html#user-commands">(1) User Commands</a></li> |
| 126 |
</ul> |
| 127 |
</li> |
| 128 |
<li class="toctree-l2"><a class="reference internal" href="../../admin.html">Administrator Guide</a></li> |
| 129 |
<li class="toctree-l2"><a class="reference internal" href="../../faq.html">Frequently Asked Questions</a></li> |
| 130 |
</ul> |
| 131 |
</li> |
| 132 |
<li class="toctree-l1"><a class="reference internal" href="../../../../developers.html">Developers</a></li> |
| 133 |
<li class="toctree-l1"><a class="reference internal" href="../../../../support.html">Support/Community</a></li> |
| 134 |
</ul> |
| 135 |
<p class="caption" role="heading"><span class="caption-text">Cyrus SASL</span></p> |
| 136 |
<ul> |
| 137 |
<li class="toctree-l1"><a class="reference external" href="http://www.cyrusimap.org/sasl">Cyrus SASL</a></li> |
| 138 |
</ul> |
| 139 |
|
| 140 |
</div> |
| 141 |
</div> |
| 142 |
</nav> |
| 143 |
|
| 144 |
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" > |
| 145 |
<i data-toggle="wy-nav-top" class="fa fa-bars"></i> |
| 146 |
<a href="../../../../index.html">Cyrus IMAP</a> |
| 147 |
</nav> |
| 148 |
|
| 149 |
<div class="wy-nav-content"> |
| 150 |
<div class="rst-content"> |
| 151 |
<div role="navigation" aria-label="Page navigation"> |
| 152 |
<ul class="wy-breadcrumbs"> |
| 153 |
<li><a href="../../../../index.html" class="icon icon-home" aria-label="Home"></a></li> |
| 154 |
<li class="breadcrumb-item"><a href="../../../../operations.html">Operations</a></li> |
| 155 |
<li class="breadcrumb-item"><a href="../index.html">Man pages</a></li> |
| 156 |
<li class="breadcrumb-item active"><strong>reconstruct</strong></li> |
| 157 |
<li class="wy-breadcrumbs-aside"> |
| 158 |
<a href="https://github.com/cyrusimap/cyrus-imapd/blob/master/docsrc/imap/reference/manpages/systemcommands/reconstruct.rst" class="fa fa-github"> Edit on GitHub</a> |
| 159 |
</li> |
| 160 |
</ul> |
| 161 |
<hr/> |
| 162 |
</div> |
| 163 |
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> |
| 164 |
<div itemprop="articleBody"> |
| 165 |
|
| 166 |
<span class="target" id="std-cyrusman-reconstruct-8"></span><section id="reconstruct"> |
| 167 |
<span id="imap-reference-manpages-systemcommands-reconstruct"></span><h1><strong>reconstruct</strong><a class="headerlink" href="#reconstruct" title="Link to this heading"></a></h1> |
| 168 |
<p>Reconstruct mailboxes</p> |
| 169 |
<section id="synopsis"> |
| 170 |
<h2>Synopsis<a class="headerlink" href="#synopsis" title="Link to this heading"></a></h2> |
| 171 |
<pre class="literal-block"><strong>reconstruct</strong> [ <strong>-C</strong> <em>config-file</em> ] [ <strong>-p</strong> <em>partition</em> ] [ <strong>-x</strong> ] [ <strong>-r</strong> ] |
| 172 |
[ <strong>-f</strong> ] [ <strong>-U</strong> ] [ <strong>-s</strong> ] [ <strong>-q</strong> ] [ <strong>-G</strong> ] [ <strong>-R</strong> ] [ <strong>-o</strong> ] |
| 173 |
[ <strong>-O</strong> ] [ <strong>-M</strong> ] <em>mailbox</em>... |
| 174 |
|
| 175 |
<strong>reconstruct</strong> [ <strong>-C</strong> <em>config-file</em> ] [ <strong>-p</strong> <em>partition</em> ] [ <strong>-x</strong> ] [ <strong>-r</strong> ] |
| 176 |
[ <strong>-f</strong> ] [ <strong>-U</strong> ] [ <strong>-s</strong> ] [ <strong>-q</strong> ] [ <strong>-G</strong> ] [ <strong>-R</strong> ] [ <strong>-o</strong> ] |
| 177 |
[ <strong>-O</strong> ] [ <strong>-M</strong> ] <strong>-u</strong> <em>user</em>... |
| 178 |
|
| 179 |
<strong>reconstruct</strong> [ <strong>-C</strong> <em>config-file</em> ] [ <strong>-p</strong> <em>partition</em> ] [ <strong>-r</strong> ] |
| 180 |
[ <strong>-q</strong> ] <strong>-V</strong> <em>version</em> <em>mailbox</em>... |
| 181 |
|
| 182 |
<strong>reconstruct</strong> [ <strong>-C</strong> <em>config-file</em> ] [ <strong>-p</strong> <em>partition</em> ] [ <strong>-r</strong> ] |
| 183 |
[ <strong>-q</strong> ] <strong>-V</strong> <em>version</em> <strong>-u</strong> <em>user</em>... |
| 184 |
|
| 185 |
<strong>reconstruct</strong> [ <strong>-C</strong> <em>config-file</em> ] <strong>-P</strong> <em>cyrus-header-paths</em>...</pre> |
| 186 |
</section> |
| 187 |
<section id="description"> |
| 188 |
<h2>Description<a class="headerlink" href="#description" title="Link to this heading"></a></h2> |
| 189 |
<p><strong>reconstruct</strong> rebuilds one or more IMAP mailboxes. It can be |
| 190 |
used to recover from almost any sort of data corruption.</p> |
| 191 |
<p>If <strong>reconstruct</strong> can find existing header and index files, it |
| 192 |
attempts to preserve any data in them that is not derivable from the |
| 193 |
message files themselves. The state <strong>reconstruct</strong> attempts to |
| 194 |
preserve includes the flag names, flag state, and internaldate.</p> |
| 195 |
<p><strong>reconstruct</strong> derives all other information from the message files.</p> |
| 196 |
<p><strong>reconstruct</strong> reads its configuration options out of the <a class="reference internal" href="../configs/imapd.conf.html#std-cyrusman-imapd.conf-5">imapd.conf(5)</a> file unless specified otherwise by <strong>-C</strong>. Any mailbox directory underneath |
| 197 |
the path specified in the <code class="docutils literal notranslate"><span class="pre">partition-news</span></code> configuration option is |
| 198 |
assumed to be in news format.</p> |
| 199 |
<p><strong>reconstruct</strong> does not adjust the quota usage recorded in any quota |
| 200 |
root files. After running <strong>reconstruct</strong>, it is advisable to run |
| 201 |
<em class="manpage">quota(8)</em> with the <strong>-f</strong> switch in order to fix the quota |
| 202 |
root files.</p> |
| 203 |
<p>When upgrading versions of Cyrus software, it may be necessary to run |
| 204 |
<strong>reconstruct</strong> with the <strong>-V</strong> option, to rebuild indexes to a |
| 205 |
given version (or <em>max</em> for the most recent). Note that the <strong>-V</strong> |
| 206 |
option cannot be combined with most other reconstruct options. If |
| 207 |
a mailbox needs reconstructing you should do that first, and then |
| 208 |
upgrade it with <strong>-V</strong> once it's good.</p> |
| 209 |
</section> |
| 210 |
<section id="options"> |
| 211 |
<h2>Options<a class="headerlink" href="#options" title="Link to this heading"></a></h2> |
| 212 |
<dl class="std option"> |
| 213 |
<dt class="sig sig-object std" id="cmdoption-reconstruct-C"> |
| 214 |
<span class="sig-name descname"><span class="pre">-C</span></span><span class="sig-prename descclassname"> <span class="pre">config-file</span></span><a class="headerlink" href="#cmdoption-reconstruct-C" title="Link to this definition"></a></dt> |
| 215 |
<dd><p>Use the specified configuration file <em>config-file</em> rather than the default <a class="reference internal" href="../configs/imapd.conf.html#std-cyrusman-imapd.conf-5">imapd.conf(5)</a>.</p> |
| 216 |
</dd></dl> |
| 217 |
|
| 218 |
<dl class="std option"> |
| 219 |
<dt class="sig sig-object std" id="cmdoption-reconstruct-p"> |
| 220 |
<span id="cmdoption-reconstruct-partition"></span><span class="sig-name descname"><span class="pre">-p</span></span><span class="sig-prename descclassname"> <span class="pre">partition</span></span><span class="sig-prename descclassname"><span class="pre">,</span> </span><span class="sig-name descname"><span class="pre">--partition</span></span><span class="sig-prename descclassname"><span class="pre">=partition</span></span><a class="headerlink" href="#cmdoption-reconstruct-p" title="Link to this definition"></a></dt> |
| 221 |
<dd><p>Search for the listed (non-existant) mailboxes on the indicated |
| 222 |
<em>partition</em>. Create the mailboxes in the database in addition to |
| 223 |
reconstructing them. (not compatible with the use of wildcards)</p> |
| 224 |
</dd></dl> |
| 225 |
|
| 226 |
<dl class="std option"> |
| 227 |
<dt class="sig sig-object std" id="cmdoption-reconstruct-x"> |
| 228 |
<span id="cmdoption-reconstruct-ignore-disk-metadata"></span><span class="sig-name descname"><span class="pre">-x</span></span><span class="sig-prename descclassname"></span><span class="sig-prename descclassname"><span class="pre">,</span> </span><span class="sig-name descname"><span class="pre">--ignore-disk-metadata</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-reconstruct-x" title="Link to this definition"></a></dt> |
| 229 |
<dd><p>When processing a mailbox which is not in the mailbox list (e.g. |
| 230 |
via the <strong>-p</strong> or <strong>-f</strong> options), do not import the metadata from |
| 231 |
the mailbox, instead create it anew (this specifically affects at |
| 232 |
least the mailbox's seen state unique identifier, user flags, and |
| 233 |
ACL).</p> |
| 234 |
</dd></dl> |
| 235 |
|
| 236 |
<dl class="std option"> |
| 237 |
<dt class="sig sig-object std" id="cmdoption-reconstruct-r"> |
| 238 |
<span id="cmdoption-reconstruct-recursive"></span><span class="sig-name descname"><span class="pre">-r</span></span><span class="sig-prename descclassname"></span><span class="sig-prename descclassname"><span class="pre">,</span> </span><span class="sig-name descname"><span class="pre">--recursive</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-reconstruct-r" title="Link to this definition"></a></dt> |
| 239 |
<dd><p>Recursively reconstruct all sub-mailboxes of the mailboxes or |
| 240 |
mailbox prefixes given as arguments.</p> |
| 241 |
</dd></dl> |
| 242 |
|
| 243 |
<dl class="std option"> |
| 244 |
<dt class="sig sig-object std" id="cmdoption-reconstruct-f"> |
| 245 |
<span id="cmdoption-reconstruct-scan-filesystem"></span><span class="sig-name descname"><span class="pre">-f</span></span><span class="sig-prename descclassname"></span><span class="sig-prename descclassname"><span class="pre">,</span> </span><span class="sig-name descname"><span class="pre">--scan-filesystem</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-reconstruct-f" title="Link to this definition"></a></dt> |
| 246 |
<dd><p>Examine the filesystem underneath mailbox, adding all directories |
| 247 |
with a <code class="docutils literal notranslate"><span class="pre">cyrus.header</span></code> found there as new mailboxes. Useful for |
| 248 |
restoring mailboxes from backups.</p> |
| 249 |
</dd></dl> |
| 250 |
|
| 251 |
<dl class="std option"> |
| 252 |
<dt class="sig sig-object std" id="cmdoption-reconstruct-s"> |
| 253 |
<span id="cmdoption-reconstruct-no-stat"></span><span class="sig-name descname"><span class="pre">-s</span></span><span class="sig-prename descclassname"></span><span class="sig-prename descclassname"><span class="pre">,</span> </span><span class="sig-name descname"><span class="pre">--no-stat</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-reconstruct-s" title="Link to this definition"></a></dt> |
| 254 |
<dd><p>Don't stat underlying files. This makes reconstruct run faster, at |
| 255 |
the expense of not noticing some issues (like zero byte files or |
| 256 |
size mismatches). "<strong>reconstruct -s</strong>" should be quite fast.</p> |
| 257 |
</dd></dl> |
| 258 |
|
| 259 |
<dl class="std option"> |
| 260 |
<dt class="sig sig-object std" id="cmdoption-reconstruct-q"> |
| 261 |
<span id="cmdoption-reconstruct-quiet"></span><span class="sig-name descname"><span class="pre">-q</span></span><span class="sig-prename descclassname"></span><span class="sig-prename descclassname"><span class="pre">,</span> </span><span class="sig-name descname"><span class="pre">--quiet</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-reconstruct-q" title="Link to this definition"></a></dt> |
| 262 |
<dd><p>Emit less verbose information to syslog.</p> |
| 263 |
</dd></dl> |
| 264 |
|
| 265 |
<dl class="std option"> |
| 266 |
<dt class="sig sig-object std" id="cmdoption-reconstruct-n"> |
| 267 |
<span id="cmdoption-reconstruct-dry-run"></span><span class="sig-name descname"><span class="pre">-n</span></span><span class="sig-prename descclassname"></span><span class="sig-prename descclassname"><span class="pre">,</span> </span><span class="sig-name descname"><span class="pre">--dry-run</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-reconstruct-n" title="Link to this definition"></a></dt> |
| 268 |
<dd><p>Don't make any changes. Problems are reported, but not fixed.</p> |
| 269 |
</dd></dl> |
| 270 |
|
| 271 |
<dl class="std option"> |
| 272 |
<dt class="sig sig-object std" id="cmdoption-reconstruct-G"> |
| 273 |
<span id="cmdoption-reconstruct-force-reparse"></span><span class="sig-name descname"><span class="pre">-G</span></span><span class="sig-prename descclassname"></span><span class="sig-prename descclassname"><span class="pre">,</span> </span><span class="sig-name descname"><span class="pre">--force-reparse</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-reconstruct-G" title="Link to this definition"></a></dt> |
| 274 |
<dd><p>Force re-parsing of the underlying message (checks GUID |
| 275 |
correctness). Reconstruct with -G should fix all possible |
| 276 |
individual message issues, including corrupted data files.</p> |
| 277 |
</dd></dl> |
| 278 |
|
| 279 |
<dl class="std option"> |
| 280 |
<dt class="sig sig-object std" id="cmdoption-reconstruct-I"> |
| 281 |
<span id="cmdoption-reconstruct-update-uniqueids"></span><span class="sig-name descname"><span class="pre">-I</span></span><span class="sig-prename descclassname"></span><span class="sig-prename descclassname"><span class="pre">,</span> </span><span class="sig-name descname"><span class="pre">--update-uniqueids</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-reconstruct-I" title="Link to this definition"></a></dt> |
| 282 |
<dd><p>If two mailboxes exist with the same UNIQUEID and reconstruct visits |
| 283 |
both of them, -I will cause the second mailbox to have a new UNIQUEID |
| 284 |
created for it. If you don't specify -I, you will just get a syslog |
| 285 |
entry telling you of the clash.</p> |
| 286 |
</dd></dl> |
| 287 |
|
| 288 |
<dl class="std option"> |
| 289 |
<dt class="sig sig-object std" id="cmdoption-reconstruct-R"> |
| 290 |
<span id="cmdoption-reconstruct-guid-mismatch-keep"></span><span class="sig-name descname"><span class="pre">-R</span></span><span class="sig-prename descclassname"></span><span class="sig-prename descclassname"><span class="pre">,</span> </span><span class="sig-name descname"><span class="pre">--guid-mismatch-keep</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-reconstruct-R" title="Link to this definition"></a></dt> |
| 291 |
<dd><p>Perform a UID upgrade operation on GUID mismatch files. Use this |
| 292 |
option if you think your index is corrupted rather than your |
| 293 |
message files, or if all backup attempts have failed and you're |
| 294 |
happy to be served the missing files.</p> |
| 295 |
</dd></dl> |
| 296 |
|
| 297 |
<dl class="std option"> |
| 298 |
<dt class="sig sig-object std" id="cmdoption-reconstruct-U"> |
| 299 |
<span id="cmdoption-reconstruct-guid-mismatch-discard"></span><span class="sig-name descname"><span class="pre">-U</span></span><span class="sig-prename descclassname"></span><span class="sig-prename descclassname"><span class="pre">,</span> </span><span class="sig-name descname"><span class="pre">--guid-mismatch-discard</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-reconstruct-U" title="Link to this definition"></a></dt> |
| 300 |
<dd><p>Use this option if you have corrupt message files in your spool and |
| 301 |
have been unable to restore them from backup. This will make the |
| 302 |
mailbox IOERROR free and fix replication.</p> |
| 303 |
<p>WARNING: |
| 304 |
this deletes corrupt message files for ever - so make sure you've |
| 305 |
exhausted other options first!</p> |
| 306 |
</dd></dl> |
| 307 |
|
| 308 |
<dl class="std option"> |
| 309 |
<dt class="sig sig-object std" id="cmdoption-reconstruct-o"> |
| 310 |
<span id="cmdoption-reconstruct-ignore-odd-files"></span><span class="sig-name descname"><span class="pre">-o</span></span><span class="sig-prename descclassname"></span><span class="sig-prename descclassname"><span class="pre">,</span> </span><span class="sig-name descname"><span class="pre">--ignore-odd-files</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-reconstruct-o" title="Link to this definition"></a></dt> |
| 311 |
<dd><p>Ignore odd files in your mailbox disk directories, instead of |
| 312 |
complaining about them. Probably useful if you are using some |
| 313 |
tool which adds additional tracking files.</p> |
| 314 |
</dd></dl> |
| 315 |
|
| 316 |
<dl class="std option"> |
| 317 |
<dt class="sig sig-object std" id="cmdoption-reconstruct-O"> |
| 318 |
<span id="cmdoption-reconstruct-delete-odd-files"></span><span class="sig-name descname"><span class="pre">-O</span></span><span class="sig-prename descclassname"></span><span class="sig-prename descclassname"><span class="pre">,</span> </span><span class="sig-name descname"><span class="pre">--delete-odd-files</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-reconstruct-O" title="Link to this definition"></a></dt> |
| 319 |
<dd><p>Delete odd files. This is the opposite of <strong>-o</strong>.</p> |
| 320 |
</dd></dl> |
| 321 |
|
| 322 |
<dl class="std option"> |
| 323 |
<dt class="sig sig-object std" id="cmdoption-reconstruct-M"> |
| 324 |
<span id="cmdoption-reconstruct-prefer-mboxlist"></span><span class="sig-name descname"><span class="pre">-M</span></span><span class="sig-prename descclassname"></span><span class="sig-prename descclassname"><span class="pre">,</span> </span><span class="sig-name descname"><span class="pre">--prefer-mboxlist</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-reconstruct-M" title="Link to this definition"></a></dt> |
| 325 |
<dd><p>Prefer mailboxes.db over cyrus.header - will rewrite ACL or |
| 326 |
uniqueid from the mailboxes.db into the header file rather than the |
| 327 |
other way around. This feature was introduced in version 3.0.</p> |
| 328 |
</dd></dl> |
| 329 |
|
| 330 |
<dl class="std option"> |
| 331 |
<dt class="sig sig-object std" id="cmdoption-reconstruct-V"> |
| 332 |
<span id="cmdoption-reconstruct-set-version"></span><span class="sig-name descname"><span class="pre">-V</span></span><span class="sig-prename descclassname"> <span class="pre">version</span></span><span class="sig-prename descclassname"><span class="pre">,</span> </span><span class="sig-name descname"><span class="pre">--set-version</span></span><span class="sig-prename descclassname"><span class="pre">=version</span></span><a class="headerlink" href="#cmdoption-reconstruct-V" title="Link to this definition"></a></dt> |
| 333 |
<dd><p>Change the <code class="docutils literal notranslate"><span class="pre">cyrus.index</span></code> minor version to a specific <em>version</em>. |
| 334 |
This can be useful for upgrades or downgrades. Use a magical |
| 335 |
version of <em>max</em> to upgrade to the latest available database format |
| 336 |
version.</p> |
| 337 |
</dd></dl> |
| 338 |
|
| 339 |
<dl class="std option"> |
| 340 |
<dt class="sig sig-object std" id="cmdoption-reconstruct-u"> |
| 341 |
<span id="cmdoption-reconstruct-userids"></span><span class="sig-name descname"><span class="pre">-u</span></span><span class="sig-prename descclassname"></span><span class="sig-prename descclassname"><span class="pre">,</span> </span><span class="sig-name descname"><span class="pre">--userids</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-reconstruct-u" title="Link to this definition"></a></dt> |
| 342 |
<dd><p>Instead of mailbox prefixes, give userids on the command line</p> |
| 343 |
</dd></dl> |
| 344 |
|
| 345 |
<dl class="std option"> |
| 346 |
<dt class="sig sig-object std" id="cmdoption-reconstruct-P"> |
| 347 |
<span id="cmdoption-reconstruct-header-paths"></span><span class="sig-name descname"><span class="pre">-P</span></span><span class="sig-prename descclassname"></span><span class="sig-prename descclassname"><span class="pre">,</span> </span><span class="sig-name descname"><span class="pre">--header-paths</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-reconstruct-P" title="Link to this definition"></a></dt> |
| 348 |
<dd><p>Instead of mailbox prefixes, give paths to cyrus.header files on |
| 349 |
the command line. The paths can be mailbox directories, or |
| 350 |
explicit cyrus.header filenames. |
| 351 |
This will ONLY create/repair mailboxes.db records using data in |
| 352 |
cyrus.header and cyrus.index.</p> |
| 353 |
</dd></dl> |
| 354 |
|
| 355 |
</section> |
| 356 |
<section id="examples"> |
| 357 |
<h2>Examples<a class="headerlink" href="#examples" title="Link to this heading"></a></h2> |
| 358 |
<pre class="literal-block"><strong>reconstruct -r -f</strong> <em>tech.support</em></pre> |
| 359 |
<blockquote> |
| 360 |
<div><p>Recursively reconstruct all mailboxes within the <em>tech.support</em> |
| 361 |
hierarchy, restoring any directories containing <code class="docutils literal notranslate"><span class="pre">cyrus.header</span></code> |
| 362 |
files.</p> |
| 363 |
</div></blockquote> |
| 364 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">tech</span><span class="o">.</span><span class="n">support</span> <span class="n">uid</span> <span class="mi">9634</span> <span class="n">rediscovered</span> <span class="o">-</span> <span class="n">appending</span> |
| 365 |
<span class="n">tech</span><span class="o">.</span><span class="n">support</span> <span class="n">uid</span> <span class="mi">9635</span> <span class="n">rediscovered</span> <span class="o">-</span> <span class="n">appending</span> |
| 366 |
<span class="n">tech</span><span class="o">.</span><span class="n">support</span> <span class="n">uid</span> <span class="mi">9642</span> <span class="n">rediscovered</span> <span class="o">-</span> <span class="n">appending</span> |
| 367 |
<span class="n">tech</span><span class="o">.</span><span class="n">support</span> |
| 368 |
<span class="n">tech</span><span class="o">.</span><span class="n">support</span><span class="o">.</span><span class="n">Archive</span> |
| 369 |
<span class="n">tech</span><span class="o">.</span><span class="n">support</span><span class="o">.</span><span class="n">Spam</span> |
| 370 |
</pre></div> |
| 371 |
</div> |
| 372 |
<pre class="literal-block"><strong>reconstruct -r -f</strong> <em>tech.support.Archive.2%</em></pre> |
| 373 |
<blockquote> |
| 374 |
<div><p>Recursively reconstruct all mailboxes within the |
| 375 |
<em>tech.support.Archive</em> hierarchy with names beginning with '2', |
| 376 |
restoring any directories containing <code class="docutils literal notranslate"><span class="pre">cyrus.header</span></code> |
| 377 |
files.</p> |
| 378 |
</div></blockquote> |
| 379 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">tech</span><span class="o">.</span><span class="n">support</span><span class="o">.</span><span class="n">Archive</span><span class="mf">.2001</span> |
| 380 |
<span class="n">tech</span><span class="o">.</span><span class="n">support</span><span class="o">.</span><span class="n">Archive</span><span class="mf">.2002</span> |
| 381 |
<span class="n">tech</span><span class="o">.</span><span class="n">support</span><span class="o">.</span><span class="n">Archive</span><span class="mf">.2003</span> |
| 382 |
<span class="n">tech</span><span class="o">.</span><span class="n">support</span><span class="o">.</span><span class="n">Archive</span><span class="mf">.2004</span> |
| 383 |
<span class="n">tech</span><span class="o">.</span><span class="n">support</span><span class="o">.</span><span class="n">Archive</span><span class="mf">.2005</span> |
| 384 |
<span class="n">tech</span><span class="o">.</span><span class="n">support</span><span class="o">.</span><span class="n">Archive</span><span class="mf">.2006</span> |
| 385 |
<span class="n">tech</span><span class="o">.</span><span class="n">support</span><span class="o">.</span><span class="n">Archive</span><span class="mf">.2007</span> |
| 386 |
<span class="n">tech</span><span class="o">.</span><span class="n">support</span><span class="o">.</span><span class="n">Archive</span><span class="mf">.2008</span> |
| 387 |
<span class="n">tech</span><span class="o">.</span><span class="n">support</span><span class="o">.</span><span class="n">Archive</span><span class="mf">.2009</span> |
| 388 |
<span class="n">tech</span><span class="o">.</span><span class="n">support</span><span class="o">.</span><span class="n">Archive</span><span class="mf">.2010</span> |
| 389 |
<span class="n">tech</span><span class="o">.</span><span class="n">support</span><span class="o">.</span><span class="n">Archive</span><span class="mf">.2011</span> |
| 390 |
<span class="n">tech</span><span class="o">.</span><span class="n">support</span><span class="o">.</span><span class="n">Archive</span><span class="mf">.2012</span> |
| 391 |
<span class="n">tech</span><span class="o">.</span><span class="n">support</span><span class="o">.</span><span class="n">Archive</span><span class="mf">.2013</span> |
| 392 |
</pre></div> |
| 393 |
</div> |
| 394 |
<pre class="literal-block"><strong>reconstruct -r -f -u</strong> <em>jsmith</em></pre> |
| 395 |
<blockquote> |
| 396 |
<div><p>Recursively reconstruct all mailboxes belonging to <em>jsmith</em>, |
| 397 |
restoring any directories containing <code class="docutils literal notranslate"><span class="pre">cyrus.header</span></code> files.</p> |
| 398 |
</div></blockquote> |
| 399 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">user</span><span class="o">.</span><span class="n">jsmith</span> |
| 400 |
<span class="n">user</span><span class="o">.</span><span class="n">jsmith</span><span class="o">.</span><span class="n">Archive</span> |
| 401 |
<span class="n">user</span><span class="o">.</span><span class="n">jsmith</span><span class="o">.</span><span class="n">Drafts</span> |
| 402 |
<span class="n">user</span><span class="o">.</span><span class="n">jsmith</span><span class="o">.</span><span class="n">Lists</span> |
| 403 |
<span class="n">user</span><span class="o">.</span><span class="n">jsmith</span><span class="o">.</span><span class="n">Outbox</span> |
| 404 |
<span class="n">user</span><span class="o">.</span><span class="n">jsmith</span><span class="o">.</span><span class="n">Sent</span> |
| 405 |
<span class="n">user</span><span class="o">.</span><span class="n">jsmith</span><span class="o">.</span><span class="n">Spam</span> |
| 406 |
<span class="n">user</span><span class="o">.</span><span class="n">jsmith</span><span class="o">.</span><span class="n">Trash</span> |
| 407 |
</pre></div> |
| 408 |
</div> |
| 409 |
</section> |
| 410 |
<section id="history"> |
| 411 |
<h2>History<a class="headerlink" href="#history" title="Link to this heading"></a></h2> |
| 412 |
<p>The options <strong>-k</strong> (keep flags) and <strong>-g</strong> (clear GUID) have been |
| 413 |
deprecated in Cyrus version 2.4.</p> |
| 414 |
<p>The <strong>-u</strong> and <strong>-V</strong> options were added in Cyrus version 2.5.</p> |
| 415 |
<p>The <strong>-M</strong> option was added in Cyrus version 3.0.</p> |
| 416 |
</section> |
| 417 |
<section id="files"> |
| 418 |
<h2>Files<a class="headerlink" href="#files" title="Link to this heading"></a></h2> |
| 419 |
<p>/etc/imapd.conf</p> |
| 420 |
</section> |
| 421 |
<section id="see-also"> |
| 422 |
<h2>See Also<a class="headerlink" href="#see-also" title="Link to this heading"></a></h2> |
| 423 |
<p><a class="reference internal" href="../configs/imapd.conf.html#std-cyrusman-imapd.conf-5">imapd.conf(5)</a></p> |
| 424 |
</section> |
| 425 |
</section> |
| 426 |
|
| 427 |
|
| 428 |
</div> |
| 429 |
</div> |
| 430 |
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer"> |
| 431 |
<a href="quota.html" class="btn btn-neutral float-left" title="quota" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a> |
| 432 |
<a href="rehash.html" class="btn btn-neutral float-right" title="rehash" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a> |
| 433 |
</div> |
| 434 |
|
| 435 |
<hr/> |
| 436 |
|
| 437 |
<div role="contentinfo"> |
| 438 |
<p>© Copyright 1993–2026, The Cyrus Team.</p> |
| 439 |
</div> |
| 440 |
|
| 441 |
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a |
| 442 |
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> |
| 443 |
provided by <a href="https://readthedocs.org">Read the Docs</a>. |
| 444 |
|
| 445 |
|
| 446 |
</footer> |
| 447 |
</div> |
| 448 |
</div> |
| 449 |
</section> |
| 450 |
</div> |
| 451 |
<script> |
| 452 |
jQuery(function () { |
| 453 |
SphinxRtdTheme.Navigation.enable(true); |
| 454 |
}); |
| 455 |
</script> |
| 456 |
|
| 457 |
|
| 458 |
|
| 459 |
|
| 460 |
</body> |
| 461 |
</html> |