| 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>Developers — 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="We need your help" href="contribute.html" /> |
| 24 | <link rel="prev" title="Why does mail delivery go slow or hang sometimes?" href="imap/reference/faqs/interop-slow-delivery.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"><a class="reference internal" href="operations.html">Operations</a></li> |
| 56 | <li class="toctree-l1 current"><a class="current reference internal" href="#">Developers</a><ul> |
| 57 | <li class="toctree-l2"><a class="reference internal" href="contribute.html">We need your help</a></li> |
| 58 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/documentation.html">Contribute docs</a></li> |
| 59 | <li class="toctree-l2"><a class="reference internal" href="imap/developer.html">Contribute code and tests</a></li> |
| 60 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/cyrusworks.html">Cyrus.Works</a></li> |
| 61 | <li class="toctree-l2"><a class="reference internal" href="#cyrus-internals">Cyrus Internals</a><ul> |
| 62 | <li class="toctree-l3"><a class="reference internal" href="imap/developer/API.html">Cyrus APIs</a></li> |
| 63 | <li class="toctree-l3"><a class="reference internal" href="imap/developer/thoughts.html">Thoughts & Notes</a></li> |
| 64 | <li class="toctree-l3"><a class="reference internal" href="imap/developer/guidance.html">Guidance for Developers</a></li> |
| 65 | </ul> |
| 66 | </li> |
| 67 | <li class="toctree-l2"><a class="reference internal" href="#unit-tests">Unit Tests</a><ul> |
| 68 | <li class="toctree-l3"><a class="reference internal" href="imap/developer/unit-tests.html">Unit Tests</a></li> |
| 69 | </ul> |
| 70 | </li> |
| 71 | </ul> |
| 72 | </li> |
| 73 | <li class="toctree-l1"><a class="reference internal" href="support.html">Support/Community</a></li> |
| 74 | </ul> |
| 75 | <p class="caption" role="heading"><span class="caption-text">Cyrus SASL</span></p> |
| 76 | <ul> |
| 77 | <li class="toctree-l1"><a class="reference external" href="http://www.cyrusimap.org/sasl">Cyrus SASL</a></li> |
| 78 | </ul> |
| 79 | |
| 80 | </div> |
| 81 | </div> |
| 82 | </nav> |
| 83 | |
| 84 | <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" > |
| 85 | <i data-toggle="wy-nav-top" class="fa fa-bars"></i> |
| 86 | <a href="index.html">Cyrus IMAP</a> |
| 87 | </nav> |
| 88 | |
| 89 | <div class="wy-nav-content"> |
| 90 | <div class="rst-content"> |
| 91 | <div role="navigation" aria-label="Page navigation"> |
| 92 | <ul class="wy-breadcrumbs"> |
| 93 | <li><a href="index.html" class="icon icon-home" aria-label="Home"></a></li> |
| 94 | <li class="breadcrumb-item active">Developers</li> |
| 95 | <li class="wy-breadcrumbs-aside"> |
| 96 | <a href="https://github.com/cyrusimap/cyrus-imapd/blob/master/docsrc/developers.rst" class="fa fa-github"> Edit on GitHub</a> |
| 97 | </li> |
| 98 | </ul> |
| 99 | <hr/> |
| 100 | </div> |
| 101 | <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> |
| 102 | <div itemprop="articleBody"> |
| 103 | |
| 104 | <section id="developers"> |
| 105 | <h1>Developers<a class="headerlink" href="#developers" title="Link to this heading"></a></h1> |
| 106 | <div class="toctree-wrapper compound"> |
| 107 | <ul> |
| 108 | <li class="toctree-l1"><a class="reference internal" href="contribute.html">We need your help</a></li> |
| 109 | <li class="toctree-l1"><a class="reference internal" href="imap/developer/documentation.html">Contribute docs</a><ul> |
| 110 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/documentation.html#overview">Overview</a></li> |
| 111 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/documentation.html#documentation-tools">Documentation Tools</a></li> |
| 112 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/documentation.html#building-the-files">Building the files</a></li> |
| 113 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/documentation.html#submitting-updates">Submitting updates</a></li> |
| 114 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/documentation.html#special-tags">Special Tags</a></li> |
| 115 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/documentation.html#conventions-man-pages">Conventions: Man Pages</a></li> |
| 116 | </ul> |
| 117 | </li> |
| 118 | <li class="toctree-l1"><a class="reference internal" href="imap/developer.html">Contribute code and tests</a><ul> |
| 119 | <li class="toctree-l2"><a class="reference internal" href="imap/developer.html#getting-started">Getting Started</a></li> |
| 120 | <li class="toctree-l2"><a class="reference internal" href="imap/developer.html#system-files-and-databases">System files and Databases</a></li> |
| 121 | <li class="toctree-l2"><a class="reference internal" href="imap/developer.html#resources">Resources</a></li> |
| 122 | <li class="toctree-l2"><a class="reference internal" href="imap/developer.html#releasing">Releasing</a></li> |
| 123 | </ul> |
| 124 | </li> |
| 125 | <li class="toctree-l1"><a class="reference internal" href="imap/developer/cyrusworks.html">Cyrus.Works</a><ul> |
| 126 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/cyrusworks.html#about-cyrus-works">About Cyrus Works</a></li> |
| 127 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/cyrusworks.html#how-it-works">How it works</a></li> |
| 128 | </ul> |
| 129 | </li> |
| 130 | </ul> |
| 131 | </div> |
| 132 | <section id="cyrus-internals"> |
| 133 | <h2>Cyrus Internals<a class="headerlink" href="#cyrus-internals" title="Link to this heading"></a></h2> |
| 134 | <p>These documents are intended for persons interested in contributing to |
| 135 | the Cyrus IMAP development effort, or for those interested in lower- |
| 136 | level details about how Cyrus is implemented.</p> |
| 137 | <div class="toctree-wrapper compound"> |
| 138 | <ul> |
| 139 | <li class="toctree-l1"><a class="reference internal" href="imap/developer/API.html">Cyrus APIs</a><ul> |
| 140 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/API/cyrusdb.html">CyrusDB API</a></li> |
| 141 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/API/cyrusdb2.html">cyrusdb API</a></li> |
| 142 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/API/index-api.html">Index API</a></li> |
| 143 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/API/mailbox-api.html">Mailbox API</a></li> |
| 144 | </ul> |
| 145 | </li> |
| 146 | <li class="toctree-l1"><a class="reference internal" href="imap/developer/thoughts.html">Thoughts & Notes</a><ul> |
| 147 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/thoughts/bytecode.html">Cyrus IMAP Server: Sieve Bytecode</a></li> |
| 148 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/thoughts/caldav_scheduling_flowchart.html">Cyrus CalDAV Scheduling Flowchart</a></li> |
| 149 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/thoughts/notes.html">Cyrus IMAP Server: Notes</a></li> |
| 150 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/thoughts/prot-events.html">Cyrus IMAP Server: Prot Events</a></li> |
| 151 | </ul> |
| 152 | </li> |
| 153 | <li class="toctree-l1"><a class="reference internal" href="imap/developer/guidance.html">Guidance for Developers</a><ul> |
| 154 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/guidance/hacking.html">Cyrus IMAP Server: Hacking</a></li> |
| 155 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/guidance/internationalization.html">Cyrus IMAP Server: Internationalization</a></li> |
| 156 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/guidance/locking.html">Cyrus IMAP Server: Locking</a></li> |
| 157 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/guidance/mailbox-format.html">Cyrus IMAP Server: Mailbox File Formats</a></li> |
| 158 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/guidance/namelocks.html">Cyrus IMAP Server: Namelocks</a></li> |
| 159 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/guidance/prot.html">Cyrus IMAP Server: prot layer</a></li> |
| 160 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/guidance/replication_examples.html">Cyrus IMAP Server: Replication Examples</a></li> |
| 161 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/guidance/replication_protocol.html">Cyrus IMAP Server: Replication Protocol v2.4+</a></li> |
| 162 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/guidance/special_chars.html">Cyrus IMAP Server: Special Characters</a></li> |
| 163 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/guidance/var_directory_structure.html">Cyrus IMAP Server: var directory structure</a></li> |
| 164 | </ul> |
| 165 | </li> |
| 166 | </ul> |
| 167 | </div> |
| 168 | <p>This <a class="reference download internal" download="" href="_downloads/81f06eb7a3880758a3aac958902674fd/master-state-machine.svg"><code class="xref download docutils literal notranslate"><span class="pre">diagram</span></code></a> shows |
| 169 | the Master State Machine.</p> |
| 170 | </section> |
| 171 | <section id="unit-tests"> |
| 172 | <h2>Unit Tests<a class="headerlink" href="#unit-tests" title="Link to this heading"></a></h2> |
| 173 | <div class="toctree-wrapper compound"> |
| 174 | <ul> |
| 175 | <li class="toctree-l1"><a class="reference internal" href="imap/developer/unit-tests.html">Unit Tests</a><ul> |
| 176 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/unit-tests.html#table-of-contents">Table of Contents</a></li> |
| 177 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/unit-tests.html#introduction">1. Introduction</a></li> |
| 178 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/unit-tests.html#what-is-a-unit-test">2. What Is A Unit Test?</a></li> |
| 179 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/unit-tests.html#running-the-tests">3. Running The Tests</a><ul> |
| 180 | <li class="toctree-l3"><a class="reference internal" href="imap/developer/unit-tests.html#setting-up-the-machine">3.1. Setting Up The Machine</a></li> |
| 181 | <li class="toctree-l3"><a class="reference internal" href="imap/developer/unit-tests.html#configure-script">3.2 Configure Script</a></li> |
| 182 | <li class="toctree-l3"><a class="reference internal" href="imap/developer/unit-tests.html#make">3.3 Make</a></li> |
| 183 | <li class="toctree-l3"><a class="reference internal" href="imap/developer/unit-tests.html#using-valgrind">3.4 Using Valgrind</a></li> |
| 184 | <li class="toctree-l3"><a class="reference internal" href="imap/developer/unit-tests.html#the-tests-are-failing">3.5 The Tests Are Failing</a></li> |
| 185 | </ul> |
| 186 | </li> |
| 187 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/unit-tests.html#debugging-a-test">3.6 Debugging A Test</a></li> |
| 188 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/unit-tests.html#adding-your-own-tests">4. Adding Your Own Tests</a></li> |
| 189 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/unit-tests.html#where-to-put-your-tests">4.1 Where To Put Your Tests</a></li> |
| 190 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/unit-tests.html#adding-a-new-suite">4.1 Adding A New Suite</a></li> |
| 191 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/unit-tests.html#adding-a-test-to-a-suite">4.2 Adding A Test To A Suite</a></li> |
| 192 | <li class="toctree-l2"><a class="reference internal" href="imap/developer/unit-tests.html#suite-setup-and-teardown">4.3 Suite Setup And Teardown</a></li> |
| 193 | </ul> |
| 194 | </li> |
| 195 | </ul> |
| 196 | </div> |
| 197 | </section> |
| 198 | </section> |
| 199 | |
| 200 | |
| 201 | </div> |
| 202 | </div> |
| 203 | <footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer"> |
| 204 | <a href="imap/reference/faqs/interop-slow-delivery.html" class="btn btn-neutral float-left" title="Why does mail delivery go slow or hang sometimes?" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a> |
| 205 | <a href="contribute.html" class="btn btn-neutral float-right" title="We need your help" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a> |
| 206 | </div> |
| 207 | |
| 208 | <hr/> |
| 209 | |
| 210 | <div role="contentinfo"> |
| 211 | <p>© Copyright 1993–2026, The Cyrus Team.</p> |
| 212 | </div> |
| 213 | |
| 214 | Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a |
| 215 | <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> |
| 216 | provided by <a href="https://readthedocs.org">Read the Docs</a>. |
| 217 | |
| 218 | |
| 219 | </footer> |
| 220 | </div> |
| 221 | </div> |
| 222 | </section> |
| 223 | </div> |
| 224 | <script> |
| 225 | jQuery(function () { |
| 226 | SphinxRtdTheme.Navigation.enable(true); |
| 227 | }); |
| 228 | </script> |
| 229 | |
| 230 | |
| 231 | |
| 232 | |
| 233 | </body> |
| 234 | </html> |