Debian Codegraph @

doc/html/imap/reference/manpages/systemcommands/cyr_expire.html

raw
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>cyr_expire &mdash; 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="cyr_info" href="cyr_info.html" />
24 <link rel="prev" title="cyr_df" href="cyr_df.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 current"><a class="current reference internal" href="#"><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"><a class="reference internal" href="reconstruct.html"><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>cyr_expire</strong></li>
157 <li class="wy-breadcrumbs-aside">
158 <a href="https://github.com/cyrusimap/cyrus-imapd/blob/master/docsrc/imap/reference/manpages/systemcommands/cyr_expire.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-cyr_expire-8"></span><section id="cyr-expire">
167 <span id="imap-reference-manpages-systemcommands-cyr-expire"></span><h1><strong>cyr_expire</strong><a class="headerlink" href="#cyr-expire" title="Link to this heading"></a></h1>
168 <p>Expire messages and duplicate delivery database entries</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>cyr_expire</strong> [ <strong>-C</strong> <em>config-file</em> ] [ <strong>-A</strong> <em>archive-duration</em> ]
172 [ <strong>-D</strong> <em>delete-duration</em> ] [ <strong>-E</strong> <em>expire-duration</em> ] [ <strong>-X</strong> <em>expunge-duration</em> ]
173 [ <strong>-p</strong> <em>mailbox-pre‐fix</em> ] [ <strong>-u</strong> <em>username</em> ] [ <strong>-t</strong> ] [ <strong>-v</strong> ]
174 [ <strong>-a</strong> ] [ <strong>-c</strong> ] [ <strong>-x</strong> ]</pre>
175 </section>
176 <section id="description">
177 <h2>Description<a class="headerlink" href="#description" title="Link to this heading"></a></h2>
178 <p><strong>cyr_expire</strong> is used to run a number of regular maintenance tasks
179 on Cyrus databases, specifically:</p>
180 <ul class="simple">
181 <li><p>expire messages from mailboxes, and</p></li>
182 <li><p>expire entries from the duplicate delivery database, and</p></li>
183 <li><p>cleanse mailboxes of partially expunged messages (when using the &quot;delayed&quot; expunge mode), and</p></li>
184 <li><p>remove deleted mailboxes (when using the &quot;delayed&quot; delete mode), and</p></li>
185 <li><p>expire entries from conversations databases, and</p></li>
186 <li><p>archive messages from mailbox.</p></li>
187 </ul>
188 <p>There are various annotations that <strong>cyr_expire</strong> respects:</p>
189 <ul class="simple">
190 <li><p><code class="docutils literal notranslate"><span class="pre">/vendor/cmu/cyrus-imapd/expire</span></code> which controls the expirations of
191 messages</p></li>
192 <li><p><code class="docutils literal notranslate"><span class="pre">/vendor/cmu/cyrus-imapd/archive</span></code> which controls the archival of
193 messages</p></li>
194 <li><p><code class="docutils literal notranslate"><span class="pre">/vendor/cmu/cyrus-imapd/delete</span></code> which controls the deletion of
195 messages</p></li>
196 <li><p><code class="docutils literal notranslate"><span class="pre">/vendor/cmu/cyrus-imapd/noexpire_until</span></code> which disables the expire
197 and delete operations per user</p></li>
198 </ul>
199 <p>The first three mailbox annotations specify the age of messages in the
200 given mailbox that should be expired/archived/deleted. The
201 age is specified as a duration, the default unit are days.
202 The duration format is defined in <a class="reference internal" href="../configs/imapd.conf.html#std-cyrusman-imapd.conf-5">imapd.conf(5)</a>.</p>
203 <p>The last mailbox annotation specifies the UNIX epoch time in seconds
204 until which expiring messages or removing deleted mailboxes is blocked.
205 The zero epoch time represents infinity. This annotation has precedence
206 over any of the other annotations or command line flags. It must only
207 be set on the user inbox and applies to all mailboxes of that user.</p>
208 <p>The value of the <code class="docutils literal notranslate"><span class="pre">/vendor/cmu/cyrus-imapd/expire</span></code> annotation is
209 inherited by all children of the mailbox on which it is set, so an
210 entire mailbox tree can be configured by setting a single annotation on
211 the root of that tree. If a mailbox does not have a
212 <code class="docutils literal notranslate"><span class="pre">/vendor/cmu/cyrus-imapd/expire</span></code> annotation set on it (or does not
213 inherit one), then no messages are expired from the mailbox.</p>
214 <p>The annotation can be examined using the <strong>info</strong> command of
215 <a class="reference internal" href="cyradm.html#std-cyrusman-cyradm-8">cyradm(8)</a>, and modified using the <strong>mboxconfig</strong> and
216 <strong>setinfo</strong> commands of <a class="reference internal" href="cyradm.html#std-cyrusman-cyradm-8">cyradm(8)</a>.</p>
217 <p>Expiration of duplicate delivery database entries for a given mailbox
218 is also controlled by the <code class="docutils literal notranslate"><span class="pre">/vendor/cmu/cyrus-imapd/expire</span></code> annotation
219 which applies to that mailbox. A value of 0 on the annotation means
220 that no expiration is to be performed on that mailbox. Unlike message expiration, if no
221 annotation applies to the mailbox then duplicate database entries are
222 expired using the value given to the <strong>-E</strong> option.</p>
223 <p>Expiration of conversations database entries occurs if the
224 <strong>conversations</strong> option is present in <a class="reference internal" href="../configs/imapd.conf.html#std-cyrusman-imapd.conf-5">imapd.conf(5)</a>.
225 Expiration can be disabled using the <strong>-c</strong> option. The period used to
226 expire entries is controlled by the <strong>conversations_expire_days</strong>
227 option in <a class="reference internal" href="../configs/imapd.conf.html#std-cyrusman-imapd.conf-5">imapd.conf(5)</a>.</p>
228 <p><strong>cyr_expire</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>.</p>
229 <p><strong>cyr_expire</strong> requires at least one of <strong>-A -D -E -X</strong> or <strong>-t</strong> to be
230 supplied.</p>
231 </section>
232 <section id="options">
233 <h2>Options<a class="headerlink" href="#options" title="Link to this heading"></a></h2>
234 <dl class="std option">
235 <dt class="sig sig-object std" id="cmdoption-cyr_expire-C">
236 <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-cyr_expire-C" title="Link to this definition"></a></dt>
237 <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>
238 </dd></dl>
239
240 <dl class="std option">
241 <dt class="sig sig-object std" id="cmdoption-cyr_expire-A">
242 <span id="cmdoption-cyr_expire-archive-duration"></span><span class="sig-name descname"><span class="pre">-A</span></span><span class="sig-prename descclassname"> <span class="pre">archive-duration</span></span><span class="sig-prename descclassname"><span class="pre">,</span> </span><span class="sig-name descname"><span class="pre">--archive-duration</span></span><span class="sig-prename descclassname"><span class="pre">=archive-duration</span></span><a class="headerlink" href="#cmdoption-cyr_expire-A" title="Link to this definition"></a></dt>
243 <dd><p>Archive non-flagged messages older than <em>archive-duration</em> to the
244 archive partition, allowing mailbox messages to be split between fast
245 storage and slow large storage. Only does anything if
246 <code class="docutils literal notranslate"><span class="pre">archivepartition-*</span></code> has been set in your config.
247 This value is only used for entries which do not have a
248 corresponding <code class="docutils literal notranslate"><span class="pre">/vendonr/cmu/cyrus-imapd/archive</span></code> mailbox annotation.
249 The duration format is defined in <a class="reference internal" href="../configs/imapd.conf.html#std-cyrusman-imapd.conf-5">imapd.conf(5)</a>. The default
250 unit are days.</p>
251 <p>This feature was introduced in version 3.0.</p>
252 </dd></dl>
253
254 <dl class="std option">
255 <dt class="sig sig-object std" id="cmdoption-cyr_expire-D">
256 <span id="cmdoption-cyr_expire-delete-duration"></span><span class="sig-name descname"><span class="pre">-D</span></span><span class="sig-prename descclassname"> <span class="pre">delete-duration</span></span><span class="sig-prename descclassname"><span class="pre">,</span> </span><span class="sig-name descname"><span class="pre">--delete-duration</span></span><span class="sig-prename descclassname"><span class="pre">=delete-duration</span></span><a class="headerlink" href="#cmdoption-cyr_expire-D" title="Link to this definition"></a></dt>
257 <dd><p>Remove previously deleted mailboxes older than <em>delete-duration</em>
258 (when using the &quot;delayed&quot; delete mode).
259 This value is only used for entries which do not have a
260 corresponding <code class="docutils literal notranslate"><span class="pre">/verdor/cmu/cyrus-imapd/delete</span></code> mailbox annotation.
261 The duration format is defined in <a class="reference internal" href="../configs/imapd.conf.html#std-cyrusman-imapd.conf-5">imapd.conf(5)</a>. The default
262 unit are days.</p>
263 </dd></dl>
264
265 <dl class="std option">
266 <dt class="sig sig-object std" id="cmdoption-cyr_expire-E">
267 <span id="cmdoption-cyr_expire-expire-duration"></span><span class="sig-name descname"><span class="pre">-E</span></span><span class="sig-prename descclassname"> <span class="pre">expire-duration</span></span><span class="sig-prename descclassname"><span class="pre">,</span> </span><span class="sig-name descname"><span class="pre">--expire-duration</span></span><span class="sig-prename descclassname"><span class="pre">=expire-duration</span></span><a class="headerlink" href="#cmdoption-cyr_expire-E" title="Link to this definition"></a></dt>
268 <dd><p>Prune the duplicate database of entries older than <em>expire-duration</em>.
269 This value is only used for entries which do not have a corresponding
270 <code class="docutils literal notranslate"><span class="pre">/vendor/cmu/cyrus-imapd/expire</span></code> mailbox annotation.
271 The duration format is defined in <a class="reference internal" href="../configs/imapd.conf.html#std-cyrusman-imapd.conf-5">imapd.conf(5)</a>. The default
272 unit are days.</p>
273 </dd></dl>
274
275 <dl class="std option">
276 <dt class="sig sig-object std" id="cmdoption-cyr_expire-X">
277 <span id="cmdoption-cyr_expire-expunge-duration"></span><span class="sig-name descname"><span class="pre">-X</span></span><span class="sig-prename descclassname"> <span class="pre">expunge-duration</span></span><span class="sig-prename descclassname"><span class="pre">,</span> </span><span class="sig-name descname"><span class="pre">--expunge-duration</span></span><span class="sig-prename descclassname"><span class="pre">=expunge-duration</span></span><a class="headerlink" href="#cmdoption-cyr_expire-X" title="Link to this definition"></a></dt>
278 <dd><p>Expunge previously deleted messages older than <em>expunge-duration</em>
279 (when using the &quot;delayed&quot; expunge mode).
280 The duration format is defined in <a class="reference internal" href="../configs/imapd.conf.html#std-cyrusman-imapd.conf-5">imapd.conf(5)</a>. The default
281 unit are days.</p>
282 </dd></dl>
283
284 <dl class="std option">
285 <dt class="sig sig-object std" id="cmdoption-cyr_expire-c">
286 <span id="cmdoption-cyr_expire-no-conversations"></span><span class="sig-name descname"><span class="pre">-c</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-conversations</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-cyr_expire-c" title="Link to this definition"></a></dt>
287 <dd><p>Do not expire conversation database entries, even if the conversations
288 feature is enabled.</p>
289 <p>This feature was introduced in version 3.0.</p>
290 </dd></dl>
291
292 <dl class="std option">
293 <dt class="sig sig-object std" id="cmdoption-cyr_expire-x">
294 <span id="cmdoption-cyr_expire-no-expunge"></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">--no-expunge</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-cyr_expire-x" title="Link to this definition"></a></dt>
295 <dd><p>Do not expunge messages even if using delayed expunge mode. This
296 reduces IO traffic considerably, allowing <code class="docutils literal notranslate"><span class="pre">cyr_expire</span></code> to be run
297 frequently to clean up the duplicate database without overloading
298 the machine.</p>
299 </dd></dl>
300
301 <dl class="std option">
302 <dt class="sig sig-object std" id="cmdoption-cyr_expire-p">
303 <span id="cmdoption-cyr_expire-prefix"></span><span class="sig-name descname"><span class="pre">-p</span></span><span class="sig-prename descclassname"> <span class="pre">mailbox-prefix</span></span><span class="sig-prename descclassname"><span class="pre">,</span> </span><span class="sig-name descname"><span class="pre">--prefix</span></span><span class="sig-prename descclassname"><span class="pre">=mailbox-prefix</span></span><a class="headerlink" href="#cmdoption-cyr_expire-p" title="Link to this definition"></a></dt>
304 <dd><p>Only find mailboxes starting with this prefix, e.g.
305 &quot;user.justgotspammedlots&quot;.</p>
306 </dd></dl>
307
308 <dl class="std option">
309 <dt class="sig sig-object std" id="cmdoption-cyr_expire-u">
310 <span id="cmdoption-cyr_expire-userid"></span><span class="sig-name descname"><span class="pre">-u</span></span><span class="sig-prename descclassname"> <span class="pre">userid</span></span><span class="sig-prename descclassname"><span class="pre">,</span> </span><span class="sig-name descname"><span class="pre">--userid</span></span><span class="sig-prename descclassname"><span class="pre">=userid</span></span><a class="headerlink" href="#cmdoption-cyr_expire-u" title="Link to this definition"></a></dt>
311 <dd><p>Only find mailboxes belonging to this user, e.g.
312 &quot;<a class="reference external" href="mailto:justgotspammedlots&#37;&#52;&#48;example&#46;com">justgotspammedlots<span>&#64;</span>example<span>&#46;</span>com</a>&quot;.</p>
313 </dd></dl>
314
315 <dl class="std option">
316 <dt class="sig sig-object std" id="cmdoption-cyr_expire-t">
317 <span id="cmdoption-cyr_expire-prune-userflags"></span><span class="sig-name descname"><span class="pre">-t</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">--prune-userflags</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-cyr_expire-t" title="Link to this definition"></a></dt>
318 <dd><p>Remove any user flags which are not used by remaining (not expunged)
319 messages.</p>
320 </dd></dl>
321
322 <dl class="std option">
323 <dt class="sig sig-object std" id="cmdoption-cyr_expire-v">
324 <span id="cmdoption-cyr_expire-verbose"></span><span class="sig-name descname"><span class="pre">-v</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">--verbose</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-cyr_expire-v" title="Link to this definition"></a></dt>
325 <dd><p>Enable verbose output.</p>
326 </dd></dl>
327
328 <dl class="std option">
329 <dt class="sig sig-object std" id="cmdoption-cyr_expire-a">
330 <span id="cmdoption-cyr_expire-ignore-annotations"></span><span class="sig-name descname"><span class="pre">-a</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-annotations</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-cyr_expire-a" title="Link to this definition"></a></dt>
331 <dd><p>Skip the annotation lookup, so all <code class="docutils literal notranslate"><span class="pre">/vendor/cmu/cyrus-imapd/expire</span></code>
332 annotations are ignored entirely. It behaves as if they were not
333 set, so only <em>expire-days</em> is considered for all mailboxes.</p>
334 </dd></dl>
335
336 </section>
337 <section id="examples">
338 <h2>Examples<a class="headerlink" href="#examples" title="Link to this heading"></a></h2>
339 <pre class="literal-block"><strong>cyr_expire -E</strong> <em>3</em> <strong>-D</strong> <em>60</em> <strong>-X</strong> <em>60</em></pre>
340 <blockquote>
341 <div><p>Purge duplicates database of all entries older than <em>3</em> days, remove
342 deleted mailboxes older than <em>60</em> days and deleted messages older than
343 <em>60</em> days.</p>
344 </div></blockquote>
345 <pre class="literal-block"><strong>cyr_expire -x -c -A</strong> <em>7d</em></pre>
346 <blockquote>
347 <div><p>Perform migration of message older than <em>7</em> days to Archive
348 partition whilst not altering conversation database nor
349 expunging messages.</p>
350 </div></blockquote>
351 </section>
352 <section id="history">
353 <h2>History<a class="headerlink" href="#history" title="Link to this heading"></a></h2>
354 <p>Archive partition and conversation support was first introduced in Cyrus
355 version 3.0.</p>
356 </section>
357 <section id="files">
358 <h2>Files<a class="headerlink" href="#files" title="Link to this heading"></a></h2>
359 <p>/etc/imapd.conf</p>
360 </section>
361 <section id="see-also">
362 <h2>See Also<a class="headerlink" href="#see-also" title="Link to this heading"></a></h2>
363 <p><a class="reference internal" href="../configs/imapd.conf.html#std-cyrusman-imapd.conf-5">imapd.conf(5)</a>, <a class="reference internal" href="master.html#std-cyrusman-master-8">master(8)</a>, <a class="reference internal" href="cyradm.html#std-cyrusman-cyradm-8">cyradm(8)</a></p>
364 </section>
365 </section>
366
367
368 </div>
369 </div>
370 <footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
371 <a href="cyr_df.html" class="btn btn-neutral float-left" title="cyr_df" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
372 <a href="cyr_info.html" class="btn btn-neutral float-right" title="cyr_info" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
373 </div>
374
375 <hr/>
376
377 <div role="contentinfo">
378 <p>&#169; Copyright 1993–2026, The Cyrus Team.</p>
379 </div>
380
381 Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
382 <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
383 provided by <a href="https://readthedocs.org">Read the Docs</a>.
384
385
386 </footer>
387 </div>
388 </div>
389 </section>
390 </div>
391 <script>
392 jQuery(function () {
393 SphinxRtdTheme.Navigation.enable(true);
394 });
395 </script>
396
397
398
399
400 </body>
401 </html>